{"answers":{"affected":"3 open source packages ship an affected version, including pghoard.","exploited":"There is no known exploitation of CVE-2024-56142 in the wild and no public exploit code.","fix":"Upgrade pghoard to 2.6.1-rc or later.","what":"CVE-2024-56142 is a medium-severity path traversal vulnerability in Aiven-Open pghoard, published on 17 Dec 2024. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-56142 and fix it if it is affected.\n\nWhat it is: CVE-2024-56142 is a medium-severity path traversal vulnerability in Aiven-Open pghoard, published on 17 Dec 2024. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2024-56142 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- pghoard (PyPI): affected all versions; fixed in 2.6.1-rc\n- pghoard (PyPI): affected all versions; fixed in 2.6.1-rc\n- pghoard (PyPI): affected all versions; fixed in 2.6.1-rc\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-56142/ (Markdown: https://insights.sbomify.com/CVE-2024-56142/index.md)","id":"CVE-2024-56142","markdown":"https://insights.sbomify.com/CVE-2024-56142/index.md","name":"CVE-2024-56142","record":{"aliases":["GHSA-m9hc-vxjj-4x6q","PYSEC-2026-1778"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["data_read","privilege_escalation"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"PostgreSQL backup tool","requires_auth":"low_privilege","summary":"Attackers can exploit path traversal in pghoard to access files with the daemon's privileges, potentially disclosing sensitive information.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":4.8,"severity":"medium","source":"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","version":"4.0"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"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.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Path Traversal in pghoard","id":"CVE-2024-56142","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"path_traversal","year":"2024"},"n_packages":3,"n_references":1,"next":{"headline":"Strapi Allows Unauthorized Access to Private Fields via parms.lookup","id":"CVE-2024-56143"},"packages":[{"ecosystem":"PyPI","fixed":["2.6.1-rc"],"introduced":["0"],"last_affected":[],"package":"pghoard","purl":null,"source":"GHSA-m9hc-vxjj-4x6q"},{"ecosystem":"PyPI","fixed":["2.6.1-rc"],"introduced":["0"],"last_affected":[],"package":"pghoard","purl":"pkg:pypi/pghoard","source":"GHSA-m9hc-vxjj-4x6q"},{"ecosystem":"PyPI","fixed":["2.6.1-rc"],"introduced":["0"],"last_affected":[],"package":"pghoard","purl":"pkg:pypi/pghoard","source":"PYSEC-2026-1778"}],"prev":{"headline":"Minosoft has IV equal to key","id":"CVE-2024-56141"},"products":["pghoard"],"published":"2024-12-17","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-12-18","vendors":["Aiven-Open"]},"summary":"Attackers can exploit path traversal in pghoard to access files with the daemon's privileges, potentially disclosing sensitive information.","url":"https://insights.sbomify.com/CVE-2024-56142/"}