CVE-2026-2297

Published: March 7, 2026Last modified: March 13, 2026

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.

Severity score breakdown

ParameterValue
Base score5.5
Attack VectorLOCAL
Attack complexityLOW
Privileges requiredLOW
User interactionNONE
ScopeUNCHANGED
ConfidentialityNONE
Integrity impactHIGH
Availability impactNONE
VectorCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N

Status

ProductReleasePackageStatus
Alpaquita Linux23 LTSpython3Fixed (3.11.13-r4)
25 LTSpython3Fixed (3.12.12-r3)
Streampython3Fixed (3.12.12-r4)
Hardened Containers23 LTSpython3Fixed (3.11.13-r4)
25 LTSpython3Fixed (3.12.12-r3)
Streampython3Fixed (3.12.12-r4)

References

ON THIS PAGE