ALAS2023-2025-1033


Amazon Linux 2023 Security Advisory: ALAS2023-2025-1033
Advisory Released Date: 2025-06-23
Advisory Updated Date: 2025-06-23
Severity: Medium

Issue Overview:

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)


Affected Packages:

python3.9


Issue Correction:
Run dnf update python3.9 --releasever 2023.7.20250623 to update your system.

New Packages:
aarch64:
    python3-3.9.22-1.amzn2023.0.2.aarch64
    python3-devel-3.9.22-1.amzn2023.0.2.aarch64
    python3-debug-3.9.22-1.amzn2023.0.2.aarch64
    python3-idle-3.9.22-1.amzn2023.0.2.aarch64
    python3-tkinter-3.9.22-1.amzn2023.0.2.aarch64
    python3.9-debugsource-3.9.22-1.amzn2023.0.2.aarch64
    python3.9-debuginfo-3.9.22-1.amzn2023.0.2.aarch64
    python3-libs-3.9.22-1.amzn2023.0.2.aarch64
    python3-test-3.9.22-1.amzn2023.0.2.aarch64

noarch:
    python-unversioned-command-3.9.22-1.amzn2023.0.2.noarch

src:
    python3.9-3.9.22-1.amzn2023.0.2.src

x86_64:
    python3-devel-3.9.22-1.amzn2023.0.2.x86_64
    python3.9-debugsource-3.9.22-1.amzn2023.0.2.x86_64
    python3-3.9.22-1.amzn2023.0.2.x86_64
    python3-tkinter-3.9.22-1.amzn2023.0.2.x86_64
    python3-debug-3.9.22-1.amzn2023.0.2.x86_64
    python3-idle-3.9.22-1.amzn2023.0.2.x86_64
    python3.9-debuginfo-3.9.22-1.amzn2023.0.2.x86_64
    python3-libs-3.9.22-1.amzn2023.0.2.x86_64
    python3-test-3.9.22-1.amzn2023.0.2.x86_64