bitVakt

Kernel Kit / Infix / v26.10.0latest

CVE-2026-3087

6.0medium

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

If shutil.unpack_archive() is given a ZIP archive with an absolute Windows path containing a drive (C:\\...) then the archive will be extracted outside the target directory which is different than other operating systems. Only Windows is affected by this vulnerability.

Published 2026-04-27NVD

CVSS 4.0Network · low privileges · no user interaction

How it is reached

Attack vector
Network
Attack complexity
Low
Attack requirements
Present
Privileges required
Low
User interaction
None

What it costs

Confidentiality
None
Integrity
High
Availability
None

What it costs other systems

Confidentiality
None
Integrity
None
Availability
None

CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:H/VA:N/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-2026-3087 (upstream gh-146581) is fixed in Python 3.12.14, the exact version in this build. The source in the tree contains the fix: shutil._unpack_zipfile now delegates to ZipFile.extractall with _ignore_invalid_names=True, and zipfile._extract_member uses os.path.splitroot to skip entries with a drive or root component. Misc/NEWS lists gh-146581 under "What's New in Python 3.12.14 final".

Independently, the CVE is Windows-only (drive-letter handling in ntpath); Infix is a Linux target, so the vulnerable path is not exercisable there anyway.

NVD's range (which lists 3.12.14 as affected) is wrong for this version.

Evidence 6
  1. Under 'What's New in Python 3.12.14 final? (2026-08-12)': 'gh-146581: Fix vulnerability in shutil.unpack_archive for ZIP files on Windows ... Windows drive prefix. Now such invalid paths will be skipped.' – this is the CVE-2026-3087 fix.

    output/build/python3-3.12.14/Misc/NEWS:5-8,117-121

  2. Fixed implementation: sets zip._ignore_invalid_names = True and calls zip.extractall(extract_dir); the vulnerable hand-rolled loop with os.path.join/'..' check is gone.

    output/build/python3-3.12.14/Lib/shutil.py:1232-1242 (_unpack_zipfile)

  3. Fixed zipfile side: os.path.splitroot(arcname) and 'if self._ignore_invalid_names and (drive or root): return None' – drive-prefixed/absolute names are skipped rather than extracted.

    output/build/python3-3.12.14/Lib/zipfile/__init__.py:1312, 1788-1823 (_extract_member)

  4. Only the 12 standard Buildroot patches (pyc, pydoc, lib2to3, sqlite, tk, curses, expat, cross-compile fixes); none touch shutil/zipfile, so upstream fixed code is shipped unmodified.

    output/build/python3-3.12.14/.applied_patches_list

  5. BR2_PACKAGE_PYTHON3=y and BR2_PACKAGE_HOST_PYTHON3=y – python3 is selected for the target (pyc-only) and host, so the package is in the image; output/target/usr/lib/python3.12/shutil.pyc is shipped.

    output/.config:1486,4113

  6. 'Only Windows is affected by this vulnerability' – the flaw depends on ntpath drive-letter semantics; Infix x86_64 target is Linux (posixpath), a second independent reason the code path is not reachable.

    CVE description / NVD

Version and patches

Upstream fix gh-146581 landed in 3.12.14 (release 2026-08-12) per Misc/NEWS in the build tree; the referenced fix commits are the main-branch and 3.9–3.13 backports. NVD's CPE match on 3.12.14 is a range error – this version contains the fix. No Buildroot patch names the CVE; none is needed.

Recommendation

No action. Document as N/A: fix present in python3 3.12.14 (gh-146581), and the vulnerability is Windows-only while Infix is a Linux target. Optionally add a BR2 IGNORE_CVES / SBOM annotation for CVE-2026-3087 to suppress the NVD false match.

Open questions

None material. The defconfig at /mnt/worker/repos/... is outside the readable tree, but output/.config (the effective config) was checked directly.

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