Skip to main content

Gnupg2: gpgtar in GnuPG before 2.5.19 can allow file overwrite via crafted data in an archive. (CVE-2026-105712)

0
Low
Published: 10/05/2026 (10/05/2026, 19:17:00 UTC)
Source: GCVE Database
Product: gnupg2

Description

A vulnerability in gpgtar component of GnuPG before version 2.5.19 allows file overwrite via crafted archive data. When extracting an untrusted archive with the --directory (-C) option into an existing directory containing a symlink, gpgtar may follow the symlink and overwrite files outside the intended extraction directory. This behavior is limited by the filesystem permissions of the user performing extraction. Extracting into a fresh empty directory does not pose this risk. The issue has a low severity score and no known exploits in the wild.

CVSS v3.1

Score 3.6low

Attack Vector
Local
Attack Complexity
High
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
Low
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:L

Affected software

Ubuntu:Pro:16.04:LTSmore threats →ghsa
gnupg2
pkg:deb/ubuntu/gnupg2?arch=source&distro=esm-infra/xenial
Affected versions
=2.0.28-3ubuntu1=2.0.28-3ubuntu2=2.1.11-6ubuntu1=2.1.11-6ubuntu2=2.1.11-6ubuntu2.1=2.1.11-6ubuntu2.1+esm1=2.1.11-6ubuntu2.1+esm2=2.1.11-6ubuntu2.1+esm3
Ubuntu:Pro:18.04:LTSmore threats →ghsa
gnupg2
pkg:deb/ubuntu/gnupg2?arch=source&distro=esm-infra/bionic
Affected versions
=2.1.15-1ubuntu8=2.2.4-1ubuntu1=2.2.4-1ubuntu1.1=2.2.4-1ubuntu1.2=2.2.4-1ubuntu1.3=2.2.4-1ubuntu1.4=2.2.4-1ubuntu1.5=2.2.4-1ubuntu1.6=2.2.4-1ubuntu1.6+esm1=2.2.4-1ubuntu1.6+esm2
Ubuntu:Pro:20.04:LTSmore threats →ghsa
gnupg2
pkg:deb/ubuntu/gnupg2?arch=source&distro=esm-infra/focal
Affected versions
=2.2.12-1ubuntu3=2.2.17-3ubuntu1=2.2.19-3ubuntu2=2.2.19-3ubuntu2.1=2.2.19-3ubuntu2.2=2.2.19-3ubuntu2.4=2.2.19-3ubuntu2.5=2.2.19-3ubuntu2.5+esm1
Ubuntu:22.04:LTSmore threats →ghsa
gnupg2
pkg:deb/ubuntu/gnupg2?arch=source&distro=jammy
Affected versions
=2.2.20-1ubuntu4=2.2.27-2ubuntu1=2.2.27-3ubuntu1=2.2.27-3ubuntu2=2.2.27-3ubuntu2.1=2.2.27-3ubuntu2.3=2.2.27-3ubuntu2.4=2.2.27-3ubuntu2.5
Ubuntu:24.04:LTSmore threats →ghsa
gnupg2
pkg:deb/ubuntu/gnupg2?arch=source&distro=noble
Affected versions
=2.2.40-1.1ubuntu1=2.4.4-2ubuntu7=2.4.4-2ubuntu15=2.4.4-2ubuntu16=2.4.4-2ubuntu17=2.4.4-2ubuntu17.2=2.4.4-2ubuntu17.3=2.4.4-2ubuntu17.4=2.4.4-2ubuntu17.6
Ubuntu:26.10more threats →ghsa
gnupg2
pkg:deb/ubuntu/gnupg2?arch=source&distro=stonking
Affected versions
=2.4.8-4ubuntu3=2.4.9-4ubuntu1=2.4.9-4ubuntu2=2.4.9-4ubuntu3
Ubuntu:26.04:LTSmore threats →ghsa
gnupg2
pkg:deb/ubuntu/gnupg2?arch=source&distro=resolute
Affected versions
=2.4.8-2ubuntu2=2.4.8-4ubuntu1=2.4.8-4ubuntu2=2.4.8-4ubuntu3=2.4.8-4ubuntu3.1

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/17/2026, 22:39:48 UTC

Technical Analysis

The gpgtar utility in GnuPG versions prior to 2.5.19 contains a vulnerability that can lead to arbitrary file overwrite. Specifically, when extracting an archive with the --directory option into a directory that contains pre-existing symbolic links, gpgtar may follow these symlinks and write files outside the target extraction directory. This can be exploited by crafting an archive with malicious data to overwrite files accessible by the extraction user. The vulnerability is constrained by the user's filesystem permissions and does not occur when extracting into a new empty directory. The CVSS v3.1 base score is 3.6, indicating low severity.

Potential Impact

An attacker who can supply a crafted archive to be extracted by gpgtar may cause files outside the intended extraction directory to be overwritten, potentially leading to limited integrity impact. The overwrite capability is restricted by the permissions of the user performing the extraction, so privilege level limits the scope of impact. There is no confidentiality impact, and availability impact is low. No known exploits are reported in the wild.

Mitigation Recommendations

Upgrade GnuPG to version 2.5.19 or later where this vulnerability is fixed. Until then, avoid extracting untrusted archives with gpgtar using the --directory (-C) option into directories containing pre-existing symbolic links. Extract archives into fresh empty directories to prevent symlink traversal and file overwrite risks.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
UBUNTU-CVE-2026-105712
Osv Schema Version
1.7.0
Ecosystems
["Ubuntu:Pro:16.04:LTS","Ubuntu:Pro:18.04:LTS","Ubuntu:Pro:20.04:LTS","Ubuntu:22.04:LTS","Ubuntu:24.04:LTS","Ubuntu:26.10","Ubuntu:26.04:LTS"]
Cvss Version
3.1

Threat ID: 6ad3f4f02cdf04f656656e22

Added to database: 10/17/2026, 22:21:36 UTC

Last enriched: 10/17/2026, 22:39:48 UTC

Last updated: 10/17/2026, 22:39:48 UTC

Views: 5

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses