JLSEC-2026-2367: gpgtar in GnuPG before 2.5.19 can allow file overwrite via crafted data in an archive. When...

Published Dec 3, 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 componentFixes available
julia/gnupg_jll<2.5.21+0
2.5.21+0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade julia/GnuPG_jll to a version that resolves this vulnerability.

    Fixed in 2.5.21+0

Event History

Dec 3, 2026
Advisory Published
via OSV·04:54 PM
Data Sourced
via OSV·04:54 PM
DescriptionSeverityAffected Software

Child vulnerabilities

Contains the following vulnerabilities.

Frequently Asked Questions

1

Which extraction workflows are exposed?

The risk applies when gpgtar extracts an untrusted archive with --directory (or -C) into an existing directory that already contains a symlink. Extracting into a fresh, empty directory does not have this risk.

2

What conditions must an attacker satisfy to cause an overwrite?

An attacker needs a crafted archive and must induce a user to extract it. The target extraction directory must contain a pre-existing symlink that gpgtar follows; any resulting write is limited to locations writable by the extracting user.

3

What can be done when an update is not immediately available?

Do not extract untrusted archives into existing directories containing symlinks. Use a freshly created empty extraction directory instead, and avoid using --directory or -C with untrusted archives where possible.

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