Vulnerability DatabaseCVE-2026-105712

CVE-2026-105712: 
GNU Privacy Guard vulnerability analysis and mitigation

Overview

CVE-2026-105712 is a symlink-following vulnerability in the gpgtar tool of GnuPG before version 2.5.19 that allows arbitrary file overwrite outside the intended extraction directory. When extracting an untrusted archive using the --directory (or -C) option into an existing directory that contains a pre-existing symlink, gpgtar can follow that symlink and write files to unintended filesystem locations. The vulnerability affects all GnuPG versions prior to 2.5.19; archives extracted into fresh, empty directories are not at risk. It carries a CVSS v3.1 base score of 3.6 (Low) (Red Hat Advisory, GitHub Advisory).

Technical details

The root cause is improper link resolution before file access (CWE-59 / CWE-61 — UNIX Symbolic Link Following), where gpgtar failed to validate whether the target --directory argument was itself a symlink or contained symlinks before beginning extraction. An attacker crafts a malicious encrypted or signed archive and convinces a user to extract it with gpgtar --directory <existing-dir> where <existing-dir> contains a pre-placed symlink pointing to a sensitive location outside the extraction path. The fix, committed as 7a2692f to the GnuPG repository, introduces a check_output_directory() function that uses O_NOFOLLOW (or lstat on systems without it) to detect symlinks and also rejects non-empty directories before extraction begins (GnuPG Commit, Red Hat Bugzilla). The attack requires local access, high complexity, and user interaction, making it difficult to exploit opportunistically.

Impact

Successful exploitation allows a local attacker to overwrite or create arbitrary files outside the designated extraction directory, bounded only by the filesystem permissions of the user running gpgtar. This can lead to integrity violations — for example, overwriting configuration files, scripts, or binaries — and may indirectly cause availability issues if critical files are corrupted. There is no confidentiality impact, and the scope is unchanged, meaning the attacker cannot directly escalate privileges through this vulnerability alone, though file overwrites could be chained with other weaknesses (GitHub Advisory, Red Hat Advisory).

Exploitability

There is no public proof-of-concept exploit and no evidence of in-the-wild exploitation at this time (Red Hat Advisory). The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. The EPSS score is approximately 0.123% (2nd percentile), indicating a very low probability of exploitation in the near term (GitHub Advisory). Exploitation requires local access, user interaction (the victim must run gpgtar against a malicious archive), and the pre-existence of a symlink in the target directory, all of which significantly limit the attack surface.

Exploitation steps

  1. Prepare the environment: Gain local access to the target system (or social-engineer a user). Identify a directory the victim is likely to use as a gpgtar extraction target that already contains, or can be manipulated to contain, a symlink.
  2. Plant a symlink: Place a symlink inside the target extraction directory pointing to a sensitive file or directory outside it (e.g., ln -s /etc/cron.d/malicious /home/user/extract_dir/payload).
  3. Craft a malicious archive: Create a tar archive containing a file whose name matches the symlink name in the extraction directory (e.g., a file named payload with malicious content).
  4. Encrypt or sign the archive: Optionally wrap the archive with GPG encryption or signing to make it appear legitimate and to be processed by gpgtar.
  5. Deliver the archive: Convince the victim to extract the archive using gpgtar --directory /home/user/extract_dir malicious.tar.gpg.
  6. Trigger symlink traversal: On vulnerable GnuPG versions (< 2.5.19), gpgtar follows the symlink and writes the archive's payload file content to the symlink's target (e.g., /etc/cron.d/malicious), overwriting or creating a file outside the extraction directory within the limits of the user's permissions (GnuPG Commit, Red Hat Bugzilla).

Indicators of compromise

  • File System: Unexpected files created or modified outside the intended gpgtar extraction directory; presence of symlinks in directories used as gpgtar extraction targets pointing to sensitive system paths.
  • Logs: System audit logs (e.g., auditd) showing file write events to unexpected paths initiated by the gpgtar process; entries indicating gpgtar opened or wrote to files via symlink resolution outside the -C directory.
  • Process: gpgtar process spawned with --directory or -C arguments pointing to a non-empty directory; unexpected modification timestamps on system files (e.g., /etc/, cron directories, user home files) coinciding with gpgtar execution.

Mitigation and workarounds

Upgrade GnuPG to version 2.5.19 or later, which introduces a pre-extraction check (check_output_directory()) that rejects symlinked or non-empty target directories (GnuPG Commit, GnuPG Announce). As a workaround until patching is complete, always extract untrusted archives into freshly created, empty directories rather than pre-existing ones. Additionally, audit extraction directories for unexpected symlinks before running gpgtar against untrusted archives (Red Hat Advisory).

Community reactions

The vulnerability was tracked by Red Hat's Product Security team and assigned low severity in their Bugzilla system, reflecting the limited exploitability and impact (Red Hat Bugzilla). It was also included in coverage of Microsoft's October 2026 Patch Tuesday, which addressed a record number of flaws, though CVE-2026-105712 itself is a GnuPG issue rather than a Microsoft product vulnerability (BleepingComputer). No significant independent researcher commentary or social media discussion beyond automated CVE tracking posts has been observed.

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

bookworm

gnupg2

Affected

sid

gnupg2: 2.4.9-8

Fixed

trixie

gnupg2

Affected

Ubuntu

Affected

bionic (esm-infra)

gnupg2

Affected

devel

gnupg2

Unknown

focal (esm-infra)

gnupg2

Unknown

jammy

gnupg2

Affected

noble

gnupg2

Affected

resolute

gnupg2

Affected

xenial (esm-infra-legacy)

gnupg2

Affected

RHEL / CentOS

Affected

OpenShift

openshift/ose-rhel-coreos-8

Affected

RHEL 8

gnupg2.src

Affected

RHEL 9

gnupg2.src

Affected

RHEL 10

gnupg2.src

Affected

Source: This report was generated using AI

Related GNU Privacy Guard vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-118131CRITICAL9.8
  • GNU Privacy Guard logoGNU Privacy Guard
  • gnupg
NoYesOct 27, 2026
CVE-2026-24882HIGH7.8
  • NixOS logoNixOS
  • gpg2
NoYesJan 27, 2026
CVE-2026-24883MEDIUM5.5
  • NixOS logoNixOS
  • cpe:2.3:a:gpg4win:gpg4win
NoYesJan 27, 2026
CVE-2026-105712LOW3.6
  • GNU Privacy Guard logoGNU Privacy Guard
  • gnupg
NoYesOct 05, 2026
CVE-2026-57062LOW2.9
  • GNU Privacy Guard logoGNU Privacy Guard
  • cpe:2.3:a:gnupg:gnupg
NoYesJun 23, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management