CVE-2024-25711: diffoscope Path Traversal vulnerability
Summary
CVE-2024-25711: diffoscope Path Traversal vulnerability. Affects diffoscope versions < 256. Fixed in 256. How to fix ↓
Also tracked for
- diffoscope · Debian:11
The same CVE-2024-25711 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
diffoscope is a tool for in-depth comparison of files, archives, and directories. It is commonly used to analyze differences between two binary files or directories. This vulnerability affects versions prior to 256 of the diffoscope package. The package is available on PyPI, the Python Package Index.
Vulnerability Detail
The vulnerability in diffoscope allows for path traversal through an embedded filename in a GPG file. An attacker can exploit this vulnerability to disclose the contents of any file, such as ../.ssh/id_rsa, to gain unauthorized access. The issue arises due to the trust placed in the value of the gpg --use-embedded-filenames option.
How To Fix
Latest published version: 332.0.0 as of 22 Oct 2026
pip install --upgrade "diffoscope==332.0.0"
Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.
If you need the minimum change
256
This is the first release that contains the fix.
pip install --upgrade "diffoscope==256"
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
There is no known workaround for this vulnerability at the moment.
Conclusion
The diffoscope package prior to version 256 is vulnerable to a path traversal issue, allowing unauthorized access to arbitrary files. It is recommended to update to the latest version to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for diffoscope →
FAQ
diffoscope is a tool used for detailed comparison of files, archives, and directories.
This vulnerability allows an attacker to disclose the contents of arbitrary files, potentially leading to unauthorized access.
You can use the Vulert playground at Vulert Scanner to check if your version of diffoscope is affected by this vulnerability.
Yes, updating diffoscope to version 256 or later will fix this vulnerability.
No, there are no known workarounds for this vulnerability.
Related vulnerabilities
Recent vulnerabilities recorded for diffoscope.