CVE-2026-42496: CWE-59 Improper Link Resolution Before File Access ('Link Following') in BINGOS Archive::Tar
Archive::Tar versions before 3.08 for Perl extract symlinks with attacker controlled targets outside the extraction directory. _make_special_file() passes the tar header's linkname to symlink() without validating it against absolute paths or .. segments. The secure-extract mode check that guards regular file extraction does not cover the symlink target. A subsequent open through the extracted name reads or writes the attacker chosen path.
AI Analysis
Technical Summary
The vulnerability in Archive::Tar versions prior to 3.08 arises because the _make_special_file() function passes the tar header's linkname directly to symlink() without validating whether the target path is absolute or contains directory traversal sequences (e.g., '..'). The secure-extract mode, which guards regular file extraction, does not apply to symlink targets. Consequently, an attacker can craft a tar archive with malicious symlinks that point outside the extraction directory, enabling subsequent file operations on arbitrary paths chosen by the attacker. This is classified under CWE-59 (Improper Link Resolution Before File Access) and CWE-22 (Path Traversal). The CVSS v3.1 score is 9.1 (critical), reflecting network attack vector, low attack complexity, no privileges or user interaction required, and high confidentiality and integrity impact.
Potential Impact
An attacker can create a malicious tar archive that, when extracted by vulnerable versions of Archive::Tar, creates symbolic links pointing outside the extraction directory. This can lead to arbitrary file read or write operations on the system, potentially compromising confidentiality and integrity of files. The vulnerability does not impact availability. The CVSS score of 9.1 indicates a critical severity level.
Mitigation Recommendations
Red Hat has issued security advisories and updates addressing this vulnerability. Updated packages for perl-Archive-Tar are available for Red Hat Enterprise Linux 10 and related variants. Users should apply these official patches to remediate the issue. Refer to Red Hat advisory RHSA-2026:30857 and the linked article https://access.redhat.com/articles/11258 for update instructions. Patch status is confirmed by the vendor advisories. No alternative mitigations are specified.
CVE-2026-42496: CWE-59 Improper Link Resolution Before File Access ('Link Following') in BINGOS Archive::Tar
Description
Archive::Tar versions before 3.08 for Perl extract symlinks with attacker controlled targets outside the extraction directory. _make_special_file() passes the tar header's linkname to symlink() without validating it against absolute paths or .. segments. The secure-extract mode check that guards regular file extraction does not cover the symlink target. A subsequent open through the extracted name reads or writes the attacker chosen path.
CVSS v3.1
Score 9.1critical
Affected software
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in Archive::Tar versions prior to 3.08 arises because the _make_special_file() function passes the tar header's linkname directly to symlink() without validating whether the target path is absolute or contains directory traversal sequences (e.g., '..'). The secure-extract mode, which guards regular file extraction, does not apply to symlink targets. Consequently, an attacker can craft a tar archive with malicious symlinks that point outside the extraction directory, enabling subsequent file operations on arbitrary paths chosen by the attacker. This is classified under CWE-59 (Improper Link Resolution Before File Access) and CWE-22 (Path Traversal). The CVSS v3.1 score is 9.1 (critical), reflecting network attack vector, low attack complexity, no privileges or user interaction required, and high confidentiality and integrity impact.
Potential Impact
An attacker can create a malicious tar archive that, when extracted by vulnerable versions of Archive::Tar, creates symbolic links pointing outside the extraction directory. This can lead to arbitrary file read or write operations on the system, potentially compromising confidentiality and integrity of files. The vulnerability does not impact availability. The CVSS score of 9.1 indicates a critical severity level.
Mitigation Recommendations
Red Hat has issued security advisories and updates addressing this vulnerability. Updated packages for perl-Archive-Tar are available for Red Hat Enterprise Linux 10 and related variants. Users should apply these official patches to remediate the issue. Refer to Red Hat advisory RHSA-2026:30857 and the linked article https://access.redhat.com/articles/11258 for update instructions. Patch status is confirmed by the vendor advisories. No alternative mitigations are specified.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- CPANSec
- Date Reserved
- 2026-04-27T18:34:48.417Z
- Cvss Version
- null
- State
- PUBLISHED
- Remediation Level
- null
- Vendor Advisory Urls
- [{"url":"https://access.redhat.com/security/cve/CVE-2026-42496","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:30857","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:30851","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:30856","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:30852","vendor":"Red Hat"}]
Threat ID: 6a14f66ba5ae1af1aa17609c
Added to database: 05/26/2026, 01:24:59 UTC
Last enriched: 07/15/2026, 09:16:40 UTC
Last updated: 07/25/2026, 23:05:26 UTC
Views: 116
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.