CVE-2026-104055: Monitoring-user password logged in cleartext by postgres_exporter in postgresql VM charm
The postgresql-operator charm runs a Prometheus postgresexporter 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 pgmonitor 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 Software
Event History
Frequently Asked Questions
Who can exploit this issue?
An actor who can read the Prometheus postgres_exporter logs can recover the dedicated monitoring user's password when a database connection error is logged. The recovered credentials provide read-only pg_monitor access to PostgreSQL.
When is the password exposed in logs?
The exporter writes the monitoring user's password in cleartext when it encounters database connection errors. Systems without accessible exporter logs or without such error events are not described as exposing the password through this issue.
Which charm revisions contain the fix?
The fix is available on the 14/edge track in revision 1189 for arm64 and revision 1190 for amd64. On the 14/stable track, it is available in revision 1216 for arm64 and revision 1217 for amd64.