CVE-2026-105712: Low severity gnupg gpgtar vulnerability

Published Oct 5, 2026
·
Updated

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.

Affected Software

1 affected component
gnupg gpgtar<2.5.19

Event History

Oct 5, 2026
CVE Published
via MITRE·06:53 PM
Data Sourced
via MITRE·06:53 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·07:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which extraction workflows are exposed?

The issue affects gpgtar before 2.5.19 when an untrusted archive is extracted with --directory (-C) into an existing directory that contains a pre-existing symlink. Extracting into a fresh, empty directory does not have this risk.

2

What does an attacker need to exploit this?

An attacker needs to provide a crafted archive and have a user extract it with gpgtar using --directory (-C) into a directory containing a suitable existing symlink. The attacker does not need privileges, but exploitation requires user interaction.

3

What can be overwritten?

gpgtar may follow the pre-existing symlink and create or overwrite a file outside the chosen extraction directory. Any resulting write is limited to locations writable by the user performing the extraction.

4

What is a practical mitigation before upgrading?

Do not extract untrusted archives with --directory (-C) into existing directories that may contain symlinks. Use a newly created, empty extraction directory instead.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203