ADVISORIES

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

EcosystemPackageAffected versions
Alpine:v3.21python3
All versions before 3.12.14-r0 (fixed in 3.12.14-r0)
Alpine:v3.22python3
All versions before 3.12.14-r0 (fixed in 3.12.14-r0)
Alpine:v3.23python3
All versions before 3.12.14-r0 (fixed in 3.12.14-r0)
Alpine:v3.24python3
All versions before 3.14.5-r0 (fixed in 3.14.5-r0)

References