CVE-2026-104055GHSA-rcx7-7rh5-r542
postgresql-operator: Monitoring-user password logged in cleartext by postgres_exporter in postgresql VM charm
Canonical postgresql-operatorDatabases
CVSS
5.3MediumExploitationNo known exploitationNot in CISA KEV, which does not prove it is unexploitedCISA KEV
Exploit odds (EPSS)0.29%Chance of exploitation activity in the next 30 days, higher than 20% of CVEs. Scored 23 Oct 2026FIRST EPSS
What fixes it
- 1189postgresql-operatorCVE List
- 1190postgresql-operatorCVE List
- 1216postgresql-operatorCVE List
- 1217postgresql-operatorCVE List
A fixed version on one release line is not the upgrade target for every line. Check your exact version and any vendor backports.
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).
Text from CVE List
Affected versions 4
- postgresql-operatoraffected: all versions before 1189CVE List
- postgresql-operatoraffected: all versions before 1190CVE List
- postgresql-operatoraffected: all versions before 1216CVE List
- postgresql-operatoraffected: all versions before 1217CVE List
References 4
- github.com/canonical/postgresql-operator/pull/1863Fixvia CVE List
- github.com/canonical/charmed-postgresql-snap/pull/305Fixvia CVE List
- github.com/canonical/charmed-postgresql-snap/pull/307Fixvia CVE List
- github.com/canonical/postgresql-operator/security/advisories/GHSA-rcx7-7rh5-r542Advisoryvia CVE List