Amazon Linux 2 Security Advisory: ALAS2-2025-2923
Advisory Released Date: 2025-07-10
Advisory Updated Date: 2025-07-10
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. (CVE-2025-4516)
The html.parser.HTMLParser class had worse-case quadratic complexity when processing certain crafted malformed inputs potentially leading to amplified denial-of-service. (CVE-2025-6069)
Affected Packages:
python3
Note:
This advisory is applicable to Amazon Linux 2 (AL2) Core repository. Visit this FAQ section for the difference between AL2 Core and AL2 Extras advisories.
Issue Correction:
Run yum update python3 to update your system.
aarch64:
python3-3.7.16-1.amzn2.0.18.aarch64
python3-libs-3.7.16-1.amzn2.0.18.aarch64
python3-devel-3.7.16-1.amzn2.0.18.aarch64
python3-tools-3.7.16-1.amzn2.0.18.aarch64
python3-tkinter-3.7.16-1.amzn2.0.18.aarch64
python3-test-3.7.16-1.amzn2.0.18.aarch64
python3-debug-3.7.16-1.amzn2.0.18.aarch64
python3-debuginfo-3.7.16-1.amzn2.0.18.aarch64
i686:
python3-3.7.16-1.amzn2.0.18.i686
python3-libs-3.7.16-1.amzn2.0.18.i686
python3-devel-3.7.16-1.amzn2.0.18.i686
python3-tools-3.7.16-1.amzn2.0.18.i686
python3-tkinter-3.7.16-1.amzn2.0.18.i686
python3-test-3.7.16-1.amzn2.0.18.i686
python3-debug-3.7.16-1.amzn2.0.18.i686
python3-debuginfo-3.7.16-1.amzn2.0.18.i686
src:
python3-3.7.16-1.amzn2.0.18.src
x86_64:
python3-3.7.16-1.amzn2.0.18.x86_64
python3-libs-3.7.16-1.amzn2.0.18.x86_64
python3-devel-3.7.16-1.amzn2.0.18.x86_64
python3-tools-3.7.16-1.amzn2.0.18.x86_64
python3-tkinter-3.7.16-1.amzn2.0.18.x86_64
python3-test-3.7.16-1.amzn2.0.18.x86_64
python3-debug-3.7.16-1.amzn2.0.18.x86_64
python3-debuginfo-3.7.16-1.amzn2.0.18.x86_64