
Cloud Vulnerability DB
A community-led vulnerabilities database
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).
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.
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).
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.
gpgtar extraction target that already contains, or can be manipulated to contain, a symlink.ln -s /etc/cron.d/malicious /home/user/extract_dir/payload).payload with malicious content).gpgtar.gpgtar --directory /home/user/extract_dir malicious.tar.gpg.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).gpgtar extraction directory; presence of symlinks in directories used as gpgtar extraction targets pointing to sensitive system paths.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.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.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).
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.
Fix availability across major Linux distributions and their releases.
bionic (esm-infra)
gnupg2
devel
gnupg2
focal (esm-infra)
gnupg2
jammy
gnupg2
noble
gnupg2
resolute
gnupg2
xenial (esm-infra-legacy)
gnupg2
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."