Vulnerabilities · 2024 · Apple
CVE-2024-28867
Apple Swift Prometheus vulnerability
Swift Prometheus is a Swift client for the Prometheus monitoring system, supporting counters, gauges and histograms. In code which applies _un-sanitized string values into metric names or labels_, an attacker could make use of this and send a `?lang` query parameter containing newlines, `}` or similar characters which can lead to the attacker taking over the exported format -- including creating unbounded numbers of stored metrics, inflating server memory usage, or causing "bogus" metrics. This vulnerability is fixed in2.0.0-alpha.2.
Affected products
Swift Prometheus. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Apple Swift Prometheus runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/swift-server/swift-prometheus/security/advisories/GHSA-x768-cvr2-345r · Exploit
- github.com/swift-server/swift-prometheus/commit/bfcd4bbfabe11aae4b035424ee9724582e288501 · Patch
- nvd.nist.gov/vuln/detail/CVE-2024-28867
- github.com/advisories/GHSA-x768-cvr2-345r
- nvd.nist.gov/vuln/detail/CVE-2024-28867
- cve.org/CVERecord?id=CVE-2024-28867
More vulnerabilities in Apple products
CVE-2026-20613CVE-2025-48384CVE-2025-46316CVE-2025-46311CVE-2025-46306CVE-2025-46299CVE-2025-46298CVE-2025-46297All 8,308
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.