ADVISORIES

PyPA Advisory Database

PYSEC-2024-41

Details

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 packages

EcosystemPackageAffected versions
PyPIdiffoscope
All versions before 256 (fixed in 256)

References