CVE Explorer
CVE-2026-42497
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
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
1
Preserved source conflicts
No provider value was silently selected as the winner.
cwe · 2 assertions
{"cweId":"CWE-59","description":"CWE-59 Improper Link Resolution Before File Access ('Link Following')","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:bbe91a84a4ac2b75bf4422b4570ad0aac8f085ed14affe078f6baf9402e1daaa · sha256:e9b29c6af8244d00… · /containers/cna/problemTypes/0/descriptions/0
{"cweId":"CWE-732","description":"CWE-732 Incorrect Permission Assignment for Critical Resource","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:bbe91a84a4ac2b75bf4422b4570ad0aac8f085ed14affe078f6baf9402e1daaa · sha256:e9b29c6af8244d00… · /containers/cna/problemTypes/1/descriptions/0
Affected products and versions
1 source assertion{"collectionURL":"https://cpan.org/modules","defaultStatus":"unaffected","packageName":"Archive-Tar","product":"Archive::Tar","programFiles":["lib/Archive/Tar.pm"],"programRoutines":[{"name":"Archive::Tar::_make_special_file"},{"name":"Archive::Tar::_extract_file"}],"repo":"https://github.com/jib/archive-tar-new","vendor":"BINGOS","versions":[{"lessThan":"3.08","status":"affected","version":"0","versionType":"custom"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:bbe91a84a4ac2b75bf4422b4570ad0aac8f085ed14affe078f6baf9402e1daaa · sha256:e9b29c6af8244d00… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":7.5,"baseSeverity":"HIGH","confidentialityImpact":"NONE","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","version":"3.1"},"metric_type":"cvssV3_1"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:bbe91a84a4ac2b75bf4422b4570ad0aac8f085ed14affe078f6baf9402e1daaa · sha256:e9b29c6af8244d00… · /containers/adp/0/metrics/0/cvssV3_1
CWE assertions
2 source assertions{"cweId":"CWE-59","description":"CWE-59 Improper Link Resolution Before File Access ('Link Following')","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:bbe91a84a4ac2b75bf4422b4570ad0aac8f085ed14affe078f6baf9402e1daaa · sha256:e9b29c6af8244d00… · /containers/cna/problemTypes/0/descriptions/0
{"cweId":"CWE-732","description":"CWE-732 Incorrect Permission Assignment for Critical Resource","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:bbe91a84a4ac2b75bf4422b4570ad0aac8f085ed14affe078f6baf9402e1daaa · sha256:e9b29c6af8244d00… · /containers/cna/problemTypes/1/descriptions/0
Source references
3 source assertions{"tags":["patch"],"url":"https://github.com/jib/archive-tar-new/commit/17c873492a05eddc0de18c1485e0b2cccd5a9158.patch"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:bbe91a84a4ac2b75bf4422b4570ad0aac8f085ed14affe078f6baf9402e1daaa · sha256:e9b29c6af8244d00… · /containers/cna/references/0
{"tags":["release-notes"],"url":"https://metacpan.org/release/BINGOS/Archive-Tar-3.08/changes"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:bbe91a84a4ac2b75bf4422b4570ad0aac8f085ed14affe078f6baf9402e1daaa · sha256:e9b29c6af8244d00… · /containers/cna/references/1
{"tags":["related"],"url":"https://www.cve.org/CVERecord?id=CVE-2026-42496"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:bbe91a84a4ac2b75bf4422b4570ad0aac8f085ed14affe078f6baf9402e1daaa · sha256:e9b29c6af8244d00… · /containers/cna/references/2
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.