CVE-2024-28867
published medium CVSS 3.1 · 5.9Swift Prometheus un-sanitized metric name or labels can be used to take over exported metrics
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| swift-server | — | swift-prometheus= 2.0.0-alpha.1 | Affected | Not stated | 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.9 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| swift-server | swift-prometheus | = 2.0.0-alpha.1 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-74 CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
References
2Provider assertions
3GitHub_M · cna
Swift Prometheus un-sanitized metric name or labels can be used to take over exported metrics
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- dbf7410782fc76b389e31c6871a0014e200c37eeb3de22b61767ce7c9eefb00f
- Ingested
- 23 Sep 2026, 08:21:14 UTC
- Source record
- Official CVE record