# CVE-2026-104055: Monitoring-user password logged in cleartext by postgres_exporter in postgresql VM charm

- Severity: Medium 5.3 (CVSS:4.0, scored by canonical) `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.29%, higher than 23% of CVEs (2026-12-01)
- Published: 2026-10-02T20:35:50.514Z
- Modified: 2026-10-06T16:08:27.613Z
- Weaknesses: CWE-532
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: canonical

## Description

The postgresql-operator charm runs a Prometheus postgres_exporter to collect database metrics using a dedicated "monitoring" PostgreSQL user. On database connection errors, the exporter writes the monitoring user's password in cleartext to its logs. Any actor able to read those logs can recover the password, which grants read-only pg_monitor access to PostgreSQL. This is fixed in the dev track (14/edge) in revisions 1189 (arm64) and 1190 (amd64), and in the stable track (14/stable) in revisions 1216 (arm64) and 1217 (amd64).

(As written by CVE List.)

## Affected

- charmed-postgresql: before 1189; before 1190; before 1216; before 1217

## References

- <https://github.com/canonical/postgresql-operator/security/advisories/GHSA-rcx7-7rh5-r542> (vendor-advisory)
- <https://github.com/canonical/postgresql-operator/pull/1863> (patch)
- <https://github.com/canonical/charmed-postgresql-snap/pull/305> (patch)
- <https://github.com/canonical/charmed-postgresql-snap/pull/307> (patch)

## Sources

- CVE List: [CVE-2026-104055](https://www.cve.org/CVERecord?id=CVE-2026-104055), CVE Terms of Use, modified 2026-10-03
- NVD: [CVE-2026-104055](https://nvd.nist.gov/vuln/detail/CVE-2026-104055), Public domain, modified 2026-10-06

---

Page: https://cve.day/CVE-2026-104055 · Whole record: https://cve.day/CVE-2026-104055.json · Rebuilt by cve.day 2026-11-25T22:59:42.005Z
