published 4 Mar 2026 · updated 16 Nov 2026
SourcelessFileLoader does not use io.open_code()
5.7MediumCVSS 5.7EPSS 0%
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 3.10.21, 3.11.16, 3.12.14 and 3 more.
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.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Python Software Foundation | <3.10.21, >=3.11.0 <3.11.16, >=3.12.0 <3.12.14, >=3.13.0 <3.13.13, >=3.14.0 <3.14.4, >=3.15.0a1 <3.15.0a7 | 3.10.21, 3.11.16, 3.12.14, 3.13.13, 3.14.4, 3.15.0a7 |
Timeline
Every event on this vulnerability
Embed
A live severity badge for an advisory, README or ticket