{"id":"CVE-2024-25711","published":"2024-02-11T00:00:00Z","modified":"2025-11-04T18:29:37Z","title":"diffoscope before 256 allows directory traversal via an embedded filename in a GPG file","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.01176,"percentile":0.67404,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://salsa.debian.org/reproducible-builds/diffoscope/-/issues/361","tags":[]},{"url":"https://salsa.debian.org/reproducible-builds/diffoscope/-/commit/dfed769904c27d66a14a5903823d9c8c5aae860e","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/OUNBANAWD6TZH2NRRV4YUIAXEHLUJQ47/","tags":["vendor-advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/OUNBANAWD6TZH2NRRV4YUIAXEHLUJQ47/","tags":[]}],"priority":{"score":18.5,"factors":[{"name":"EPSS percentile","points":13.48},{"name":"CVSS severity","points":4.97}]},"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-02-27T15:22:42.884446Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"diffoscope","vulnerableRanges":["<256"],"patched":["256"],"from":["GHSA-33w6-hvmq-gh4x","PYSEC-2024-41"],"provenance":"source"}],"summary":{"text":"The flaw is a directory traversal weakness in diffoscope before version 256, where an embedded filename inside a GPG file is trusted without restriction, because the value of the gpg --use-embedded-filenames option is accepted as-is. An attacker who can get a crafted GPG file processed can use a traversal path such as ../.ssh/id_rsa to read the contents of arbitrary files, with the attack requiring local access and low-privileged credentials and no user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:43:05Z"},"euvd":{"id":"EUVD-2024-0035","exploited":false,"provenance":"source"}}