| Name | CVE-2026-105712 |
| 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. |
| Source | CVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
| Debian Bugs | 1150168 |
The table below lists information on source packages.
| Source Package | Release | Version | Status |
|---|---|---|---|
| gnupg2 (PTS) | bookworm | 2.2.40-1.1+deb12u2 | vulnerable |
| trixie | 2.4.7-21+deb13u1 | vulnerable | |
| forky, sid | 2.4.9-8 | fixed |
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
|---|---|---|---|---|---|---|
| gnupg2 | source | (unstable) | 2.4.9-8 | 1150168 |
[trixie] - gnupg2 <no-dsa> (Minor issue)
[bookworm] - gnupg2 <postponed> (Minor issue)
https://static.dev.gnupg.org/T8159.html
Fixed by: https://github.com/gpg/gnupg/commit/268e435f921a834909429063ea656186266a0f85 (gnupg-2.5.19)
Fixed by: https://github.com/gpg/gnupg/commit/7a2692fe5e580ae3bbb2a47abc4baaf1af65aa88 (gnupg-2.5.19)
Fixed by: https://github.com/gpg/gnupg/commit/86020945ce1564a7f6cfa6a18ea8dcdca5e19baf (gnupg-2.5.19)
Fixed by: https://github.com/gpg/gnupg/commit/1bdd1f5bb4d192d9700dd6ab2540b0a940c23dd5 (gnupg-2.5.19)
https://lists.gnupg.org/pipermail/gnupg-announce/2026q2/000504.html