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

Goal: 1000 CNY · Raised: 1359 CNY

100%

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

Quick assessment

Affected
BINGOS Archive::Tar
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Pear Archive_Tar是PEAR团队的一个基于Php的可以对tar包进行创建、提取等操作的软件。 Pear Archive_Tar 3.08之前版本存在安全漏洞,该漏洞源于_make_special_file()函数将tar标头的linkname传递给link()时未验证绝对路径或..段,创建与受害者文件共享inode的硬链接,后续通过提取名称写入可修改受害者文件,且提取后的chmod、chown和utime块仅通过-l检查符号链接,导致在提取期间将tar标头的模式、所有者和时间戳应用于共享in

AI Predicted 7.5 Difficulty: Moderate EPSS 0.47% · P38

Possible ATT&CK Techniques 1 AI

T1490 · Inhibit System Recovery

Affected Version Matrix 1

VendorProduct Version RangeStatus
BINGOS Archive::Tar < 3.08 affected
Get alerts for future matching vulnerabilities Log 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: CVE Program / CVE List V5
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: CVE Program / CVE List V5
CVSS Information
N/A
Source: CVE Program / CVE List V5
Vulnerability Type
在文件访问前对链接解析不恰当(链接跟随)
Source: CVE Program / CVE List V5
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

Vendor Product Affected Versions CPE Subscribe
BINGOS Archive::Tar 0 ~ 3.08 -

II. Public POCs for CVE-2026-42497

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

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-42496 Archive::Tar versions before 3.08 for Perl extract symlinks with attacker controlled targe
CVE-2026-9538 Archive::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