{"id":"CVE-2026-42497","state":"PUBLISHED","title":"Archive::Tar versions before 3.08 for Perl extract hardlinks to attacker controlled paths outside the extraction directory","description":"Archive::Tar versions before 3.08 for Perl extract hardlinks to attacker controlled paths outside the extraction directory.\n\n_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.\n\nA 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.","publishedAt":"2026-05-26T00:17:50.656Z","updatedAt":"2026-05-28T13:14:01.484Z","severity":{"score":7.5,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","source":"CISA-ADP"},"assigner":"CPANSec","products":["BINGOS Archive::Tar"],"affected":[{"vendor":"BINGOS","product":"Archive::Tar","packageName":"Archive-Tar","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"3.08","versionType":"custom"}],"collectionURL":"https://cpan.org/modules","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"}],"references":["https://github.com/jib/archive-tar-new/commit/17c873492a05eddc0de18c1485e0b2cccd5a9158.patch","https://metacpan.org/release/BINGOS/Archive-Tar-3.08/changes","https://www.cve.org/CVERecord?id=CVE-2026-42496"],"weaknesses":["CWE-59","CWE-732"],"ingestedAt":"2026-10-29T20:11:57.932Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/42xxx/CVE-2026-42497.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-42497","state":"PUBLISHED","datePublished":"2026-05-26T00:17:50.656Z","dateUpdated":"2026-05-28T13:14:01.484Z","assignerShortName":"CPANSec","assignerOrgId":"9b29abf9-4ab0-4765-b253-1875cd9b441e","dateReserved":"2026-04-27T18:34:48.417Z"},"containers":{"cna":{"title":"Archive::Tar versions before 3.08 for Perl extract hardlinks to attacker controlled paths outside the extraction directory","descriptions":[{"lang":"en","value":"Archive::Tar versions before 3.08 for Perl extract hardlinks to attacker controlled paths outside the extraction directory.\n\n_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.\n\nA 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."}],"affected":[{"vendor":"BINGOS","product":"Archive::Tar","packageName":"Archive-Tar","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"3.08","versionType":"custom"}],"collectionURL":"https://cpan.org/modules","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"}],"references":[{"url":"https://github.com/jib/archive-tar-new/commit/17c873492a05eddc0de18c1485e0b2cccd5a9158.patch","tags":["patch"]},{"url":"https://metacpan.org/release/BINGOS/Archive-Tar-3.08/changes","tags":["release-notes"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-42496","tags":["related"]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-59","description":"CWE-59 Improper Link Resolution Before File Access ('Link Following')","lang":"en","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-732","description":"CWE-732 Incorrect Permission Assignment for Critical Resource","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"CPANSec","orgId":"9b29abf9-4ab0-4765-b253-1875cd9b441e","dateUpdated":"2026-05-26T00:17:50.656Z"},"solutions":[{"lang":"en","value":"Upgrade to Archive::Tar 3.08 or later."}],"source":{"discovery":"UNKNOWN"},"timeline":[{"lang":"en","time":"2026-04-12T00:00:00.000Z","value":"Issue reported."},{"lang":"en","time":"2026-05-10T00:00:00.000Z","value":"Version 3.06 released, disabling hardlink extraction by default."},{"lang":"en","time":"2026-05-22T00:00:00.000Z","value":"Version 3.08 released."}],"x_generator":{"engine":"cpansec-cna-tool 0.1"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":7.5,"attackVector":"NETWORK","baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","integrityImpact":"HIGH","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"NONE","privilegesRequired":"NONE","confidentialityImpact":"NONE"}},{"other":{"type":"ssvc","content":{"timestamp":"2026-05-28T13:13:55.750345Z","id":"CVE-2026-42497","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-05-28T13:14:01.484Z"}}]}}}