BSD Ports

Python -- imaplib module, when passed a user-controlled command, can have additional commands injected using newlines

· CVE-2025-15366 · VuXML entry

Python Software Foundation Security Developer reports: The imaplib module, when passed a user-controlled command, can have additional commands injected using newlines. Mitigation rejects commands containing specific control characters.

Affected versions

By system

9 still vulnerable, 4 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/python3103.10.17_1 vulnerable since 2026-04-01
NetBSDlang/python3103.10.21 listed since 2026-04-01
GhostBSDlang/python3103.10.21 vulnerable since 2026-04-01
DragonFlylang/python3113.11.12_1 vulnerable since 2026-04-01
NetBSDlang/python3113.11.16 listed since 2026-04-01
MidnightBSDlang/python311 in range, by version
FreeBSDlang/python3113.11.17 vulnerable since 2026-04-01
FreeBSDlang/python3123.12.15 vulnerable since 2026-04-01
NetBSDlang/python3123.12.14 listed since 2026-04-01
MidnightBSDlang/python312 in range, by version
FreeBSDlang/python3133.13.16 fixed
NetBSDlang/python3133.13.15 not listed
MidnightBSDlang/python313 in range, by version
FreeBSDlang/python313t3.13.16 fixed
MidnightBSDlang/python313t in range, by version
FreeBSDlang/python3143.14.8 fixed
NetBSDlang/python3143.14.7 not listed
MidnightBSDlang/python314 in range, by version
FreeBSDlang/python314t3.14.8 fixed
FreeBSDlang/python3153.15.0 vulnerable since 2026-04-01
MidnightBSDlang/python315 in range, by version