{"id":"CVE-2024-28867","published":"2024-03-29T14:26:22Z","modified":"2025-03-25T14:39:04Z","title":"Swift Prometheus un-sanitized metric name or labels can be used to take over exported metrics","vendor":"swift-server","product":"swift-prometheus","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.9,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00645,"percentile":0.51876,"provenance":"source"},"cwes":[{"id":"CWE-74","name":"Improper Neutralization of Special Elements in Output Used by a Downstream Component"}],"references":[{"url":"https://github.com/swift-server/swift-prometheus/security/advisories/GHSA-x768-cvr2-345r","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/swift-server/swift-prometheus/commit/bfcd4bbfabe11aae4b035424ee9724582e288501","tags":["x_refsource_MISC"]}],"priority":{"score":14.5,"factors":[{"name":"EPSS percentile","points":10.38},{"name":"CVSS severity","points":4.13}]},"vendorSlug":"swift-server","affectedVersions":[{"vendor":"swift-server","product":"swift-prometheus","versions":["= 2.0.0-alpha.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-04-01T17:56:31.127914Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"SwiftURL","package":"github.com/swift-server/swift-prometheus","vulnerableRanges":[">=2.0.0-alpha.1, <2.0.0-alpha.2"],"patched":["2.0.0-alpha.2"],"from":["GHSA-x768-cvr2-345r"],"provenance":"source"}],"summary":{"text":"Swift Prometheus, a Swift client library for the Prometheus monitoring system, has a flaw where metric names or labels are built from un-sanitized string values, letting special characters in input alter the exported metrics format. An attacker who can reach the affected service over the network can send a crafted ?lang query parameter containing newlines or } characters, with no authentication or user interaction required but with high attack complexity, to inject bogus or unbounded metrics and inflate server memory usage.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:37:38Z"},"euvd":{"id":"EUVD-2024-1036","exploited":false,"provenance":"source"}}