{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-4516","id":"CVE-2025-4516","title":"Use-after-free in \"unicode_escape\" decoder with error handler","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.","descriptionLong":"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.","published":"2025-05-15T13:29:20.126Z","updated":"2026-11-11T10:47:20.863972845Z","reserved":"2025-05-09T14:59:53.878Z","status":"Deferred","rejected":false,"assigner":"PSF","metric":{"version":"4.0","score":5.9,"vector":"CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","rating":"medium","source":"PSF"},"metrics":[{"version":"4.0","score":5.9,"vector":"CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","rating":"medium","source":"PSF"},{"version":"4.0","score":5.9,"vector":"CVSS: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:X","rating":"medium","source":"python.org"},{"version":"4.0","score":null,"vector":"CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","rating":"unrated","source":"OSV"}],"rating":"medium","products":["Python Software Foundation CPython"],"affectedProducts":[{"vendor":"Python Software Foundation","product":"CPython","defaultStatus":"unaffected","versions":[{"version":"0","lessThan":"3.9.23","status":"affected","versionType":"python"},{"version":"3.10.0","lessThan":"3.10.18","status":"affected","versionType":"python"},{"version":"3.11.0","lessThan":"3.11.13","status":"affected","versionType":"python"},{"version":"3.12.0","lessThan":"3.12.11","status":"affected","versionType":"python"},{"version":"3.13.0","lessThan":"3.13.4","status":"affected","versionType":"python"},{"version":"3.14.0a1","lessThan":"3.14.0b2","status":"affected","versionType":"python"}],"platforms":[]}],"packages":[],"cwes":["CWE-416"],"aliases":["BIT-libpython-2025-4516","BIT-python-2025-4516","BIT-python-min-2025-4516","PSF-2025-4"],"references":[{"url":"https://github.com/python/cpython/issues/133767","tags":["issue-tracking","report"]},{"url":"https://github.com/python/cpython/pull/129648","tags":["patch","fix","web"]},{"url":"https://mail.python.org/archives/list/security-announce@python.org/thread/L75IPBBTSCYEF56I2M4KIW353BB3AY74/","tags":["vendor-advisory","advisory"]},{"url":"https://github.com/python/cpython/commit/69b4387f78f413e8c47572a85b3478c47eba8142","tags":["patch","fix"]},{"url":"https://github.com/python/cpython/commit/9f69a58623bd01349a18ba0c7a9cb1dad6a51e8e","tags":["patch","fix"]},{"url":"https://github.com/python/cpython/commit/4398b788ffc1f954a2c552da285477d42a571292","tags":["patch","fix"]},{"url":"https://github.com/python/cpython/commit/6279eb8c076d89d3739a6edb393e43c7929b429d","tags":["patch","fix"]},{"url":"https://github.com/python/cpython/commit/73b3040f592436385007918887b7e2132aa8431f","tags":["patch","fix"]},{"url":"https://github.com/python/cpython/commit/8d35fd1b34935221aff23a1ab69a429dd156be77","tags":["patch","fix"]},{"url":"https://github.com/python/cpython/commit/ab9893c40609935e0d40a6d2a7307ea51aec598b","tags":["patch","fix"]},{"url":"http://www.openwall.com/lists/oss-security/2025/05/16/4","tags":["web"]},{"url":"http://www.openwall.com/lists/oss-security/2025/05/19/1","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/4xxx/CVE-2025-4516.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-4516","tags":["advisory"]},{"url":"https://github.com/python/cpython","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00225,"epssPercentile":0.13332,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-4516","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-4516","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-4516","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-4516","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":["python"],"critical":[],"attention":null}