CVE-2024-28867
HIGH 7.4CVSS 3.1Un-sanitized metric name or labels can be used to take over exported metrics
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.
- Published
- 29 Mar 2024
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-74
- Also known as
- GHSA-x768-cvr2-345r
- Sources
- NVDJSONOSV GHSA-x768-cvr2-345rJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.4 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | apple | swift_prometheuscpe:2.3:a:apple:swift_prometheus:2.0.0:alpha1:*:*:*:swift:*:* |
= 2.0.0 | |
| OSV | SwiftURL | github.com/swift-server/swift-prometheus | >= 2.0.0-alpha.1, < 2.0.0-alpha.2 | 2.0.0-alpha.2 |
References
- https://github.com/swift-server/swift-prometheus/commit/bfcd4bbfabe11aae4b035424ee9724582e288501 · Patch, WEB
- https://github.com/swift-server/swift-prometheus/security/advisories/GHSA-x768-cvr2-345r · Exploit, Mitigation, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-28867 · ADVISORY
- https://github.com/swift-server/swift-prometheus · PACKAGE
History
- 25 Nov 2026 20:55 UTC · NVD: first stored (published 29 Mar 2024)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 29 Mar 2024)