CVE-2024-28867

Swift Prometheus un-sanitized metric name or labels can be used to take over exported metrics

Published Mar 29, 2024 CVSS 3.1 · 5.9 Medium EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2024-1036 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.
Github GHSA Github GHSA GHSA-x768-cvr2-345r Un-sanitized metric name or labels can be used to take over exported metrics
History
Type Values Removed Values Added
First Time appeared Apple
Apple swift Prometheus
CPEs cpe:2.3:a:apple:swift_prometheus:2.0.0:alpha1:*:*:*:swift:*:*
Vendors & Products Apple
Apple swift Prometheus
Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Mar 25, 2025, 2:39 PM
Reserved
Mar 11, 2024, 10:45 PM
Status
Analyzed
Published
Mar 29, 2024, 3:15 PM
Modified
Jun 17, 2026, 7:21 AM