BSD Ports

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

· CVE-2025-4516 · VuXML entry

[email protected] reports: 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.

Affected versions

By system

0 still vulnerable, 6 fixed. Where VuXML applies (FreeBSD, DragonFly, FreeBSD's derivatives) a port is vulnerable while its version is in a range; pkgsrc says itself whether it lists a CVE of this advisory; OpenBSD and MidnightBSD keep no list this site reads, so their row is only an estimate: FreeBSD's ranges applied to upstream's version.

SystemPortVersionStateFixed
DragonFlylang/python393.9.22_1 fixed
MidnightBSDlang/linux-rl9-python33.9.23_1 out of range, by version
DragonFlylang/python3103.10.17_1 fixed
NetBSDlang/python3103.10.21 not listed
GhostBSDlang/python3103.10.21 fixed
DragonFlylang/python3113.11.12_1 fixed
NetBSDlang/python3113.11.16 not listed
MidnightBSDlang/python311 in range, by version
FreeBSDlang/python3113.11.17 fixed
FreeBSDlang/python3123.12.15 fixed
NetBSDlang/python3123.12.14 not listed
MidnightBSDlang/python312 in range, by version