CVE-2022-46146

unknown
Published 2022-12-02 Β· Modified 2026-02-04
CVSS v3
β€”
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
CVSS v4 NEW
β€”
not yet in upstream
VIR risk
β€”

Description

Prometheus Exporter Toolkit is a utility package to build exporters. Prior to versions 0.7.2 and 0.8.2, if someone has access to a Prometheus web.yml file and users' bcrypted passwords, they can bypass security by poisoning the built-in authentication cache. Versions 0.7.2 and 0.8.2 contain a fix for the issue. There is no workaround, but attacker must have access to the hashed password to use this functionality.

Predictions

Exploit likelihood
20%
Patch ETA
β€”

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

Mitigation details

Source: Debian Security Tracker Β· View original β†— Β· DFSG

CVE-2022-46146 NameCVE-2022-46146 DescriptionPrometheus Exporter Toolkit is a utility package to build exporters. Prior to versions 0.7.2 and 0.8.2, if someone has access to a Prometheus web.yml file and users' bcrypted passwords, they can bypass security by poisoning the built-in authentication cache. Versions 0.7.2 and 0.8.2 contain a fix for the issue. There is no workaround, but attacker must…

Workaround

, but attacker must have access to the hashed password to use this functionality. SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) Debian Bugs1025127 Vulnerable and fixed packages The table below lists information on source packages. Source PackageReleaseVersionStatus golang-github-prometheus-exporter-toolkit (PTS)bullseye0.5.1-2+deb11u2fixed bookworm0.8.2-2fixed trixie0.14.0-1fixed forky, sid0.16.0-1fixed The information below is based on the following data on fixed versions. PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs golang-github-prometheus-exporter-toolkitsourcebullseye0.5.1-2+deb11u2 golang-github-prometheus-exporter-toolkitsource(unstable)0.8.2-11025127 Notes https://www.openwall.com/lists/oss-security/2022/11/29/1 https://github.com/prometheus/exporter-toolkit/security/advisories/GHSA-7rg2-cxvp-9p7p https://github.com/prometheus/exporter-toolkit/commit/5b1eab34484ddd353986bce736cd119d863e4ff5 (v0.8.2)

CVE-2022-46146

NameCVE-2022-46146
DescriptionPrometheus Exporter Toolkit is a utility package to build exporters. Prior to versions 0.7.2 and 0.8.2, if someone has access to a Prometheus web.yml file and users' bcrypted passwords, they can bypass security by poisoning the built-in authentication cache. Versions 0.7.2 and 0.8.2 contain a fix for the issue. There is no workaround, but attacker must have access to the hashed password to use this functionality.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
Debian Bugs1025127

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
golang-github-prometheus-exporter-toolkit (PTS)bullseye0.5.1-2+deb11u2fixed
bookworm0.8.2-2fixed
trixie0.14.0-1fixed
forky, sid0.16.0-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
golang-github-prometheus-exporter-toolkitsourcebullseye0.5.1-2+deb11u2
golang-github-prometheus-exporter-toolkitsource(unstable)0.8.2-11025127

Notes

https://www.openwall.com/lists/oss-security/2022/11/29/1
https://github.com/prometheus/exporter-toolkit/security/advisories/GHSA-7rg2-cxvp-9p7p
https://github.com/prometheus/exporter-toolkit/commit/5b1eab34484ddd353986bce736cd119d863e4ff5 (v0.8.2)

Home - Debian Security - Source (Git)

Apply commands

text fix
Notes
https://www.openwall.com/lists/oss-security/2022/11/29/1https://github.com/prometheus/exporter-toolkit/security/advisories/GHSA-7rg2-cxvp-9p7phttps://github.com/prometheus/exporter-toolkit/commit/5b1eab34484ddd353986bce736cd119d863e4ff5 (v0.8.2)

OS impact

OSVersionStatusFixed in
suse slesaffected
debian debianbookwormfixed0.8.2-1
debian debianbullseyefixed0.5.1-2+deb11u2
debian debianforkyfixed0.8.2-1
debian debiansidfixed0.8.2-1
debian debiantrixiefixed0.8.2-1

Package impact

EcosystemPackageVulnerableFixed
golang Gogithub.com/prometheus/exporter-toolkit<0.7.20.7.2
golang Gogithub.com/prometheus/exporter-toolkit>=0.8.0,<0.8.20.8.2

References

Community-verified mitigations for this CVE will appear above when contributors publish them.

Verify integrity in audit chain (admin only). AS-IS.