Skip to main content

GnuPG gpgtar CVE-2026-105712

| EUVDEUVD-2026-92634 LOW
UNIX Symbolic Link (Symlink) Following (CWE-61)
2026-10-05 mitre GHSA-9w76-549g-prc8
3.6
CVSS 3.1 · Vendor: mitre
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Deliver crafted archive to victim
  2. Exploit
    Victim extracts with gpgtar --directory into non-empty dir
  3. Execution
    gpgtar follows pre-existing symlink
  4. Impact
    Overwrite file outside extraction directory

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling UNIX symlink resolution
Exploitation Conditions

Requires all of the following: the victim must extract an UNTRUSTED archive using gpgtar's --directory (-C) option, the chosen target directory must ALREADY EXIST and be NON-EMPTY, and it must contain (or resolve through) a pre-existing symlink that gpgtar then follows to write outside the intended path. Extraction into a fresh empty directory is explicitly not affected. Exploitation is further limited by (1) mandatory user interaction - the victim must actively run the extraction, (2) the extraction user's own filesystem permissions bounding what can be overwritten, and (3) local access to deliver and have the archive processed. Affects GnuPG before 2.5.19.

Impact

This is a genuinely low-priority issue despite being a real, vendor-confirmed flaw. The CVSS 3.1 vector (AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:L, base 3.6) tells a consistent story: exploitation is local, requires high attack complexity, depends on victim interaction (the user must actively extract the archive), and yields only limited integrity/availability impact with no confidentiality loss. There is no EPSS score, no CISA KEV listing, and no public exploit identified at time of analysis - so no public exploit identified at time of analysis is the correct exploitation status. The description's constraints (file overwrite only via a pre-existing symlink in a non-empty target directory, bounded by the extraction user's filesystem permissions) corroborate the high-complexity, low-impact rating rather than contradicting it. Note the 'Information Disclosure' tag conflicts with the actual impact: CWE-61 (symlink following) and the C:N/I:L vector make this a file-overwrite (integrity) issue, not disclosure - treat the tag as inaccurate. Bottom line: a legitimately low-real-risk issue; patch in routine maintenance, not as an emergency.

Exploit ScenarioDerived

An attacker distributes a crafted gpgtar archive and convinces a victim to extract it with gpgtar --directory/-C into an existing directory that already contains an attacker-anticipated or attacker-planted symlink. During extraction gpgtar follows that symlink, writing or overwriting a file outside the intended extraction directory, limited to what the extraction user's permissions allow. No public exploit identified at time of analysis, and the required user interaction plus pre-existing symlink make opportunistic exploitation unlikely.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Oct 05, 2026

Archive extraction in GnuPG's gpgtar tool (all versions before 2.5.19) can write outside the intended output path: when a user extracts an untrusted archive with the --directory (-C) option into an already-existing, non-empty directory that contains or resolves through a pre-existing symlink, gpgtar follows that link and creates or overwrites a file elsewhere on the filesystem. Exploitation demands substantial victim-side prerequisites - local delivery of a malicious archive, an active extraction the victim must perform, and a target directory that is both non-empty and already symlink-exposed - so the assessed impact is limited to low-integrity and low-availability effects (CVSS 3.1 score 3.6, AV:L/AC:H/PR:N/UI:R), bounded by the extracting user's own filesystem permissions; extraction into a fresh empty directory is expressly not affected. No public exploit code has been identified at time of analysis, and the issue is not listed in CISA KEV.

RemediationAI

Vendor-released patch: GnuPG 2.5.19 (fix commit 7a2692fe5e580ae3bbb2a47abc4baaf1af65aa88), which makes gpgtar reject any --directory/-C target that is a symlink/reparse point or is non-empty - upgrade to GnuPG 2.5.19 or later, or backport that commit/check_output_directory() logic if you maintain a downstream build. Where upgrading is not immediately possible, compensating controls are: always extract untrusted archives into a freshly created, empty directory (the vendor-confirmed safe path), never point -C at a pre-existing shared or user-writable directory that may contain symlinks, and drop privileges or run extraction in a sandbox/container so the writing user's filesystem permissions bound any overwrite (this does not stop the symlink traversal itself, only limits its blast radius). Additionally, prefer validating or listing archive contents before extraction and avoid extracting attacker-supplied archives into directories such as /tmp-style shared locations. Note the trade-off that the fixed behavior is stricter and will now fail extraction into any non-empty directory, which can break scripts that previously relied on extracting into populated output paths. Details: https://static.dev.gnupg.org/T8159.html and https://lists.gnupg.org/pipermail/gnupg-announce/2026q2/000504.html.

Affected VersionsENISA

