{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-104055",
        "assignerOrgId": "cc1ad9ee-3454-478d-9317-d3e869d708bc",
        "state": "PUBLISHED",
        "assignerShortName": "canonical",
        "dateReserved": "2026-10-01T18:01:17.865Z",
        "datePublished": "2026-10-02T20:35:50.514Z",
        "dateUpdated": "2026-10-02T20:35:50.514Z"
    },
    "containers": {
        "cna": {
            "title": "Monitoring-user password logged in cleartext by postgres_exporter in postgresql VM charm",
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "lang": "en",
                            "cweId": "CWE-532",
                            "description": "CWE-532 Insertion of sensitive information into log file",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "impacts": [
                {
                    "capecId": "CAPEC-37",
                    "descriptions": [
                        {
                            "lang": "en",
                            "value": "CAPEC-37 Retrieve Embedded Sensitive Data"
                        }
                    ]
                }
            ],
            "affected": [
                {
                    "vendor": "Canonical",
                    "product": "postgresql-operator",
                    "platforms": [
                        "Linux"
                    ],
                    "collectionURL": "https://charmhub.io/postgresql",
                    "packageName": "charmed-postgresql",
                    "repo": "https://github.com/canonical/postgresql-operator",
                    "versions": [
                        {
                            "status": "affected",
                            "version": "0",
                            "lessThan": "1189",
                            "versionType": "charm-revision"
                        },
                        {
                            "status": "affected",
                            "version": "0",
                            "lessThan": "1190",
                            "versionType": "charm-revision"
                        },
                        {
                            "status": "affected",
                            "version": "0",
                            "lessThan": "1216",
                            "versionType": "charm-revision"
                        },
                        {
                            "status": "affected",
                            "version": "0",
                            "lessThan": "1217",
                            "versionType": "charm-revision"
                        }
                    ],
                    "defaultStatus": "unaffected"
                }
            ],
            "descriptions": [
                {
                    "lang": "en",
                    "value": "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)."
                }
            ],
            "references": [
                {
                    "url": "https://github.com/canonical/postgresql-operator/security/advisories/GHSA-rcx7-7rh5-r542",
                    "tags": [
                        "vendor-advisory"
                    ]
                },
                {
                    "url": "https://github.com/canonical/postgresql-operator/pull/1863",
                    "tags": [
                        "patch"
                    ]
                },
                {
                    "url": "https://github.com/canonical/charmed-postgresql-snap/pull/305",
                    "tags": [
                        "patch"
                    ]
                },
                {
                    "url": "https://github.com/canonical/charmed-postgresql-snap/pull/307",
                    "tags": [
                        "patch"
                    ]
                }
            ],
            "metrics": [
                {
                    "format": "CVSS",
                    "scenarios": [
                        {
                            "lang": "en",
                            "value": "GENERAL"
                        }
                    ],
                    "cvssV4_0": {
                        "attackVector": "NETWORK",
                        "attackComplexity": "LOW",
                        "attackRequirements": "NONE",
                        "privilegesRequired": "LOW",
                        "userInteraction": "NONE",
                        "vulnConfidentialityImpact": "LOW",
                        "subConfidentialityImpact": "NONE",
                        "vulnIntegrityImpact": "NONE",
                        "subIntegrityImpact": "NONE",
                        "vulnAvailabilityImpact": "NONE",
                        "subAvailabilityImpact": "NONE",
                        "exploitMaturity": "NOT_DEFINED",
                        "Safety": "NOT_DEFINED",
                        "Automatable": "NOT_DEFINED",
                        "Recovery": "NOT_DEFINED",
                        "valueDensity": "NOT_DEFINED",
                        "vulnerabilityResponseEffort": "NOT_DEFINED",
                        "providerUrgency": "NOT_DEFINED",
                        "version": "4.0",
                        "baseSeverity": "MEDIUM",
                        "baseScore": 5.3,
                        "vectorString": "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"
                    }
                }
            ],
            "credits": [
                {
                    "lang": "en",
                    "value": "Allan Vidal",
                    "type": "reporter"
                }
            ],
            "source": {
                "discovery": "INTERNAL"
            },
            "providerMetadata": {
                "orgId": "cc1ad9ee-3454-478d-9317-d3e869d708bc",
                "shortName": "canonical",
                "dateUpdated": "2026-10-02T20:35:50.514Z"
            },
            "x_generator": {
                "engine": "cvelib 1.8.0"
            }
        }
    }
}