ADVISORIES

Alpine Security Database

ALPINE-CVE-2025-4516

Details

There is an issue in CPython when using bytes.decode("unicode_escape", error="ignore|replace"). If you are not using the "unicode_escape" encoding or an error handler your usage is not affected. To work-around this issue you may stop using the error= handler and instead wrap the bytes.decode() call in a try-except catching the DecodeError.

Affected packages

EcosystemPackageAffected versions
Alpine:v3.18python3
All versions before 3.11.12-r1 (fixed in 3.11.12-r1)
Alpine:v3.19python3
All versions before 3.11.12-r1 (fixed in 3.11.12-r1)
Alpine:v3.20python3
All versions before 3.12.10-r1 (fixed in 3.12.10-r1)
Alpine:v3.21python3
All versions before 3.12.10-r1 (fixed in 3.12.10-r1)
Alpine:v3.22python3
All versions before 3.12.10-r1 (fixed in 3.12.10-r1)
Alpine:v3.23python3
All versions before 3.12.10-r1 (fixed in 3.12.10-r1)
Alpine:v3.24python3
All versions before 3.12.10-r1 (fixed in 3.12.10-r1)

References