Read the docs
TI-2025-04032 Aliases CVE-2025-4516GHSA-j8r3-cghj-9jhg

Use-after-free in "unicode_escape" decoder with error handler

Priority LOW 26CWE-416Published · Updated

Key facts

Attack vector
Local
Privileges required
None
User interaction
None
Attack complexity
High
Attack requirements
Present
Impact type
Denial of service
Confidentiality · integrity · availability
None · None · High
Fix status
Partial Red Hat: 2 fixed, 7 without a fix

Attack profile from CVSS 4.0 · CNA. Fix status from CNA and Red Hat. Impact type from CWE-416 and the CVSS impact.

Summary

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00225 13th percentileScored 2026-11-07
Fix Partial CPython (Python Software Foundation): 3.9.23, 3.10.18, 3.11.13 +3Red Hat: 1 advisoryRed Hat: 2 fixed, 7 without a fix

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
Python Software FoundationCPythonbefore 3.9.23; 3.10.0 to before 3.10.18; 3.11.0 to before 3.11.13; 3.12.0 to before 3.12.11; 3.13.0 to before 3.13.4; 3.14.0a1 to before 3.14.0b23.9.23, 3.10.18, 3.11.13, 3.12.11, 3.13.4, 3.14.0b2Patch availableCNA
  • CPython VendorPython Software Foundation Affected before 3.9.23; 3.10.0 to before 3.10.18; 3.11.0 to before 3.11.13; 3.12.0 to before 3.12.11; 3.13.0 to before 3.13.4; 3.14.0a1 to before 3.14.0b2 Fixed in 3.9.23, 3.10.18, 3.11.13, 3.12.11, 3.13.4, 3.14.0b2 Patch available CNA

CPE names Threatist (inferred) · 1

Inferred from how NVD named this product before; not given by a source.

CPEVersionsRoleVendor
cpe:2.3:a:python:python:*:*:*:*:*:*:*:*——python-pillow
  • cpe:2.3:a:python:python:*:*:*:*:*:*:*:* Versions — — ·python-pillow

Remediation

  • Fix · CNA CPython (Python Software Foundation) Fixed in 3.9.23, 3.10.18, 3.11.13, 3.12.11, 3.13.4, 3.14.0b2

Red Hat 1 advisory

  • RHSA-2025:23530 Released 2025-12-18 · Red Hat rating Important
    python39:3.9 security update
    • Red Hat Enterprise Linux AppStream (v. 8) PyYAML-5.4.1-1.module+el8.9.0+19644+d68f775d.src::python39:3.9, mod_wsgi-4.7.1-7.module+el8.10.0+23075+0aa18782.1.src::python39:3.9, numpy-1.19.4-3.module+el8.9.0+19644+d68f775d.src::python39:3.9 +47
    • Red Hat Enterprise Linux CRB (v. 8) Cython-0.29.21-5.module+el8.9.0+19644+d68f775d.src::python39-devel:3.9, pybind11-2.7.1-1.module+el8.9.0+19644+d68f775d.src::python39-devel:3.9, pytest-6.0.2-2.module+el8.9.0+19644+d68f775d.src::python39-devel:3.9 +33

Vendor assessments

Red Hat

Red Hat rating: Moderate. Red Hat's page for this CVE →

ProductStatusPlan or fix
Red Hat Enterprise Linux 10AffectedNo fix yet: Fix deferred
Red Hat Enterprise Linux 6AffectedNo fix planned: Out of support scope
Red Hat Enterprise Linux 7AffectedNo fix yet: Fix deferred
Red Hat Enterprise Linux 8AffectedNo fix yet: Fix deferred
Red Hat Enterprise Linux 9AffectedNo fix yet: Fix deferred
Red Hat Enterprise Linux AI (RHEL AI)AffectedNo fix yet: Fix deferred
Red Hat OpenShift AI (RHOAI)Affected—
Red Hat Enterprise Linux AppStream (v. 8)Fixed RHSA-2025:23530
Red Hat Enterprise Linux CRB (v. 8)Fixed RHSA-2025:23530

Timeline

  1. 2026-10-02 Threatist record created from CVE-2025-4516
  2. 2026-10-03 Alias added: GHSA-j8r3-cghj-9jhg
  3. 2026-11-06 Affected versions changed · Red Hat

References

  • TI-2024-07037 Quadratic complexity parsing cookies with backslashes CVSS 3.1HIGH 7.5
  • TI-2024-11791 Bypass extraction filter to modify file metadata outside extraction directory CVSS 3.1MEDIUM 5.3
  • TI-2024-00411 Quoted zip-bomb protection for zipfile CVSS 3.1MEDIUM 6.2
  • TI-2026-13296 `HTTPPasswordMgr` can send saved HTTPS credentials via HTTP because of incorrect scheme matching CVSS 4.0MEDIUM 6.0
  • TI-2024-06422 Email header injection due to unquoted newlines CVSS 3.1MEDIUM 5.5
  • TI-2026-04606 Possible to hijack modules in current working directory CVSS 4.0MEDIUM 5.6
See all 83 →

Sources