CVE-2025-4516
Use-after-free in "unicode_escape" decoder with error handler
EPSS 0.17%
描述
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.
如何修補 CVE-2025-4516
要修補 CVE-2025-4516,請將受影響套件升級到下列已修補版本。
- Alpine/python3—升級至 3.11.12-r1 或更新版本
- Bitnami/libpython—升級至 3.9.23 或更新版本
- —升級至 3.9.23 或更新版本
- —升級至 3.9.23 或更新版本
- —升級至 3.11.2-6+deb12u7 或更新版本
- —升級至 3.13.3-4 或更新版本
- —升級至 3.9.2-1+deb11u4 或更新版本
CVE-2025-4516 正在被利用嗎?
低 — EPSS 為 0.2%,目前沒有觀察到大規模利用活動。
受影響套件(7)
- from 0, < 3.11.12-r1
- from 0, < 3.9.23, >= 3.10.0, < 3.10.18, >= 3.11.0, < 3.11.13, >= 3.12.0, < 3.12.11, >= 3.13.0, < 3.13.4
- from 0, < 3.9.23, >= 3.10.0, < 3.10.18, >= 3.11.0, < 3.11.13, >= 3.12.0, < 3.12.11, >= 3.13.0, < 3.13.4
- from 0, < 3.9.23, >= 3.10.0, < 3.10.18, >= 3.11.0, < 3.11.13, >= 3.12.0, < 3.12.11, >= 3.13.0, < 3.13.4
- from 0, < 3.11.2-6+deb12u7
- from 0, < 3.13.3-4
- from 0, < 3.9.2-1+deb11u4
CVSS 分數
| 來源 | 版本 | 嚴重程度 | 向量 |
|---|---|---|---|
| osv | CVSS 4.0 | — | 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 |