CVE-2024-25711: diffoscope Path Traversal vulnerability

diffoscope Updated 02 Oct 2025

Summary

27/02/2024
Yes i
Moderate
Not published

CVE-2024-25711: diffoscope Path Traversal vulnerability. Affects diffoscope versions < 256. Fixed in 256. How to fix ↓

Also tracked for

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.

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

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 →

Share this vulnerability

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.

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 →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback