CVE-2026-42497
Last modified
CVE-2026-42497 is a high-severity vulnerability rated 7.5/10 on the CVSS scale. Archive::Tar versions before 3.08 for Perl extract hardlinks to attacker controlled paths outside the extraction directory. _make_special_file() passes the tar header's linkname to link() without validating it against absolute paths or .. segments, creating a hardlink that shares the victim file's inode. A subsequent write through the extracted name modifies the victim file, and the post-extraction chmod, chown, and utime block in _extract_file() (guarded only against symlinks via -l) applies the tar header's mode, owner, and timestamps to the shared inode during extraction alone.. EPSS estimates a 0.42% chance of exploitation in the next 30 days.
Description
Archive::Tar versions before 3.08 for Perl extract hardlinks to attacker controlled paths outside the extraction directory. _make_special_file() passes the tar header's linkname to link() without validating it against absolute paths or .. segments, creating a hardlink that shares the victim file's inode. A subsequent write through the extracted name modifies the victim file, and the post-extraction chmod, chown, and utime block in _extract_file() (guarded only against symlinks via -l) applies the tar header's mode, owner, and timestamps to the shared inode during extraction alone.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Weakness Enumeration
Affected Software
| Vendor | Product | Versions | Update |
|---|---|---|---|
| Archive\ | \ | < 3.08 | Archive\ |
References
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2026-42497?
How severe is CVE-2026-42497?
How do I fix CVE-2026-42497?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-42490[This CNA information record relates to multiple CVEs; the t…6.5
- CVE-2026-42492Xenstore, to have an up-to-date picture of the entire system…7.5
- CVE-2026-42493Addressing certain issues, in particular related to operatio…7.5
- CVE-2026-42494[This CNA information record relates to multiple CVEs; the t…6.1
- CVE-2026-42495[This CNA information record relates to multiple CVEs; the t…5.5
- CVE-2026-42496Archive::Tar versions before 3.08 for Perl extract symlinks …9.1
- CVE-2026-42498Exposure of HTTP Authentication Header to unexpected hosts d…7.3
- CVE-2026-42499Pathological inputs could cause DoS through consumePhrase wh…7.5
- CVE-2026-4250A vulnerability was found in Albert Sağlık Hizmetleri ve Tic…2.5
- CVE-2026-42500Decoding a paletted BMP file with an out-of-range palette in…5.3
- CVE-2026-42501A malicious module proxy can exploit a flaw in the go comman…7.5
- CVE-2026-42502Parsing arbitrary HTML which is then rendered using Render c…6.1
Are you affected by CVE-2026-42497?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
