# CVE-2024-56142: Path Traversal in pghoard

- Severity: Medium 4.8 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.41%, higher than 37% of CVEs (2026-12-01)
- Published: 2024-12-17T21:37:18.000Z
- Modified: 2026-07-07T17:56:41.349Z
- Also known as: GHSA-m9hc-vxjj-4x6q, PYSEC-2026-1778
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- Aiven-Open pghoard: <= 2.2.2a
- pghoard (PyPI): before 2.6.1-rc

## Every score

- GitHub_M: CVSS:4.0 4.8 Medium `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-ADP: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:4.0 Medium `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`
- PyPA Advisory Database: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- PyPA Advisory Database: CVSS:4.0 `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`

## References

- <https://github.com/Aiven-Open/pghoard/security/advisories/GHSA-m9hc-vxjj-4x6q> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-56142> (advisory)
- <https://github.com/Aiven-Open/pghoard/commit/fe9947642cc73bcacf6d19b93eb98f442223fb47> (web)
- <https://github.com/Aiven-Open/pghoard> (package)
- <https://pypi.org/project/pghoard> (package)
- <https://github.com/advisories/GHSA-m9hc-vxjj-4x6q> (advisory)

## Sources

- CVE List: [CVE-2024-56142](https://www.cve.org/CVERecord?id=CVE-2024-56142), CVE Terms of Use, modified 2024-12-18
- GitHub Advisory Database: [GHSA-m9hc-vxjj-4x6q](https://github.com/advisories/GHSA-m9hc-vxjj-4x6q), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2024-56142](https://nvd.nist.gov/vuln/detail/CVE-2024-56142), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-1778](https://osv.dev/vulnerability/PYSEC-2026-1778), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2024-56142 · Whole record: https://cve.day/CVE-2024-56142.json · Rebuilt by cve.day 2026-11-25T22:58:50.212Z
