CVE-2024-28867

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-28867
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-28867.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-28867
Aliases
Published
2024-03-29T14:26:22Z
Modified
2025-10-30T20:25:15.232129Z
Severity
  • 5.9 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N CVSS Calculator
Summary
Swift Prometheus un-sanitized metric name or labels can be used to take over exported metrics
Details

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.

Database specific
{
    "cwe_ids": [
        "CWE-74"
    ]
}
References

Affected packages

Git / github.com/swift-server/swift-prometheus

Affected ranges

Type
GIT
Repo
https://github.com/swift-server/swift-prometheus
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

0.*

0.1.0
0.1.1
0.1.3
0.2.0
0.3.0

1.*

1.0.0
1.0.0-alpha.1
1.0.0-alpha.10
1.0.0-alpha.10.1
1.0.0-alpha.11
1.0.0-alpha.12
1.0.0-alpha.12.1
1.0.0-alpha.13
1.0.0-alpha.14
1.0.0-alpha.15
1.0.0-alpha.2
1.0.0-alpha.3
1.0.0-alpha.4
1.0.0-alpha.5
1.0.0-alpha.6
1.0.0-alpha.7
1.0.0-alpha.8
1.0.0-alpha.9
1.0.1
1.0.2

2.*

2.0.0-alpha.1