Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1325 CNY

100%

CVE-2026-42497— Archive::Tar versions before 3.08 for Perl extract hardlinks to attacker controlled paths outside the extraction directory

AI Predicted 7.5 Difficulty: Moderate EPSS 0.40% · P32

Possible ATT&CK Techniques 1AI

T1490 · Inhibit System Recovery

Affected Version Matrix 1

VendorProductVersion RangeStatus
BINGOSArchive::Tar< 3.08affected
Get alerts for future matching vulnerabilitiesLog in to subscribe

I. Basic Information for CVE-2026-42497

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Archive::Tar versions before 3.08 for Perl extract hardlinks to attacker controlled paths outside the extraction directory
Source: NVD (National Vulnerability Database)
Vulnerability 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.
Source: NVD (National Vulnerability Database)
CVSS Information
N/A
Source: NVD (National Vulnerability Database)
Vulnerability Type
在文件访问前对链接解析不恰当(链接跟随)
Source: NVD (National Vulnerability Database)
Vulnerability Title
Pear Archive_Tar 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Pear Archive_Tar是PEAR团队的一个基于Php的可以对tar包进行创建、提取等操作的软件。 Pear Archive_Tar 3.08之前版本存在安全漏洞,该漏洞源于_make_special_file()函数将tar标头的linkname传递给link()时未验证绝对路径或..段,创建与受害者文件共享inode的硬链接,后续通过提取名称写入可修改受害者文件,且提取后的chmod、chown和utime块仅通过-l检查符号链接,导致在提取期间将tar标头的模式、所有者和时间戳应用于共享in
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

VendorProductAffected VersionsCPESubscribe
BINGOSArchive::Tar 0 ~ 3.08 -

II. Public POCs for CVE-2026-42497

#POC DescriptionSource LinkShenlong Link
AI-Generated POCPremium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-42497

登录查看更多情报信息。

Patches & Fixes for CVE-2026-42497 (1)

Vendor Advisories for CVE-2026-42497 (1)

Other References for CVE-2026-42497 (1)

Same Patch Batch · BINGOS · 2026-05-26 · 3 CVEs total

CVE-2026-42496Archive::Tar versions before 3.08 for Perl extract symlinks with attacker controlled targe
CVE-2026-9538Archive::Tar versions before 3.10 for Perl allow memory exhaustion via attacker controlled

IV. Related Vulnerabilities

V. Comments for CVE-2026-42497

No comments yet


Leave a comment