What’s Vulnerable › Vulnerabilities
CVE-2026-104055: Monitoring-user password logged in cleartext by postgres_exporter in postgresql VM charm
- Severity: medium (CVSS 5.3 v4.0)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.3% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-10-02 · updated 2026-10-06
- Weakness: CWE-532
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).
Affected products
- Canonical postgresql-operator: before 1189; before 1190; before 1216; before 1217 — fixed in 1189, 1190, 1216, 1217
How to fix
Upgrade to a fixed version: Canonical postgresql-operator 1189, 1190, 1216, 1217. Check the vendor advisory for mitigations.
References
- https://github.com/canonical/charmed-postgresql-snap/pull/305
- https://github.com/canonical/charmed-postgresql-snap/pull/307
- https://github.com/canonical/postgresql-operator/pull/1863
- https://github.com/canonical/postgresql-operator/security/advisories/GHSA-rcx7-7rh5-r542
Get alerted when CVE-2026-104055 or the next vulnerability affects your stack