Perl Archive Tar: CWE-59 Improper Link Resolution Before File Access ('Link Following') in BINGOS Archive::Tar (CVE-2026-42496)
A critical vulnerability (CVE-2026-42496) exists in BINGOS Archive::Tar versions before 3.08 for Perl, where symlinks with attacker-controlled targets outside the extraction directory can be extracted without proper validation. This improper link resolution allows an attacker to cause arbitrary file read or write operations outside the intended extraction path. The vulnerability arises because the function handling symlink creation does not validate the symlink target against absolute paths or directory traversal sequences. Red Hat has issued security advisories and released updated packages to address this issue in their distributions.
AI Analysis
Technical Summary
CVE-2026-42496 is a critical vulnerability in Archive::Tar for Perl (versions before 3.08) involving improper link resolution before file access (CWE-59). The _make_special_file() function passes the tar header's linkname directly to symlink() without validating for absolute paths or '..' segments, allowing crafted symlinks to point outside the extraction directory. The secure-extract mode does not cover symlink targets, enabling attackers to create symlinks that lead to arbitrary file access when subsequently opened. Red Hat has published advisories and provided updated perl-Archive-Tar packages (version 3.02-512.el10_2.1) for Red Hat Enterprise Linux 10 and related variants to mitigate this issue.
Potential Impact
Successful exploitation allows an attacker to create symbolic links during archive extraction that point to arbitrary file system locations outside the intended extraction directory. This can lead to unauthorized read or write operations on files chosen by the attacker, potentially compromising system confidentiality and integrity. The CVSS v3.1 base score is 9.1, reflecting high impact on confidentiality and integrity with no required privileges or user interaction.
Mitigation Recommendations
Red Hat has released updated perl-Archive-Tar packages that fix this vulnerability. Users of affected Red Hat Enterprise Linux 10 variants should apply the security update (perl-Archive-Tar-3.02-512.el10_2.1) as detailed in the Red Hat advisories RHSA-2026:30856 and RHSA-2026:30857. Patch status is official-fix via vendor-provided updates. No additional mitigation is required beyond applying the vendor's security update.
Perl Archive Tar: CWE-59 Improper Link Resolution Before File Access ('Link Following') in BINGOS Archive::Tar (CVE-2026-42496)
Description
A critical vulnerability (CVE-2026-42496) exists in BINGOS Archive::Tar versions before 3.08 for Perl, where symlinks with attacker-controlled targets outside the extraction directory can be extracted without proper validation. This improper link resolution allows an attacker to cause arbitrary file read or write operations outside the intended extraction path. The vulnerability arises because the function handling symlink creation does not validate the symlink target against absolute paths or directory traversal sequences. Red Hat has issued security advisories and released updated packages to address this issue in their distributions.
CVSS v3.1
Score 9.1critical
Affected software
pkg:rpm/redhat/perl-Archive-TarRun 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
Technical Analysis
CVE-2026-42496 is a critical vulnerability in Archive::Tar for Perl (versions before 3.08) involving improper link resolution before file access (CWE-59). The _make_special_file() function passes the tar header's linkname directly to symlink() without validating for absolute paths or '..' segments, allowing crafted symlinks to point outside the extraction directory. The secure-extract mode does not cover symlink targets, enabling attackers to create symlinks that lead to arbitrary file access when subsequently opened. Red Hat has published advisories and provided updated perl-Archive-Tar packages (version 3.02-512.el10_2.1) for Red Hat Enterprise Linux 10 and related variants to mitigate this issue.
Potential Impact
Successful exploitation allows an attacker to create symbolic links during archive extraction that point to arbitrary file system locations outside the intended extraction directory. This can lead to unauthorized read or write operations on files chosen by the attacker, potentially compromising system confidentiality and integrity. The CVSS v3.1 base score is 9.1, reflecting high impact on confidentiality and integrity with no required privileges or user interaction.
Mitigation Recommendations
Red Hat has released updated perl-Archive-Tar packages that fix this vulnerability. Users of affected Red Hat Enterprise Linux 10 variants should apply the security update (perl-Archive-Tar-3.02-512.el10_2.1) as detailed in the Red Hat advisories RHSA-2026:30856 and RHSA-2026:30857. Patch status is official-fix via vendor-provided updates. No additional mitigation is required beyond applying the vendor's security update.
Technical Details
- Gcve Source
- db.gcve.eu
- Csaf Category
- csaf_security_advisory
- Csaf Version
- 2.0
- Publisher
- Red Hat Product Security
- Advisory Id
- RHSA-2026:30856
- Cve Count
- 1
- Additional Cves
- []
- Cvss Version
- null
Threat ID: 6a42ed6527e9c79719937dca
Added to database: 06/29/2026, 22:10:45 UTC
Last enriched: 07/15/2026, 15:42:48 UTC
Last updated: 07/25/2026, 20:52:04 UTC
Views: 67
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.