GnuPG 0 <2.5.19

Affected Packages

euvd gnupg fix: 2.5.19

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The root cause is CWE-61 (UNIX symbolic link following) in gpgtar, the tar-archive handler bundled with GnuPG. When gpgtar extracts an archive and the caller supplies --directory (-C) pointing at an existing directory, the tool historically opened that directory without verifying that it was a real directory rather than a symlink, and without checking that it was empty. An attacker who can influence the archive (or entice the victim to extract a crafted one) can therefore have gpgtar traverse a symlink present in the chosen destination and place or clobber a file at the symlink's target, outside the selected extraction root. The fix commit 7a2692fe5e580ae3bbb2a47abc4baaf1af65aa88 adds a check_output_directory() helper that opens the directory with O_NOFOLLOW (or lstat's it, or uses FILE_ATTRIBUTE_REPARSE_POINT detection on Windows) and then enumerates its entries, rejecting the extraction with GPG_ERR_INV_ARG if the path is a symlink/reparse point or is non-empty; the tools.texi documentation was updated to state that -C now raises an error unless the directory is an empty, non-symlink directory. The affected product is tracked under CPE cpe:2.3:a:gnupg:gnupg:*:*:*:*:*:*:*:*, i.e. GnuPG releases prior to 2.5.19.

Know when Gnupg gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (mitre) PRIMARY 3.6 LOW
AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:L
vuln.today AI 3.6 LOW

Local untrusted-archive extraction needs user interaction and a pre-existing symlink in a non-empty target (AC:H); no privileges required but impact is only limited, permission-bounded file overwrite (I:L/A:L, C:N).

3.1 AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:L
4.0 AV:L/AC:H/AT:N/PR:N/UI:A/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (mitre).

CVSS VectorVendor: mitre

Attack Vector
Local
Attack Complexity
High
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
Low

Lifecycle Timeline

2
Patch available
Oct 05, 2026 - 20:17 EUVD
CVE Published
Oct 05, 2026 - 18:53 cve.org
LOW 3.6

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.1%
Top 98% exploitable
Prevalence
Ubiquitous
GnuPG ships on nearly all Linux distributions and underpins package signing
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity LOW
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Low
Technical Impact
Partial

Priority Score

18
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +18
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

More in Gnupg

View all
CVE-2026-24881 CRITICAL POC
9.8 Jan 27

Remote code execution and denial of service in GnuPG before 2.5.17 stem from a stack-based buffer overflow in gpg-agent

CVE-2018-1000858 HIGH POC
8.8 Dec 20

GnuPG version 2.1.12 - 2.2.11 contains a Cross ite Request Forgery (CSRF) vulnerability in dirmngr that can result in At

CVE-2018-6829 HIGH POC
7.5 Feb 07

cipher/elgamal.c in Libgcrypt through 1.8.2, when used to encrypt messages directly, improperly encodes plaintexts, whic

CVE-2026-24882 HIGH POC
7.8 Jan 27

Stack-based buffer overflow in GnuPG's tpm2daemon (versions before 2.5.17) allows a local attacker to corrupt the daemon

CVE-2020-25125 HIGH POC
7.8 Sep 03

GnuPG 2.2.21 and 2.2.22 (and Gpg4win 3.1.12) has an array overflow, leading to a crash or possibly unspecified other imp

CVE-2019-13050 HIGH POC
7.5 Jun 29

Interaction between the sks-keyserver code through 1.2.0 of the SKS keyserver network, and GnuPG through 2.2.16, makes i

CVE-2022-34903 MEDIUM POC
6.5 Jul 01

GnuPG through 2.3.6, in unusual situations where an attacker possesses any secret-key information from a victim's keyrin

CVE-2012-6085 MEDIUM POC
5.8 Jan 24

The read_block function in g10/import.c in GnuPG 1.4.x before 1.4.13 and 2.0.x through 2.0.19, when importing a key, all

CVE-2021-40528 MEDIUM POC
5.9 Sep 06

The ElGamal implementation in Libgcrypt before 1.9.4 allows plaintext recovery because, during interaction between two c

CVE-2022-47629 CRITICAL
9.8 Dec 20

Libksba before 1.6.3 is prone to an integer overflow vulnerability in the CRL signature parser. Rated critical severity

CVE-2014-9087 HIGH
7.5 Dec 01

Integer underflow in the ksba_oid_to_str function in Libksba before 1.3.2, as used in GnuPG, allows remote attackers to

CVE-2018-0495 MEDIUM POC
4.7 Jun 13

Libgcrypt before 1.7.10 and 1.8.x before 1.8.3 allows a memory-cache side-channel attack on ECDSA signatures that can be

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy