{"schemaVersion":3,"id":"CVE-2026-42497","aliases":["UBUNTU-CVE-2026-42497","DEBIAN-CVE-2026-42497"],"status":"published","duplicateOf":null,"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.","dates":{"published":"2026-05-26T00:17:50.656Z","modified":"2026-05-28T13:14:01.484Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.5,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00471,"percentile":0.3973,"severity":"low","asOf":"2026-10-22T00:00:00.000Z","change":{"pp":0.053999999999999965,"baselineDate":"2026-09-22T00:00:00.000Z","baselineScore":0.00417},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00417,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00417,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00417,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00417,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00417,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00417,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00417,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00417,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00417,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00417,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00471,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00471,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00471,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00471,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00471,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00471,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00471,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00471,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00471,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00471,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00471,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00471,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00471,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00471,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00471,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00471,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00471,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00471,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00471,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00471,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00471,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00471,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00471,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00471,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00471,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00471,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00471,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00471,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.00471,"percentile":0.3973}],"last30":[{"date":"2026-09-22T00:00:00.000Z","score":0.00417,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00417,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00471,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00471,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00471,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00471,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00471,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00471,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00471,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00471,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00471,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00471,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00471,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00471,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00471,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00471,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00471,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00471,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00471,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00471,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00471,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00471,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00471,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00471,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00471,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00471,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00471,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00471,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00471,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00471,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.00471,"percentile":0.3973}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-59","name":"Improper Link Resolution Before File Access ('Link Following')","description":"The product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/59.html"},{"id":"CWE-732","name":"Incorrect Permission Assignment for Critical Resource","description":"The product specifies permissions for a security-critical resource in a way that allows that resource to be read or modified by unintended actors.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/732.html"}],"affected":[{"vendor":"bingos","product":"archive::tar","name":"Archive::Tar","label":"archive::tar","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 3.08","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.08","eol":null,"hubHref":null},{"vendor":"debian","product":"perl","name":"perl","label":"perl","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/perl","purlType":"deb","versions":[{"text":"< 5.36.0-7+deb12u4","noFixRecorded":false,"fixedIn":null},{"text":"< 5.40.1-6+deb13u1","noFixRecorded":false,"fixedIn":null},{"text":"< 5.42.3-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 5.36.0-7+deb12u4 | < 5.40.1-6+deb13u1 | < 5.42.3-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"perl","name":"perl","label":"perl","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/perl","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null},{"text":"< 5.38.2-3.2ubuntu0.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"All versions (No fix recorded) | < 5.38.2-3.2ubuntu0.3","eol":null,"hubHref":null}],"affectedCount":3,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/jib/archive-tar-new/commit/17c873492a05eddc0de18c1485e0b2cccd5a9158.patch","label":"github.com/jib/archive-tar-new/commit/17c873492a05eddc0de18c1485e0b2cccd5a9158.patch","hostname":"github.com","tags":["Patch","REPORT"]},{"url":"https://metacpan.org/release/BINGOS/Archive-Tar-3.08/changes","label":"metacpan.org/release/BINGOS/Archive-Tar-3.08/changes","hostname":"metacpan.org","tags":["Release Notes","REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-42496","label":"www.cve.org/CVERecord?id=CVE-2026-42496","hostname":"www.cve.org","tags":["Related","REPORT","Third Party Advisory"]},{"url":"https://ubuntu.com/security/CVE-2026-42497","label":"ubuntu.com/security/CVE-2026-42497","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-42497","label":"www.cve.org/CVERecord?id=CVE-2026-42497","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://lists.security.metacpan.org/cve-announce/msg/40396457/","label":"lists.security.metacpan.org/cve-announce/msg/40396457/","hostname":"lists.security.metacpan.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2026-42497","label":"security-tracker.debian.org/tracker/CVE-2026-42497","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42497","label":"nvd.nist.gov/vuln/detail/CVE-2026-42497","hostname":"nvd.nist.gov","tags":["Oval","Advisory"]}],"lineage":{"upstream":[],"downstream":["MGASA-2026-0230"],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-05-26T00:17:50.656Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-05-28T13:14:01.484Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":30,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-22T22:00:50.339Z","stale":false,"partial":false}}