CVE-2025-4516

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

En bref

Sévérité
MEDIUM 5.9
EPSS
EPSS 0.22 % · centile 13 (2026-10-27)
État
PUBLISHED
Publiée
Mise à jour
Attribuée par
PSF
Statut NVD
Deferred

Description

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.

Scores

VersionScoreVecteurÉvalué par
CVSS 4.0MEDIUM 5.9CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:NPSF
CVSS 4.0MEDIUM 5.9CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:XNVD · cna@python.org (Secondary)

Faiblesses (CWE)

Références européennes

Avis du CERT-FR

Produits affectés

ProduitVersions
Python Software Foundation · CPythonaffected 0 < 3.9.23 ; affected 3.10.0 < 3.10.18 ; affected 3.11.0 < 3.11.13 ; affected 3.12.0 < 3.12.11 ; affected 3.13.0 < 3.13.4 ; affected 3.14.0a1 < 3.14.0b2

Références

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD