REDHAT-BUG-2546069: Low severity gnupg GnuPG vulnerability
gpgtar in GnuPG before 2.5.19 can allow file overwrite via crafted data in an archive. When extracting an untrusted archive with --directory (aka -C) into an existing directory containing a pre-existing symlink, gpgtar can follow that symlink and create or overwrite a file outside the selected extraction directory. The write is limited by the extraction user's filesystem permissions. An archive extracted into a fresh empty directory does not have this risk.
Affected Software
Event History
Frequently Asked Questions
Who is exposed to this issue?
Users who extract untrusted archives with gpgtar using --directory (or -C) into an existing directory are exposed if that directory contains a pre-existing symlink. The impact is limited to files the extracting user is permitted to create or overwrite.
Are extractions into a new directory affected?
No. Extracting an archive into a fresh, empty directory does not have this risk.
What can be done if updating is not immediately possible?
Extract untrusted archives only into freshly created empty directories, rather than existing directories that may contain symlinks. Avoid using --directory or -C with an existing extraction directory containing pre-existing symlinks.