
Cloud Vulnerability DB
An open project to list all known cloud vulnerabilities and Cloud Service Provider security issues
A medium severity security vulnerability (CVE-2025-4516) was discovered in CPython affecting the bytes.decode() function when using the "unicodeescape" encoding with error handlers. The vulnerability was disclosed on May 15, 2025, and affects multiple versions of Python. The issue specifically occurs when using `bytes.decode("unicodeescape", error="ignore|replace")` (Python Security).
The vulnerability is a use-after-free issue that occurs when the error handler is used with unicode_escape decoding. When the error handler is invoked, a new bytes object is created to set as the object attribute of UnicodeDecodeError, and that bytes object then replaces the original data. This causes a pointer to the decoded data to become invalid after destroying the temporary bytes object (CPython Commit). The vulnerability has been assigned a CVSS v4.0 base score of 5.9 (MEDIUM) with the vector string 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 (NVD).
When exploited, this vulnerability would likely result in a program crash due to the use-after-free condition. The impact is limited to applications that specifically use the unicode_escape encoding with error handlers (ignore or replace). Applications not using these specific encoding options are not affected (Wiz).
A workaround is available for affected systems: users can stop using the error= handler and instead wrap the bytes.decode() call in a try-except block to catch the DecodeError. A permanent fix has been implemented in the CPython codebase through pull request #129648 (Python Security).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
An open project to list all known cloud vulnerabilities and Cloud Service Provider security issues
A comprehensive threat intelligence database of cloud security incidents, actors, tools and techniques
A step-by-step framework for modeling and improving SaaS and PaaS tenant isolation
Get a personalized demo
“Best User Experience I have ever seen, provides full visibility to cloud workloads.”
“Wiz provides a single pane of glass to see what is going on in our cloud environments.”
“We know that if Wiz identifies something as critical, it actually is.”