CVE-2024-25711 diffoscope Path Traversal vulnerability

High 7.1 Published Updated

An attacker can disclose arbitrary files via directory traversal in diffoscope when processing GPG files with embedded filenames.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2024-25711?

CVE-2024-25711 is a high-severity path traversal vulnerability in Fedoraproject Fedora, published on 11 Feb 2024. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

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.

Weakness: CWE-22

Which versions are affected by CVE-2024-25711?

3 open source packages ship an affected version, including diffoscope. It affects 2 products.

PackageAffectedFixed in
diffoscope PyPIAll versions256
diffoscope PyPIAll versions256
diffoscope PyPIAll versions256
Linux distribution packages (1)
diffoscope openSUSE:TumbleweedAll versions261-1.1

Products include Fedoraproject Fedora, Reproducible Builds Diffoscope.

How do I fix CVE-2024-25711?

Upgrade diffoscope to 256 or later.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2024-25711 being exploited?

There is no known exploitation of CVE-2024-25711 in the wild and no public exploit code.

All Fedoraproject Fedora vulnerabilities

Sources

Also known as CLEANSTART-2024-WM30423, DEBIAN-CVE-2024-25711, GHSA-33w6-hvmq-gh4x, PYSEC-2024-41, UBUNTU-CVE-2024-25711, openSUSE-SU-2024:13792-1.

Is CVE-2024-25711 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free