CVE-2026-105712

NameCVE-2026-105712
Descriptiongpgtar 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.
SourceCVE (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 Bugs1150168

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
gnupg2 (PTS)bookworm2.2.40-1.1+deb12u2vulnerable
trixie2.4.7-21+deb13u1vulnerable
forky, sid2.4.9-8fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
gnupg2source(unstable)2.4.9-81150168

Notes

[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

Search for package or bug name: Reporting problems