bitVakt

Kernel Kit / Infix / v26.10.0latest

CVE-2026-7210

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

xml.parsers.expat and xml.etree.ElementTree use insufficient entropy for Expat hash-flooding protection, which allows a crafted XML document to trigger hash flooding.\r\n\r\nFully mitigating this vulnerability requires both updating libexpat to 2.8.0 or later and applying this patch.

Published 2026-05-11NVD

CVSS 4.0Network · no privileges · no user interaction

How it is reached

Attack vector
Network
Attack complexity
High
Attack requirements
None
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:H/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N

References 12
Review Av26.10.0x86_64False positive✓ accepted by a member, 2026-11-18 · settles 4 of 8

Fable 5.1 · high confidence · 2026-11-05

Python 3.12.14 (released 2026-08-12) already contains the upstream fix for gh-149018/CVE-2026-7210: Misc/NEWS lists it under 3.12.14 and Modules/pyexpat.c and Modules/_elementtree.c call XML_SetHashSalt16Bytes with the 16-byte _Py_HashSecret.expat.hashsalt16 when built against libexpat >= 2.8.0.

This build configures python3 with --with-expat=system and links against expat 2.8.4, so the fixed branch is compiled in and the advisory's companion requirement (libexpat >= 2.8.0) is also met.

NVD's version range including 3.12.14 is wrong; no Buildroot patch is required.

Evidence 8
  1. 3.12.14 final release notes include 'gh-149018: Improved protection against XML hash-flooding attacks in xml.parsers.expat and xml.etree.ElementTree when Python is compiled with libExpat 2.8.0 or later' — the fix for this CVE.

    output/build/python3-3.12.14/Misc/NEWS:5-8,96-98

  2. Fixed code: '#if XML_COMBINED_VERSION >= 20800' uses XML_SetHashSalt16Bytes(self->itself, _Py_HashSecret.expat.hashsalt16); legacy XML_SetHashSalt only for older libexpat.

    output/build/python3-3.12.14/Modules/pyexpat.c:1472-1479

  3. ElementTree C accelerator prefers SetHashSalt16Bytes over legacy SetHashSalt (same fix).

    output/build/python3-3.12.14/Modules/_elementtree.c:3661-3667

  4. _Py_HashSecret.expat.hashsalt16[16] field introduced by the fix is present.

    output/build/python3-3.12.14/Include/pyhash.h:73-77

  5. Configured with --with-expat=system (system libexpat, not the bundled copy).

    output/build/python3-3.12.14/config.log:7

  6. BR2_PACKAGE_PYTHON3_PYEXPAT=y adds the expat package dependency and --with-expat=system.

    buildroot/package/python3/python3.mk:114-116

  7. System libexpat is 2.8.4 (>= 2.8.0), so the 16-byte-salt branch is compiled and the advisory's libexpat requirement is satisfied.

    output/build/expat-2.8.4/lib/expat.h:1097-1099

  8. Only 12 Buildroot build-option patches applied; none modify pyexpat hash salting, so the upstream fix is intact.

    output/build/python3-3.12.14/.applied_patches_list

Version and patches

Fixed upstream via gh-149018 commits (backported to 3.12 and included in 3.12.14, released 2026-08-12, per Misc/NEWS). This tree is 3.12.14 with the fixed pyexpat.c/_elementtree.c, built against system libexpat 2.8.4. NVD's range covering 3.12.14 does not fit; no Buildroot patch names the CVE because none is needed.

Recommendation

No action; document as N/A (NVD version-range false positive — fix shipped in 3.12.14, libexpat 2.8.4 in use). Optionally add PYTHON3_IGNORE_CVES += CVE-2026-7210 in python3.mk to silence the scanner.

Open questions

None material. Reachability not evaluated since the build is not affected; pyexpat is compiled in (BR2_PACKAGE_PYTHON3_PYEXPAT=y) but carries the fixed code.

Members of Kernel Kit decide. Sign in if you are one.