CVE-2024-25711
JSON

7.1high

diffoscope Path Traversal vulnerability

Severity
7.1high CVSS:3.1 by CISA-ADP
Exploit likelihood
0.98% (higher than 63% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
GHSA-33w6-hvmq-gh4xPYSEC-2024-41

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.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
diffoscope (PyPI)before 256GitHub Advisory Database, PyPA Advisory Database
reproducible_builds diffoscopebefore 256NVD
fedoraproject fedora39NVD

All scores

CISA-ADP7.1high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
GitHubmedium rating
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Classification

CWE-22

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

diffoscope anterior a 256 permite el directory traversal a través de un nombre de archivo incrustado en un archivo GPG. El contenido de cualquier archivo, como ../.ssh/id_rsa, puede revelarse a un atacante. Esto ocurre porque el valor de la opción gpg --use-embedded-filenames es confiable.

References

https://salsa.debian.org/reproducible-builds/diffoscope/-/issues/361vendor-advisory, web
https://salsa.debian.org/reproducible-builds/diffoscope/-/commit/dfed769904c27d66a14a5903823d9c8c5aae860epatch, web
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/OUNBANAWD6TZH2NRRV4YUIAXEHLUJQ47/mailing-list, vendor-advisory, web
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/OUNBANAWD6TZH2NRRV4YUIAXEHLUJQ47/
https://nvd.nist.gov/vuln/detail/CVE-2024-25711advisory
https://github.com/pypa/advisory-database/tree/main/vulns/diffoscope/PYSEC-2024-41.yamlweb
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/OUNBANAWD6TZH2NRRV4YUIAXEHLUJQ47web
https://salsa.debian.org/reproducible-builds/diffoscopeweb
https://github.com/advisories/GHSA-33w6-hvmq-gh4xadvisory

Sources

SourceRecordLicence
CVE ListCVE-2024-25711 changed 2025-11-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-33w6-hvmq-gh4x changed 2024-12-05CC-BY-4.0
NVDCVE-2024-25711 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2024-41 changed 2026-06-10CC-BY-4.0