# CVE-2024-28867: Swift Prometheus un-sanitized metric name or labels can be used to take over exported metrics

- Severity: Medium 5.9 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.65%, higher than 52% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-03-29T14:26:22.194Z
- Modified: 2026-09-10T03:49:18.727Z
- Also known as: GHSA-x768-cvr2-345r
- Weaknesses: CWE-74
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- swift-server swift-prometheus: = 2.0.0-alpha.1
- github.com/swift-server/swift-prometheus (SwiftURL): from 2.0.0-alpha.1 before 2.0.0-alpha.2
- apple swift_prometheus: 2.0.0

## Every score

- GitHub_M: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N`
- GitHub: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N`
- NVD: CVSS:3.1 7.4 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H`

## References

- <https://github.com/swift-server/swift-prometheus/security/advisories/GHSA-x768-cvr2-345r> (exploit, mitigation, vendor-advisory, web)
- <https://github.com/swift-server/swift-prometheus/commit/bfcd4bbfabe11aae4b035424ee9724582e288501> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-28867> (advisory)
- <https://github.com/swift-server/swift-prometheus> (package)

## Sources

- CVE List: [CVE-2024-28867](https://www.cve.org/CVERecord?id=CVE-2024-28867), CVE Terms of Use, modified 2025-03-25
- GitHub Advisory Database: [GHSA-x768-cvr2-345r](https://github.com/advisories/GHSA-x768-cvr2-345r), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-28867](https://nvd.nist.gov/vuln/detail/CVE-2024-28867), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-28867 · Whole record: https://cve.day/CVE-2024-28867.json · Rebuilt by cve.day 2026-11-25T22:58:38.121Z
