Security mailing lists by PureSourceCode

CVE-2024-28867

HIGH 7.4CVSS 3.1

Un-sanitized metric name or labels can be used to take over exported metrics

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.

Published
29 Mar 2024
Last modified
10 Sep 2026
Assigned by
security-advisories@github.com
NVD status
Analyzed
Weakness
CWE-74
Also known as
GHSA-x768-cvr2-345r
Sources
NVDJSONOSV GHSA-x768-cvr2-345rJSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.1 HIGH 7.4 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H
NVD security-advisories@github.com (Secondary) CVSS 3.1 MEDIUM 5.9 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
OSV GitHub CVSS 3.1 MEDIUM 5.9 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD apple swift_prometheus
cpe:2.3:a:apple:swift_prometheus:2.0.0:alpha1:*:*:*:swift:*:*
= 2.0.0
OSV SwiftURL github.com/swift-server/swift-prometheus >= 2.0.0-alpha.1, < 2.0.0-alpha.2 2.0.0-alpha.2

References

History

  • 25 Nov 2026 20:55 UTC · NVD: first stored (published 29 Mar 2024)
  • 25 Nov 2026 20:15 UTC · OSV: first stored (published 29 Mar 2024)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.