Kernel Kit / Infix / v26.10.0latest
CVE-2025-13462
2.0lowpython33.12.14 · 3.12.12 · 3.12.9in 4 of 4 releases
Reach python3 · 8 builds in 4 of 4 releases
full reviewcross-check✓ a member decided
Description · NVD
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.
Published 2026-03-12NVD
CVSS 4.0Local · low privileges · no user interaction
How it is reached
- Attack vector
- Local
- Attack complexity
- High
- Attack requirements
- Present
- Privileges required
- Low
- User interaction
- None
What it costs
- Confidentiality
- None
- Integrity
- Low
- Availability
- None
What it costs other systems
- Confidentiality
- None
- Integrity
- None
- Availability
- None
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
References 9
- github.com/python/cpython/commit/42d754e34c06e57ad6b8e7f92f32af679912d8ab
- github.com/python/cpython/commit/72dde1016493c52abe857fc4a7bf6c40138b4114
- github.com/python/cpython/commit/7ad3093d76a748af55bdb1d2e8aad3638163b017
- github.com/python/cpython/commit/9a23b753552afa28e3a2f4d8863572fc66479406
- github.com/python/cpython/commit/ae99fe3a33b43e303a05f012815cef60b611a9c7
- github.com/python/cpython/commit/d10950739a78f54d0718d88fb5a868374603c084
- github.com/python/cpython/issues/141707
- github.com/python/cpython/pull/143934
Fable 5.1 · high confidence · 2026-11-05
Python 3.12.14 as built here already contains the upstream fix for gh-141707/CVE-2025-13462: Lib/tarfile.py has the dircheck keyword on _frombuf() that suppresses AREGTYPE->DIRTYPE normalization, and _proc_gnulong() calls _fromtarfile(tarfile, dircheck=False) for the header following a GNUTYPE_LONGNAME/LONGLINK block.
Misc/NEWS lists gh-141707 under "What's New in Python 3.12.14 final?", so the fix is part of this release and NVD's version match against 3.12.14 is wrong.
No action needed beyond documenting as not applicable.
Evidence 7
Fixed signature `_frombuf(cls, buf, encoding, errors, *, dircheck=True)` with docstring explaining dircheck must be False for follow-up headers such as GNUTYPE_LONGNAME — this is the upstream fix hunk.
output/build/python3-3.12.14/Lib/tarfile.py:1263-1270 (_frombuf)
`if dircheck and obj.type == AREGTYPE and obj.name.endswith("/"): obj.type = DIRTYPE` — normalization is now conditional on dircheck.
output/build/python3-3.12.14/Lib/tarfile.py:1301
`next = self._fromtarfile(tarfile, dircheck=False)` — the multi-block member path disables the normalization, which is the behaviour the CVE describes as missing.
output/build/python3-3.12.14/Lib/tarfile.py:1402 (_proc_gnulong)
Entry 'gh-141707: Don't change tarfile.TarInfo type from AREGTYPE to DIRTYPE when parsing GNU long name or link headers' appears in the 'What's New in Python 3.12.14 final?' section.
output/build/python3-3.12.14/Misc/NEWS:5,172
PY_VERSION "3.12.14" — confirms the built source is the 3.12.14 release tarball.
output/build/python3-3.12.14/Include/patchlevel.h:26
12 Buildroot patches applied; none touch Lib/tarfile.py, so the upstream fix is not reverted.
output/build/python3-3.12.14/.applied_patches_list
python3 is selected for the target image, but this is moot since the vulnerable code is not present.
output/.config (BR2_PACKAGE_PYTHON3=y)
Version and patches
Upstream issue gh-141707; 3.12 backport commit 72dde1016493c52abe857fc4a7bf6c40138b4114 is included in the Python 3.12.14 release (Misc/NEWS 3.12.14 section). Fixed versions: 3.12.14, 3.13.x/3.14.x security releases per upstream. NVD's CPE match on 3.12.14 is therefore incorrect; the shipped tarball already contains the fix. Buildroot patches (12) do not modify tarfile.py.
Recommendation
No action; document as N/A (fix already present in Python 3.12.14 source; NVD version range is wrong for this release).
Open questions
None material. Could not consult the NVD/upstream advisory text online, but the fix hunks and NEWS entry in the tree are unambiguous.
Members of Kernel Kit decide. Sign in if you are one.