CVE-2025-4516

Source
https://cve.org/CVERecord?id=CVE-2025-4516
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-4516.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-4516
Aliases
Downstream
Related
Published
2025-05-15T13:29:20.126Z
Modified
2026-05-15T04:13:52.263251452Z
Severity
  • 5.9 (Medium) CVSS_V4 - 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 CVSS Calculator
Summary
Use-after-free in "unicode_escape" decoder with error handler
Details

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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/4xxx/CVE-2025-4516.json",
    "cwe_ids": [
        "CWE-416"
    ],
    "cna_assigner": "PSF"
}
References

Affected packages