Alpine Security Database
ALPINE-CVE-2026-2297
Details
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 packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Alpine:v3.21 | python3 | All versions before 3.12.14-r0 (fixed in 3.12.14-r0) |
| Alpine:v3.22 | python3 | All versions before 3.12.14-r0 (fixed in 3.12.14-r0) |
| Alpine:v3.23 | python3 | All versions before 3.12.14-r0 (fixed in 3.12.14-r0) |
| Alpine:v3.24 | python3 | All versions before 3.14.5-r0 (fixed in 3.14.5-r0) |