Swift Prometheus un-sanitized metric name or labels can be used to take over exported metrics
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- High
- Impact type
- —
- Confidentiality · integrity · availability
- None · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| swift-server | swift-prometheus | = 2.0.0-alpha.1 | — | No fix listed | CNA |
| — | github.com/swift-server/swift-prometheus (SwiftURL) | 2.0.0-alpha.1 to before 2.0.0-alpha.2 | 2.0.0-alpha.2 | Patch available | GHSA-x768-cvr2-345r |
- swift-prometheus Vendorswift-server Affected = 2.0.0-alpha.1 Fixed in — No fix listed CNA
- github.com/swift-server/swift-prometheus (SwiftURL) Vendor— Affected 2.0.0-alpha.1 to before 2.0.0-alpha.2 Fixed in 2.0.0-alpha.2 Patch available GHSA-x768-cvr2-345r
Remediation
- Fix · GHSA-x768-cvr2-345r github.com/swift-server/swift-prometheus (SwiftURL) Fixed in 2.0.0-alpha.2 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2024-28867
- 2026-10-03 Alias added: GHSA-x768-cvr2-345r
- 2026-10-20 EPSS moved to the 50th–90th percentile
References
Patch 1
Sources
- CVE-2024-28867 · CVE Program
- CVE-2024-28867 · NVD
- FIRST EPSS
- GHSA-x768-cvr2-345r · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences