CVE-2026-104055Monitoring-user password logged in cleartext by postgres_exporter in postgresql VM charm
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).
What to do
None of the Linux distributions or Windows releases we track list an affected package for this CVE. Check the vendor-reported products below.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
What the vendor says
As published in the CVE record by canonical, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Canonical postgresql-operator: affected: before 1189, before 1190, before 1216, before 1217; fixed in
1189,1190,1216,1217
Vendor advisories:
- 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)
References
- https://github.com/canonical/postgresql-operator/security/advisories/GHSA-rcx7-7rh5-r542
- https://github.com/canonical/postgresql-operator/pull/1863
- https://github.com/canonical/charmed-postgresql-snap/pull/305
- https://github.com/canonical/charmed-postgresql-snap/pull/307
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.