Skip to main content
CVE-2026-2297VulnerabilityPublished Updated

Python3.8: The import hook

Affects python3.8Source GCVE Database

0
Compare
Authoritative record:CVE-2026-2297· Medium 5.7

Not known to be exploited · CVSS 5.7 Medium · fixed in 3.10.12-1~22.04.16 : update python3.8 when convenient.

Data as of 24 Nov 2026, 20:12 UTC

CVSS 4.0 base score
5.7Medium
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (PSF)CVSS 4.05.7
Patch
Available – fixed in 3.10.12-1~22.04.16, 3.12.3-1ubuntu0.15
CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 4 Mar 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 23 Nov 2026.

What to do

Upgrade the Ubuntu to 3.10.12-1~22.04.16 (python3.10 package) or 3.12.3-1ubuntu0.15 (python3.12 package).

Affected software

ProductAffectedFixed in
Ubuntu 25.10python3.13pkg:deb/ubuntu/python3.13?arch=source&distro=questingOther threatsAffected
  • 3.13.3-1 – 3.13.7-1ubuntu0.4
12 affected builds
Fixed in–
Ubuntu 25.10python3.14pkg:deb/ubuntu/python3.14?arch=source&distro=questingOther threatsAffected
  • 3.14.0-1 – 3.14.0~rc3-1
10 affected builds
Fixed in–
Ubuntu 24.04 LTSpython3.12pkg:deb/ubuntu/python3.12?arch=source&distro=nobleOther threatsAffected
  • <3.12.3-1ubuntu0.15
Fixed in
  • 3.12.3-1ubuntu0.15
Ubuntu 22.04 LTSpython3.10pkg:deb/ubuntu/python3.10?arch=source&distro=jammyOther threatsAffected
  • <3.10.12-1~22.04.16
Fixed in
  • 3.10.12-1~22.04.16
Ubuntu Pro 22.04 LTSpython3.11pkg:deb/ubuntu/python3.11?arch=source&distro=esm-apps/jammyOther threatsAffected
  • 3.11.0~rc1-1~22.04 – 3.11.0~rc1-1~22.04.1~esm9
13 affected builds
Fixed in–
Ubuntu Pro 20.04 LTSpython3.8pkg:deb/ubuntu/python3.8?arch=source&distro=esm-infra/focalOther threatsAffected
  • 3.8.0-1 – 3.8.10-0ubuntu1~20.04.18+esm7
39 affected builds
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

Description

The import hook in CPython that handles legacy *.pyc files (SourcelessFileLoader) is incorrectly handled in FileLoader (a base class) and so does not use io.open_code() to read the .pyc files. sys.audit handlers for this audit event therefore do not fire.

References

Community reviews

Loading reviews…