bitVakt

Kernel Kit / Infix / v26.10.0latest

CVE-2025-12084

6.3medium

python33.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
Review Av26.10.0x86_64Not affected✓ accepted by a member, 2026-11-17 · settles 4 of 8

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
  1. '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

  2. 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)

  3. 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)

  4. 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__)

  5. PY_VERSION "3.12.14" – source in tree matches the package version.

    output/build/python3-3.12.14/Include/patchlevel.h:26

  6. PYTHON3_VERSION = 3.12.14, the release containing the fix.

    buildroot/package/python3/python3.mk:8

  7. 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.