{"id":"CVE-2025-13462","state":"PUBLISHED","title":"tarfile: Skip DIRTYPE normalization during GNU LONGNAME/LONGLINK handling","description":"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.","publishedAt":"2026-03-12T17:59:26.620Z","updatedAt":"2026-08-13T00:30:19.927Z","severity":{"score":2,"label":"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","source":"PSF"},"assigner":"PSF","products":["Python Software Foundation CPython"],"affected":[{"vendor":"Python Software Foundation","product":"CPython","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"3.10.21","versionType":"python"},{"version":"3.11.0","status":"affected","lessThan":"3.11.16","versionType":"python"},{"version":"3.12.0","status":"affected","lessThan":"3.12.14","versionType":"python"},{"version":"3.13.0","status":"affected","lessThan":"3.13.13","versionType":"python"},{"version":"3.14.0","status":"affected","lessThan":"3.14.4","versionType":"python"},{"version":"3.15.0a1","status":"affected","lessThan":"3.15.0a8","versionType":"python"}],"modules":["tarfile"],"repo":"https://github.com/python/cpython"}],"references":["https://github.com/python/cpython/pull/143934","https://github.com/python/cpython/issues/141707","https://mail.python.org/archives/list/security-announce@python.org/thread/EOMI5I66ZMKQ2INNFT6T7IAIKUGPZYIE/","https://github.com/python/cpython/commit/42d754e34c06e57ad6b8e7f92f32af679912d8ab","https://github.com/python/cpython/commit/7ad3093d76a748af55bdb1d2e8aad3638163b017","https://github.com/python/cpython/commit/ae99fe3a33b43e303a05f012815cef60b611a9c7","https://github.com/python/cpython/commit/72dde1016493c52abe857fc4a7bf6c40138b4114","https://github.com/python/cpython/commit/9a23b753552afa28e3a2f4d8863572fc66479406","https://github.com/python/cpython/commit/d10950739a78f54d0718d88fb5a868374603c084"],"weaknesses":["CWE-434","CWE-74","CWE-20"],"ingestedAt":"2026-10-29T20:08:31.050Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/13xxx/CVE-2025-13462.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-13462","state":"PUBLISHED","datePublished":"2026-03-12T17:59:26.620Z","dateUpdated":"2026-08-13T00:30:19.927Z","assignerShortName":"PSF","assignerOrgId":"28c92f92-d60d-412d-b760-e73465c3df22","dateReserved":"2025-11-19T22:05:07.578Z"},"containers":{"cna":{"title":"tarfile: Skip DIRTYPE normalization during GNU LONGNAME/LONGLINK handling","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"Python Software Foundation","product":"CPython","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"3.10.21","versionType":"python"},{"version":"3.11.0","status":"affected","lessThan":"3.11.16","versionType":"python"},{"version":"3.12.0","status":"affected","lessThan":"3.12.14","versionType":"python"},{"version":"3.13.0","status":"affected","lessThan":"3.13.13","versionType":"python"},{"version":"3.14.0","status":"affected","lessThan":"3.14.4","versionType":"python"},{"version":"3.15.0a1","status":"affected","lessThan":"3.15.0a8","versionType":"python"}],"modules":["tarfile"],"repo":"https://github.com/python/cpython"}],"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"]}],"metrics":[{"cvssV4_0":{"Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","Safety":"NOT_DEFINED","attackComplexity":"HIGH","attackRequirements":"PRESENT","attackVector":"LOCAL","baseScore":2,"baseSeverity":"LOW","exploitMaturity":"NOT_DEFINED","privilegesRequired":"LOW","providerUrgency":"NOT_DEFINED","subAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","userInteraction":"NONE","valueDensity":"NOT_DEFINED","vectorString":"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","version":"4.0","vulnAvailabilityImpact":"NONE","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"LOW","vulnerabilityResponseEffort":"NOT_DEFINED"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]}],"providerMetadata":{"shortName":"PSF","orgId":"28c92f92-d60d-412d-b760-e73465c3df22","dateUpdated":"2026-08-13T00:30:19.927Z"},"source":{"discovery":"UNKNOWN"},"x_generator":{"engine":"Vulnogram 1.0.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-03-12T19:09:23.808172Z","id":"CVE-2025-13462","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-434","type":"CWE","lang":"en","description":"CWE-434 Unrestricted Upload of File with Dangerous Type"}]},{"descriptions":[{"cweId":"CWE-74","type":"CWE","lang":"en","description":"CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')"}]},{"descriptions":[{"cweId":"CWE-20","type":"CWE","lang":"en","description":"CWE-20 Improper Input Validation"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-03-12T19:09:51.230Z"}}]}}}