CVE-2026-105712 Path traversal in GnuPG

Low 3.6 Published Updated

Attackers can overwrite files outside the extraction directory via symlink following in gpgtar when using the --directory option.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2026-105712?

CVE-2026-105712 is a low-severity path traversal vulnerability in GnuPG, published on 5 Oct 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official 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.

Weakness: CWE-61

Which versions are affected by CVE-2026-105712?

Linux distribution packages (11)
gnupg2 Red Hat:hummingbird:1All versions0:2.4.9-18.1.hum1
gnupg2-dirmngr Red Hat:hummingbird:1All versions0:2.4.9-18.1.hum1
gnupg2-g13 Red Hat:hummingbird:1All versions0:2.4.9-18.1.hum1
gnupg2-gpg-agent Red Hat:hummingbird:1All versions0:2.4.9-18.1.hum1
gnupg2-gpgconf Red Hat:hummingbird:1All versions0:2.4.9-18.1.hum1
gnupg2-keyboxd Red Hat:hummingbird:1All versions0:2.4.9-18.1.hum1
gnupg2-scdaemon Red Hat:hummingbird:1All versions0:2.4.9-18.1.hum1
gnupg2-smime Red Hat:hummingbird:1All versions0:2.4.9-18.1.hum1
gnupg2-utils Red Hat:hummingbird:1All versions0:2.4.9-18.1.hum1
gnupg2-verify Red Hat:hummingbird:1All versions0:2.4.9-18.1.hum1
gnupg2-wks Red Hat:hummingbird:1All versions0:2.4.9-18.1.hum1

How do I fix CVE-2026-105712?

Upgrade to a fixed version.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2026-105712 being exploited?

There is no known exploitation of CVE-2026-105712 in the wild and no public exploit code.

Sources

Also known as AZL-105962, BELL-CVE-2026-105712, CLSA-2026-1791488683, DEBIAN-CVE-2026-105712, ECHO-7e32-d187-cc5e, GHSA-9w76-549g-prc8 and 6 more.

Is CVE-2026-105712 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free