Summary
Package updates are available for Amazon Linux 2023 that fix the following vulnerabilities: CVE-2025-4516: 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.
Fixed packages 10
| Release | Package | Fixed in |
|---|---|---|
| Amazon Linux · 2023 | python-unversioned-command | 0:3.9.22-1.amzn2023.0.2 |
| Amazon Linux · 2023 | python3 | 0:3.9.22-1.amzn2023.0.2 |
| Amazon Linux · 2023 | python3-debug | 0:3.9.22-1.amzn2023.0.2 |
| Amazon Linux · 2023 | python3-devel | 0:3.9.22-1.amzn2023.0.2 |
| Amazon Linux · 2023 | python3-idle | 0:3.9.22-1.amzn2023.0.2 |
| Amazon Linux · 2023 | python3-libs | 0:3.9.22-1.amzn2023.0.2 |
| Amazon Linux · 2023 | python3-test | 0:3.9.22-1.amzn2023.0.2 |
| Amazon Linux · 2023 | python3-tkinter | 0:3.9.22-1.amzn2023.0.2 |
| Amazon Linux · 2023 | python3.9-debuginfo | 0:3.9.22-1.amzn2023.0.2 |
| Amazon Linux · 2023 | python3.9-debugsource | 0:3.9.22-1.amzn2023.0.2 |
Vulnerabilities 1
-
Medium 5.9
Use-after-free in "unicode_escape" decoder with error handler
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= handle…
References
-
web
https://alas.aws.amazon.com/cve/html/CVE-2025-4516.html