{"id":"CVE-2026-42497","aliases":["CVE-2026-42497"],"related":[],"kind":"vulnerability","state":"published","title":"Archive::Tar versions before 3.08 for Perl extract hardlinks to attacker controlled paths outside the extraction directory","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"Las versiones de Archive::Tar anteriores a la 3.08 para Perl extraen enlaces duros a rutas controladas por el atacante fuera del directorio de extracción.\n\n_make_special_file() pasa el linkname del encabezado tar a link() sin validarlo contra rutas absolutas o segmentos '..', creando un enlace duro que comparte el inodo del archivo víctima.\n\nUna escritura posterior a través del nombre extraído modifica el archivo víctima, y el bloque chmod, chown y utime posterior a la extracción en _extract_file() (protegido solo contra enlaces simbólicos a través de -l) aplica el modo, propietario y marcas de tiempo del encabezado tar al inodo compartido solo durante la extracción.","source":"nvd"}],"published":"2026-05-26T00:17:50.656Z","modified":"2026-11-10T13:19:07.687Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"rating":"HIGH"}],"cwes":["CWE-59","CWE-732"],"affected":[{"ranges":[{"type":"custom","introduced":"0","fixed":"3.08","status":"affected"}],"vendor":"BINGOS","product":"Archive::Tar","package":"Archive-Tar","repo":"https://github.com/jib/archive-tar-new","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"3.08"}],"vendor":"archive::tar_project","product":"archive::tar","cpe":"cpe:2.3:a:archive\\:\\:tar_project:archive\\:\\:tar:*:*:*:*:*:perl:*:*","source":"nvd"}],"references":[{"url":"https://github.com/jib/archive-tar-new/commit/17c873492a05eddc0de18c1485e0b2cccd5a9158.patch","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://metacpan.org/release/BINGOS/Archive-Tar-3.08/changes","tags":["release-notes"],"sources":["cvelist","nvd"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-42496","tags":["related","third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-457936.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"CPANSec","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-05-28T13:13:55.750Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-42497","url":"https://www.cve.org/CVERecord?id=CVE-2026-42497","licence":"CVE Terms of Use","modified":"2026-11-10T12:45:57.627Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-42497","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42497","licence":"Public domain","modified":"2026-11-10T13:19:07.687Z"}],"updatedAt":"2026-11-25T22:59:22.304Z","epss":{"score":0.00493,"percentile":0.43937,"date":"2026-12-01T12:00:22.000Z"}}