Description
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 products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| GnuPG | GnuPG | < 2.5.19 | 2.5.19 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | gnupg2 | 2.4.9-8 | — |
| Debian 13 | gnupg2 | No fix yet | — |
| Debian 12 | gnupg2 | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | gnupg2 | No fix yet | — |
| Ubuntu 26.04 LTS | gnupg2 | No fix yet | — |
| Ubuntu 24.04 LTS | gnupg2 | No fix yet | — |
| Ubuntu 22.04 LTS | gnupg2 | No fix yet | — |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 20.04 LTS | gnupg2 | No fix yet | — |
| Ubuntu Pro 18.04 LTS | gnupg2 | No fix yet | — |
| Ubuntu Pro 16.04 LTS | gnupg2 | No fix yet | — |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Red Hat Hardened Images 1 | gnupg2 +10 | 2.4.9-18.1.hum1 | RHSA-2026:77484 |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | gnupg2 | No fix yet | — |
Advisories 2
- RHSA-2026:77484 Red Hat Security Advisory: Red Hat Hardened Images RPMs Security Update Red Hat Security Advisories (RHSA) · Oct 8, 2026
- WID-SEC-2026-3739 GnuPG: Schwachstelle ermöglicht Manipulation von Dateien BSI CERT-Bund (WID) · Oct 6, 2026