CVE-2026-2297

Publication date 4 March 2026

Last updated 13 May 2026


Ubuntu priority

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.

Read the notes from the security team

Status

Package Ubuntu Release Status
python2.7 26.04 LTS resolute Not in release
25.10 questing Not in release
24.04 LTS noble Not in release
22.04 LTS jammy
Not affected
20.04 LTS focal
Not affected
18.04 LTS bionic
Not affected
16.04 LTS xenial
Not affected
14.04 LTS trusty
Not affected
python3.4 26.04 LTS resolute Not in release
25.10 questing Not in release
24.04 LTS noble Not in release
22.04 LTS jammy Not in release
14.04 LTS trusty
Not affected
python3.5 26.04 LTS resolute Not in release
25.10 questing Not in release
24.04 LTS noble Not in release
22.04 LTS jammy Not in release
16.04 LTS xenial
Not affected
14.04 LTS trusty
Not affected
python3.6 26.04 LTS resolute Not in release
25.10 questing Not in release
24.04 LTS noble Not in release
22.04 LTS jammy Not in release
18.04 LTS bionic
Not affected
python3.7 26.04 LTS resolute Not in release
25.10 questing Not in release
24.04 LTS noble Not in release
22.04 LTS jammy Not in release
18.04 LTS bionic
Not affected
python3.8 26.04 LTS resolute Not in release
25.10 questing Not in release
24.04 LTS noble Not in release
22.04 LTS jammy Not in release
20.04 LTS focal
Vulnerable
18.04 LTS bionic
Vulnerable
python3.9 26.04 LTS resolute Not in release
25.10 questing Not in release
24.04 LTS noble Not in release
22.04 LTS jammy Not in release
20.04 LTS focal
Vulnerable
python3.10 26.04 LTS resolute Not in release
25.10 questing Not in release
24.04 LTS noble Not in release
22.04 LTS jammy
Vulnerable
python3.11 26.04 LTS resolute Not in release
25.10 questing Not in release
24.04 LTS noble Not in release
22.04 LTS jammy
Vulnerable
python3.12 26.04 LTS resolute Not in release
25.10 questing Not in release
24.04 LTS noble
Vulnerable
22.04 LTS jammy Not in release
python3.13 26.04 LTS resolute Not in release
25.10 questing
Vulnerable
24.04 LTS noble Not in release
22.04 LTS jammy Not in release
python3.14 26.04 LTS resolute
Vulnerable
25.10 questing
Vulnerable
24.04 LTS noble Not in release
22.04 LTS jammy Not in release

Notes


john-breton

Introduced in 3.8. Earlier versions of Python did not implement PEP 578, and so do not have sys.audit and io.open_code(); thus unaffected.

Patch details

For informational purposes only. We recommend not to cherry-pick updates. How can I get the fixes?

Package Patch details
python3.8
python3.9
python3.10
python3.11
python3.12
python3.13
python3.14

Access our resources on patching vulnerabilities