VDB
CVE-2025-15366
CVE-2025-15366
PUBLISHED
CVSS 5.9 MEDIUM
IMAP command injection in user-controlled commands
Reported by psf · Published January 20, 2026
The imaplib module, when passed a user-controlled command, can have additional commands injected using newlines. Mitigation rejects commands containing control characters.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| python3.12-debuginfo | errata.rockylinux.org | 0:3.12.12-4.el9_7.1.x86_64, 0:3.12.12-4.el9_7.1.i686, 0:3.12.12-3.el10_1.1.ppc64le |
| python3-idle | errata.rockylinux.org | 3.6.8-73.el8, 0:3.12.12-3.el10_1.1.x86_64, 0:3.12.12-3.el10_1.1.s390x, 0:3.12.12-3.el10_1.1.ppc64le, 0:3.12.12-3.el10_1.1.aarch64, 0:3.9.25-3.el9_7.1.s390x, 0:3.9.25-3.el9_7.1.aarch64 |
| python3.11 | errata.rockylinux.org | 0:3.11.13-5.el8_10.x86_64, 0:3.11.13-5.el8_10.src, 0:3.11.13-5.el8_10.i686, 0:3.11.13-5.1.el9_7.x86_64, 0:3.11.13-5.1.el9_7.src, 0:3.11.13-5.1.el9_7.s390x, 0:3.11.13-5.1.el9_7.i686 |
| python3-tkinter | errata.rockylinux.org | 3.6.8-73.el8, 0:3.12.12-3.el10_1.1.x86_64, 0:3.12.12-3.el10_1.1.s390x, 0:3.12.12-3.el10_1.1.aarch64, 0:3.9.25-3.el9_7.1.s390x, 0:3.9.25-3.el9_7.1.ppc64le |
| python3.9-debuginfo | errata.rockylinux.org | 0:3.9.25-3.el9_7.1.x86_64, 0:3.9.25-3.el9_7.1.s390x, 0:3.9.25-3.el9_7.1.aarch64 |
| platform-python-debug | errata.rockylinux.org | 3.6.8-73.el8 |
| python3-devel | errata.rockylinux.org | 0:3.12.12-3.el10_1.1.x86_64, 0:3.12.12-3.el10_1.1.s390x, 0:3.12.12-3.el10_1.1.ppc64le, 0:3.9.25-3.el9_7.1.x86_64, 0:3.9.25-3.el9_7.1.s390x, 0:3.9.25-3.el9_7.1.i686, 0:3.9.25-3.el9_7.1.aarch64 |
| python3.12 | errata.rockylinux.org | 0:3.12.12-4.el9_7.1.src, 0:3.12.12-4.el9_7.1.s390x, 0:3.12.12-4.el9_7.1.ppc64le, 0:3.12.12-4.el9_7.1.aarch64, 0:3.12.12-3.el10_1.1.src |
| python3.12-debugsource | errata.rockylinux.org | 0:3.12.12-3.el8_10.aarch64, 0:3.12.12-3.el10_1.1.s390x |
| python3 | errata.rockylinux.org | 3.6.8-73.el8, 0:3.9.25-3.el9_7.1.s390x, 0:3.9.25-3.el9_7.1.aarch64 |
| python3.12-idle | errata.rockylinux.org | 0:3.12.12-4.el9_7.1.x86_64, 0:3.12.12-4.el9_7.1.i686, 0:3.12.12-3.el8_10.x86_64, 0:3.12.12-3.el8_10.i686, 0:3.12.12-3.el8_10.aarch64 |
| python3.11-test | errata.rockylinux.org | 0:3.11.13-5.el8_10.x86_64, 0:3.11.13-5.el8_10.i686, 0:3.11.13-5.1.el9_7.x86_64, 0:3.11.13-5.1.el9_7.s390x, 0:3.11.13-5.1.el9_7.i686, 0:3.11.13-5.1.el9_7.aarch64 |
24 more packages have a fixed version. See every fix in Lookup.
Risk scores
CVSS 4.0
5.9
CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Python Software Foundation | CPython | 0, 3.14.0, 3.15.0a1 |
| Python Software Foundation | CPython | |
| wolfi | python-3.12 | 0 |
| wolfi | python-3.13 | 0 |
| Python Software Foundation | CPython | 3.14.0, 3.15.0a1, 0 |
| alpine | python3 | 0 |
| chainguard | python-3.14 | 0 |
| chainguard | python-3.13 | 0 |
| chainguard | python-3.12 | 0 |
| wolfi | python-3.14 | 0 |
Timeline
- Jan 20, 2026 CVE Published
- Jan 21, 2026 EPSS Score (30 in total, the first dated here)
- Mar 20, 2026 Distribution Patch (54 in total, the first dated here)
- Mar 20, 2026 Security Advisory (61 in total, the first dated here)
- Jun 21, 2026 Coalition ESS Score
- Sep 16, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-15366
vulnetix vdb fixes CVE-2025-15366
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-15366/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart