Kernel Kit / Infix / v26.10.0latest
CVE-2025-12084
6.3mediumpython33.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
When building nested elements using xml.dom.minidom methods such as appendChild() that have a dependency on _clear_id_cache() the algorithm is quadratic. Availability can be impacted when building excessively nested documents.
Published 2025-12-03NVD
CVSS 4.0Network · no privileges · no user interaction
How it is reached
- Attack vector
- Network
- Attack complexity
- Low
- Attack requirements
- Present
- Privileges required
- None
- User interaction
- None
What it costs
- Confidentiality
- None
- Integrity
- None
- Availability
- Low
What it costs other systems
- Confidentiality
- None
- Integrity
- None
- Availability
- None
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
References 14
- github.com/python/cpython/commit/027f21e417b26eed4505ac2db101a4352b7c51a0
- github.com/python/cpython/commit/08d8e18ad81cd45bc4a27d6da478b51ea49486e4
- github.com/python/cpython/commit/27648a1818749ef44c420afe6173af6868715437
- github.com/python/cpython/commit/41f468786762348960486c166833a218a0a436af
- github.com/python/cpython/commit/57937a8e5e293f0dcba5115f7b7a11b1e0c9a273
- github.com/python/cpython/commit/8d2d7bb2e754f8649a68ce4116271a4932f76907
- github.com/python/cpython/commit/9c9dda6625a2a90d2a06c657eee021d6be19842d
- github.com/python/cpython/commit/a46c10ec9d4050ab67b8a932e0859a2ea60c3cb8
Fable 5.1 · high confidence · 2026-11-05
CVE-2025-12084 (quadratic _clear_id_cache() in xml.dom.minidom, upstream gh-142145) is already fixed in the Python 3.12.14 source in this tree.
The release notes for 3.12.14 (released 2026-08-12) list the gh-142145 fix, and Lib/xml/dom/minidom.py contains the fixed implementation: _clear_id_cache() reads node.ownerDocument directly and the old _in_document() parent-walk loop no longer exists.
NVD's CPE range is stale relative to this stable release; no Buildroot patch is needed.
Evidence 7
'What's New in Python 3.12.14 final? Release date: 2026-08-12' section includes 'gh-142145: Remove quadratic behavior in xml.minidom node ID cache clearing' – the upstream fix for CVE-2025-12084.
output/build/python3-3.12.14/Misc/NEWS:5-8,230-236
Fixed implementation: clears cache via node.ownerDocument in O(1); no parent-chain walk.
output/build/python3-3.12.14/Lib/xml/dom/minidom.py:1533-1539 (_clear_id_cache)
No occurrences of the vulnerable _in_document() helper that caused quadratic traversal.
output/build/python3-3.12.14/Lib/xml/dom/minidom.py (grep _in_document)
ownerDocument added as a slot and initialised on Element, part of the gh-142145 change.
output/build/python3-3.12.14/Lib/xml/dom/minidom.py:659-677 (Element.__slots__/__init__)
PY_VERSION "3.12.14" – source in tree matches the package version.
output/build/python3-3.12.14/Include/patchlevel.h:26
PYTHON3_VERSION = 3.12.14, the release containing the fix.
buildroot/package/python3/python3.mk:8
12 Buildroot patches applied; none touch minidom (none needed, fix is upstream).
output/build/python3-3.12.14/.applied_patches_list
Version and patches
Upstream fix gh-142145 landed in 3.12.14 (NEWS, release date 2026-08-12). NVD's CPE match for 3.12.14 is stale; the shipped source already contains the fixed _clear_id_cache(). None of the 12 Buildroot patches relate to this CVE.
Recommendation
No action; document as not applicable (fixed upstream in 3.12.14). Optionally add a Buildroot IGNORE_CVES entry or SBOM annotation so the scanner stops flagging it.
Open questions
None material. Reachability was not analysed in depth since the fix is present; for the record, python3 is selected (BR2_PACKAGE_PYTHON3=y with pyexpat enabled) so minidom is in the image, but the fixed code is what ships.
Members of Kernel Kit decide. Sign in if you are one.