- 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
- 9b29abf9-4ab0-4765-b253-1875cd9b441e
- NVD status
- Modified
- Products
- \
CVSS 3.1
- Type
- Primary
- Base score
- 7.5
- Impact score
- 3.6
- Exploitability score
- 3.9
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
- Severity
- HIGH
- 9b29abf9-4ab0-4765-b253-1875cd9b441e
- CWE-59
- Hype score
- Not currently trending
Perl CPAN Archive::Tar CVE-2026-42496: Extract symlinks with attacker controlled targets outside the extraction directory https://t.co/95zHcLOXYC CVE-2026-42497: ditto for hardlinks https://t.co/jOYmJXXZkY CVE-2026-9538: Memory exhaustion via tar header https://t.co/cWunnpfUZY
@oss_security
26 May 2026
498 Impressions
1 Retweet
5 Likes
1 Bookmark
0 Replies
0 Quotes
CVE-2026-42497 CVE-2026-42496 https://t.co/ABJsLVsHtS Don't wait vulnerability scanning results: https://t.co/oh1APvMMnd
@VulmonFeeds
26 May 2026
67 Impressions
0 Retweets
0 Likes
0 Bookmarks
0 Replies
0 Quotes
[
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:a:archive\\:\\:tar_project:archive\\:\\:tar:*:*:*:*:*:perl:*:*",
"matchCriteriaId": "CE0EEC28-8DB1-42B8-9D87-5E9AA5D1C168",
"versionEndExcluding": "3.08",
"vulnerable": true
}
],
"negate": false,
"operator": "OR"
}
]
}
]