CVE-2026-54711: PGHoard Password Written To Debug Log Vulnerability

LOW
Advisory Identifier: GHSA-mpx4-jmpr-vm8v
CWE-532
Published
Advisory Summary

CVE-2026-54711 is a LOW password written to debug log vulnerability (CWE-532: Insertion of Sensitive Information into Log File) affecting PGHoard libraries in the PyPI ecosystem. The issue involves password written to debug log. Remediation is available in the latest vendor maintenance releases.

CVE-2026-54711 at a Glance

CVE Identifier CVE-2026-54711
GHSA Identifier GHSA-mpx4-jmpr-vm8v
Severity LOW
CVSS v3.1 Base Score N/A
CWE Classification CWE-532: Insertion of Sensitive Information into Log File
Affected Product PGHoard
Package Ecosystem PyPI
Published Date
Last Updated

How to Fix CVE-2026-54711

To remediate this vulnerability, upgrade all affected PGHoard dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

pghoard fixed: Latest secure release
pip install pghoard>=Latest secure release
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show pghoard

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2026-54711, inspect your installed packages using pip:

pip show pghoard

Analyze the terminal output to locate any version of PGHoard in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.

Note: The pip show pghoard command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-532: Insertion of Sensitive Information into Log File, where the product writes sensitive information to a log file. In PGHoard, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact When using .pgpass, database connection information including the username and password will be logged at the debug level. ### Patches Upgrade to version 2.7.1 or greater. ### Workarounds Filter out debug-level logs. ### References This issue was discovered by BugCrowd user DRAKOKORIAN.

CVE-2026-54711 Affected PGHoard Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
pghoard
PyPI
≤ 2.1.0

References

Frequently Asked Questions

What is CVE-2026-54711?
CVE-2026-54711 is a security vulnerability in PGHoard involving Password written to debug log under CWE-532: Insertion of Sensitive Information into Log File.
Which PGHoard versions are affected?
Affected versions include releases prior to current release patches across affected packages: pghoard.
What version fixes CVE-2026-54711?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is pghoard affected?
Yes, pghoard is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What CWE is associated with CVE-2026-54711?
CVE-2026-54711 is classified under CWE-532: Insertion of Sensitive Information into Log File (The product writes sensitive information to a log file.).
How can I check PyPI dependencies for CVE-2026-54711?
Run the dependency tree command: 'pip show pghoard'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-mpx4-jmpr-vm8v",
  "modified" : "2026-06-18T15:05:20Z",
  "published" : "2026-06-18T15:05:20Z",
  "aliases" : [ "CVE-2026-54711" ],
  "summary" : "PGHoard: Password written to debug log",
  "details" : "### Impact\nWhen using .pgpass, database connection information including the username and password will be logged at the debug level.\n\n### Patches\nUpgrade to version 2.7.1 or greater.\n\n### Workarounds\nFilter out debug-level logs.\n\n### References\nThis issue was discovered by BugCrowd user DRAKOKORIAN.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:L/AC:L/AT:N/PR:H/UI:P/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "pghoard"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "2.1.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/Aiven-Open/pghoard/security/advisories/GHSA-mpx4-jmpr-vm8v"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/Aiven-Open/pghoard"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-532" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-06-18T15:05:20Z",
    "nvd_published_at" : null
  }
}