CVE Vulnerabilities

CVE-2026-105712

UNIX Symbolic Link (Symlink) Following

Published: Oct 05, 2026 | Modified: Oct 06, 2026
CVSS 3.x
N/A
Source:
NVD
CVSS 2.x
RedHat/V2
RedHat/V3
3.6 LOW
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:L
Ubuntu
LOW

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 users filesystem permissions. An archive extracted into a fresh empty directory does not have this risk.

Weakness

The product, when opening a file or directory, does not sufficiently account for when the file is a symbolic link that resolves to a target outside of the intended control sphere. This could allow an attacker to cause the product to operate on unauthorized files.

Affected Software

NameVendorStart VersionEnd Version
Red Hat Hardened ImagesRedHatgnupg2-main-2.4.9-18.1.hum1*
Gnupg2Ubuntuesm-infra-legacy/xenial*
Gnupg2Ubuntuesm-infra/bionic*
Gnupg2Ubuntujammy*
Gnupg2Ubuntunoble*
Gnupg2Ubunturesolute*

Potential Mitigations

  • Follow the principle of least privilege when assigning access rights to entities in a software system.
  • Denying access to a file can prevent an attacker from replacing that file with a link to a sensitive file. Ensure good compartmentalization in the system to provide protected areas that can be trusted.

References