{"id":"CVE-2025-13462","published":"2026-03-12T17:59:26Z","modified":"2026-08-13T00:30:19Z","title":"tarfile: Skip DIRTYPE normalization during GNU LONGNAME/LONGLINK handling","vendor":"Python Software Foundation","product":"CPython","tier":"tail","description":{"text":"The \"tarfile\" module would still apply normalization of AREGTYPE (\\x00) blocks to DIRTYPE, even while processing a multi-block member such as GNUTYPE_LONGNAME or GNUTYPE_LONGLINK. This could result in a crafted tar archive being misinterpreted by the tarfile module compared to other implementations.","provenance":"source","from":"CVE.org"},"cvss":{"score":2,"severity":"LOW","version":"4.0","vector":"CVSS:4.0/AV:L/AC:H/AT:P/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00183,"percentile":0.08024,"provenance":"source"},"cwes":[{"id":"CWE-434","name":"Unrestricted Upload of File with Dangerous Type"},{"id":"CWE-74","name":"Improper Neutralization of Special Elements in Output Used by a Downstream Component"},{"id":"CWE-20","name":"Improper Input Validation"}],"references":[{"url":"https://github.com/python/cpython/pull/143934","tags":["patch"]},{"url":"https://github.com/python/cpython/issues/141707","tags":["issue-tracking"]},{"url":"https://mail.python.org/archives/list/security-announce@python.org/thread/EOMI5I66ZMKQ2INNFT6T7IAIKUGPZYIE/","tags":["vendor-advisory"]},{"url":"https://github.com/python/cpython/commit/42d754e34c06e57ad6b8e7f92f32af679912d8ab","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/7ad3093d76a748af55bdb1d2e8aad3638163b017","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/ae99fe3a33b43e303a05f012815cef60b611a9c7","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/72dde1016493c52abe857fc4a7bf6c40138b4114","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/9a23b753552afa28e3a2f4d8863572fc66479406","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/d10950739a78f54d0718d88fb5a868374603c084","tags":["patch"]}],"priority":{"score":3.0,"factors":[{"name":"EPSS percentile","points":1.6},{"name":"CVSS severity","points":1.4}]},"vendorSlug":"python-software-foundation","affectedVersions":[{"vendor":"Python Software Foundation","product":"CPython","versions":["< 3.10.21",">= 3.11.0, < 3.11.16",">= 3.12.0, < 3.12.14",">= 3.13.0, < 3.13.13",">= 3.14.0, < 3.14.4",">= 3.15.0a1, < 3.15.0a8"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-03-12T19:09:23.808172Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2025-208613","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-python-software-foundation-cpython-cve-2024-6232","parents":[{"from":"CVE-2024-6232","to":"CVE-2025-13462","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["Lib/tarfile.py"],"commits":["https://github.com/python/cpython/commit/4eaf4891c12589e3c7bdad5f5b076e4c8392dd06","https://github.com/python/cpython/commit/743acbe872485dc18df4d8ab2dc7895187f062c4","https://github.com/python/cpython/commit/42d754e34c06e57ad6b8e7f92f32af679912d8ab","https://github.com/python/cpython/commit/7ad3093d76a748af55bdb1d2e8aad3638163b017"],"basis":"shared function","functions":["_proc_pax"]}]}]}}