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
- python310 >= 0
- python311 >= 0
- python312 >= 0
- python313 < 3.13.15
- python313t < 3.13.15
- python314 < 3.14.7
- python314t < 3.14.7
- python315 < 3.15.0.b4
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.
| System | Port | Version | State | Fixed |
|---|---|---|---|---|
| DragonFly | lang/python310 | 3.10.17_1 | vulnerable since 2026-04-01 | |
| NetBSD | lang/python310 | 3.10.21 | listed since 2026-04-01 | |
| GhostBSD | lang/python310 | 3.10.21 | vulnerable since 2026-04-01 | |
| DragonFly | lang/python311 | 3.11.12_1 | vulnerable since 2026-04-01 | |
| NetBSD | lang/python311 | 3.11.16 | listed since 2026-04-01 | |
| MidnightBSD | lang/python311 | in range, by version | ||
| FreeBSD | lang/python311 | 3.11.17 | vulnerable since 2026-04-01 | |
| FreeBSD | lang/python312 | 3.12.15 | vulnerable since 2026-04-01 | |
| NetBSD | lang/python312 | 3.12.14 | listed since 2026-04-01 | |
| MidnightBSD | lang/python312 | in range, by version | ||
| FreeBSD | lang/python313 | 3.13.16 | fixed | |
| NetBSD | lang/python313 | 3.13.15 | not listed | |
| MidnightBSD | lang/python313 | in range, by version | ||
| FreeBSD | lang/python313t | 3.13.16 | fixed | |
| MidnightBSD | lang/python313t | in range, by version | ||
| FreeBSD | lang/python314 | 3.14.8 | fixed | |
| NetBSD | lang/python314 | 3.14.7 | not listed | |
| MidnightBSD | lang/python314 | in range, by version | ||
| FreeBSD | lang/python314t | 3.14.8 | fixed | |
| FreeBSD | lang/python315 | 3.15.0 | vulnerable since 2026-04-01 | |
| MidnightBSD | lang/python315 | in range, by version |