CVE-2024-25711: diffoscope Path Traversal vulnerability
diffoscope before 256 allows directory traversal via an embedded filename in a GPG file. Contents of any file, such as ../.ssh/idrsa, may be disclosed to an attacker. This occurs because the value of the gpg --use-embedded-filenames option is trusted.
Published Feb 27, 2024
Affected packages
diffoscope
- Ecosystem
- PyPI
- Affected
- >= 0, < 256
- Fixed in
- 256
- Check
pip show diffoscope
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
diffoscope before 256 allows directory traversal via an embedded filename in a GPG file. Contents of any file, such as ../.ssh/id_rsa, may be disclosed to an attacker. This occurs because the value of the gpg --use-embedded-filenames option is trusted.
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-25711
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/OUNBANAWD6TZH2NRRV4YUIAXEHLUJQ47
- https://salsa.debian.org/reproducible-builds/diffoscope/-/commit/dfed769904c27d66a14a5903823d9c8c5aae860e
- https://salsa.debian.org/reproducible-builds/diffoscope/-/issues/361
- https://github.com/pypa/advisory-database/tree/main/vulns/diffoscope/PYSEC-2024-41.yaml
- https://github.com/advisories/GHSA-33w6-hvmq-gh4x
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
