CVE-2025-15366
published medium CVSS 4.0 · 5.9IMAP command injection in user-controlled commands
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Python Software Foundation | — | CPython0 to < 3.13.15 · 3.14.0 to < 3.14.7 · 3.15.0a1 to < 3.15.0a6 · Other versions: unaffected | Affected | Not stated | PSF |
| Amazon Linux | AL2 | Release evaluation | No Fix Planned | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | No Fix Planned | Not stated | Amazon Linux assessment |
| AlmaLinux | 10 | python-unversioned-command | Advisory build | 3.12.12-3.el10_1.1 | ALSA-2026:4713 |
| Alpine Linux | edge | python3 | Fixed | 3.14.7-r0 | Package fix record |
| Oracle Linux | 10 | python-unversioned-commandaarch64 | Advisory build | 0:3.12.12-3.0.1.el10_1.1 | ELSA-2026-4713 |
| AlmaLinux | 8 | platform-python | Advisory build | 3.6.8-73.el8_10.alma.1 | ALSA-2026:2128 |
| AlmaLinux | 8 | platform-python-debug | Advisory build | 3.6.8-73.el8_10.alma.1 | ALSA-2026:2128 |
Show 95 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| AlmaLinux | 8 | platform-python-devel | Advisory build | 3.6.8-73.el8_10.alma.1 | ALSA-2026:2128 |
| AlmaLinux | 8 | python3-idle | Advisory build | 3.6.8-73.el8_10.alma.1 | ALSA-2026:2128 |
| AlmaLinux | 8 | python3-libs | Advisory build | 3.6.8-73.el8_10.alma.1 | ALSA-2026:2128 |
| AlmaLinux | 8 | python3-test | Advisory build | 3.6.8-73.el8_10.alma.1 | ALSA-2026:2128 |
| AlmaLinux | 8 | python3-tkinter | Advisory build | 3.6.8-73.el8_10.alma.1 | ALSA-2026:2128 |
| AlmaLinux | 8 | python3.11 | Advisory build | 3.11.13-5.el8_10 | ALSA-2026:4473 |
| AlmaLinux | 8 | python3.11-debug | Advisory build | 3.11.13-5.el8_10 | ALSA-2026:4473 |
| AlmaLinux | 8 | python3.11-devel | Advisory build | 3.11.13-5.el8_10 | ALSA-2026:4473 |
| AlmaLinux | 8 | python3.11-idle | Advisory build | 3.11.13-5.el8_10 | ALSA-2026:4473 |
| AlmaLinux | 8 | python3.11-libs | Advisory build | 3.11.13-5.el8_10 | ALSA-2026:4473 |
| AlmaLinux | 8 | python3.11-rpm-macros | Advisory build | 3.11.13-5.el8_10 | ALSA-2026:4473 |
| AlmaLinux | 8 | python3.11-test | Advisory build | 3.11.13-5.el8_10 | ALSA-2026:4473 |
| AlmaLinux | 8 | python3.11-tkinter | Advisory build | 3.11.13-5.el8_10 | ALSA-2026:4473 |
| AlmaLinux | 8 | python3.12 | Advisory build | 3.12.12-3.el8_10 | ALSA-2026:4463 |
| AlmaLinux | 8 | python3.12-debug | Advisory build | 3.12.12-3.el8_10 | ALSA-2026:4463 |
| AlmaLinux | 8 | python3.12-devel | Advisory build | 3.12.12-3.el8_10 | ALSA-2026:4463 |
| AlmaLinux | 8 | python3.12-idle | Advisory build | 3.12.12-3.el8_10 | ALSA-2026:4463 |
| AlmaLinux | 8 | python3.12-libs | Advisory build | 3.12.12-3.el8_10 | ALSA-2026:4463 |
| AlmaLinux | 8 | python3.12-rpm-macros | Advisory build | 3.12.12-3.el8_10 | ALSA-2026:4463 |
| AlmaLinux | 8 | python3.12-test | Advisory build | 3.12.12-3.el8_10 | ALSA-2026:4463 |
| AlmaLinux | 8 | python3.12-tkinter | Advisory build | 3.12.12-3.el8_10 | ALSA-2026:4463 |
| AlmaLinux | 9 | python-unversioned-command | Advisory build | 3.9.25-3.el9_7.1 | ALSA-2026:4168 |
| AlmaLinux | 9 | python3 | Advisory build | 3.9.25-3.el9_7.1 | ALSA-2026:4168 |
| AlmaLinux | 9 | python3-debug | Advisory build | 3.9.25-3.el9_7.1 | ALSA-2026:4168 |
| AlmaLinux | 9 | python3-devel | Advisory build | 3.9.25-3.el9_7.1 | ALSA-2026:4168 |
| AlmaLinux | 9 | python3-idle | Advisory build | 3.9.25-3.el9_7.1 | ALSA-2026:4168 |
| AlmaLinux | 9 | python3-libs | Advisory build | 3.9.25-3.el9_7.1 | ALSA-2026:4168 |
| AlmaLinux | 9 | python3-test | Advisory build | 3.9.25-3.el9_7.1 | ALSA-2026:4168 |
| AlmaLinux | 9 | python3-tkinter | Advisory build | 3.9.25-3.el9_7.1 | ALSA-2026:4168 |
| AlmaLinux | 9 | python3.11 | Advisory build | 3.11.13-5.1.el9_7 | ALSA-2026:4216 |
| AlmaLinux | 9 | python3.11-debug | Advisory build | 3.11.13-5.1.el9_7 | ALSA-2026:4216 |
| AlmaLinux | 9 | python3.11-devel | Advisory build | 3.11.13-5.1.el9_7 | ALSA-2026:4216 |
| AlmaLinux | 9 | python3.11-idle | Advisory build | 3.11.13-5.1.el9_7 | ALSA-2026:4216 |
| AlmaLinux | 9 | python3.11-libs | Advisory build | 3.11.13-5.1.el9_7 | ALSA-2026:4216 |
| AlmaLinux | 9 | python3.11-test | Advisory build | 3.11.13-5.1.el9_7 | ALSA-2026:4216 |
| AlmaLinux | 9 | python3.11-tkinter | Advisory build | 3.11.13-5.1.el9_7 | ALSA-2026:4216 |
| AlmaLinux | 9 | python3.12 | Advisory build | 3.12.12-4.el9_7.1 | ALSA-2026:4165 |
| AlmaLinux | 9 | python3.12-debug | Advisory build | 3.12.12-4.el9_7.1 | ALSA-2026:4165 |
| AlmaLinux | 9 | python3.12-devel | Advisory build | 3.12.12-4.el9_7.1 | ALSA-2026:4165 |
| AlmaLinux | 9 | python3.12-idle | Advisory build | 3.12.12-4.el9_7.1 | ALSA-2026:4165 |
| AlmaLinux | 9 | python3.12-libs | Advisory build | 3.12.12-4.el9_7.1 | ALSA-2026:4165 |
| AlmaLinux | 9 | python3.12-test | Advisory build | 3.12.12-4.el9_7.1 | ALSA-2026:4165 |
| AlmaLinux | 9 | python3.12-tkinter | Advisory build | 3.12.12-4.el9_7.1 | ALSA-2026:4165 |
| Alpine Linux | v3.24 | python3 | Fixed | 3.14.7-r0 | Package fix record |
| Oracle Linux | 10 | python-unversioned-commandx86_64 | Advisory build | 0:3.12.12-3.0.1.el10_1.1 | ELSA-2026-4713 |
| Oracle Linux | 10 | python3aarch64 | Advisory build | 0:3.12.12-3.0.1.el10_1.1 | ELSA-2026-4713 |
| Oracle Linux | 10 | python3x86_64 | Advisory build | 0:3.12.12-3.0.1.el10_1.1 | ELSA-2026-4713 |
| Oracle Linux | 10 | python3-debugaarch64 | Advisory build | 0:3.12.12-3.0.1.el10_1.1 | ELSA-2026-4713 |
| Oracle Linux | 10 | python3-debugx86_64 | Advisory build | 0:3.12.12-3.0.1.el10_1.1 | ELSA-2026-4713 |
| Oracle Linux | 10 | python3-develaarch64 | Advisory build | 0:3.12.12-3.0.1.el10_1.1 | ELSA-2026-4713 |
| Oracle Linux | 10 | python3-develx86_64 | Advisory build | 0:3.12.12-3.0.1.el10_1.1 | ELSA-2026-4713 |
| Oracle Linux | 10 | python3-idleaarch64 | Advisory build | 0:3.12.12-3.0.1.el10_1.1 | ELSA-2026-4713 |
| Oracle Linux | 10 | python3-idlex86_64 | Advisory build | 0:3.12.12-3.0.1.el10_1.1 | ELSA-2026-4713 |
| Oracle Linux | 10 | python3-libsaarch64 | Advisory build | 0:3.12.12-3.0.1.el10_1.1 | ELSA-2026-4713 |
| Oracle Linux | 10 | python3-libsx86_64 | Advisory build | 0:3.12.12-3.0.1.el10_1.1 | ELSA-2026-4713 |
| Oracle Linux | 10 | python3-testaarch64 | Advisory build | 0:3.12.12-3.0.1.el10_1.1 | ELSA-2026-4713 |
| Oracle Linux | 10 | python3-testx86_64 | Advisory build | 0:3.12.12-3.0.1.el10_1.1 | ELSA-2026-4713 |
| Oracle Linux | 10 | python3-tkinteraarch64 | Advisory build | 0:3.12.12-3.0.1.el10_1.1 | ELSA-2026-4713 |
| Oracle Linux | 10 | python3-tkinterx86_64 | Advisory build | 0:3.12.12-3.0.1.el10_1.1 | ELSA-2026-4713 |
| Oracle Linux | 6 | pythonx86_64 | Advisory build | 0:2.6.6-68.0.5.el6_10 | ELSA-2026-6007 |
| Oracle Linux | 6 | pythonx86_64 | Advisory build | 0:2.6.6-68.0.6.el6_10 | ELSA-2026-10102 |
| Oracle Linux | 6 | python-develx86_64 | Advisory build | 0:2.6.6-68.0.5.el6_10 | ELSA-2026-6007 |
| Oracle Linux | 6 | python-develx86_64 | Advisory build | 0:2.6.6-68.0.6.el6_10 | ELSA-2026-10102 |
| Oracle Linux | 6 | python-libsx86_64 | Advisory build | 0:2.6.6-68.0.5.el6_10 | ELSA-2026-6007 |
| Oracle Linux | 6 | python-libsx86_64 | Advisory build | 0:2.6.6-68.0.6.el6_10 | ELSA-2026-10102 |
| Oracle Linux | 6 | python-testx86_64 | Advisory build | 0:2.6.6-68.0.5.el6_10 | ELSA-2026-6007 |
| Oracle Linux | 6 | python-testx86_64 | Advisory build | 0:2.6.6-68.0.6.el6_10 | ELSA-2026-10102 |
| Oracle Linux | 6 | python-toolsx86_64 | Advisory build | 0:2.6.6-68.0.5.el6_10 | ELSA-2026-6007 |
| Oracle Linux | 6 | python-toolsx86_64 | Advisory build | 0:2.6.6-68.0.6.el6_10 | ELSA-2026-10102 |
| Oracle Linux | 6 | tkinterx86_64 | Advisory build | 0:2.6.6-68.0.5.el6_10 | ELSA-2026-6007 |
| Oracle Linux | 6 | tkinterx86_64 | Advisory build | 0:2.6.6-68.0.6.el6_10 | ELSA-2026-10102 |
| Oracle Linux | 7 | pythonx86_64 | Advisory build | 0:2.7.5-94.0.5.el7_9 | ELSA-2026-5393 |
| Oracle Linux | 7 | python-debugx86_64 | Advisory build | 0:2.7.5-94.0.5.el7_9 | ELSA-2026-5393 |
| Oracle Linux | 7 | python-develx86_64 | Advisory build | 0:2.7.5-94.0.5.el7_9 | ELSA-2026-5393 |
| Oracle Linux | 7 | python-libsx86_64 | Advisory build | 0:2.7.5-94.0.5.el7_9 | ELSA-2026-5393 |
| Oracle Linux | 7 | python-testx86_64 | Advisory build | 0:2.7.5-94.0.5.el7_9 | ELSA-2026-5393 |
| Oracle Linux | 7 | python-toolsx86_64 | Advisory build | 0:2.7.5-94.0.5.el7_9 | ELSA-2026-5393 |
| Oracle Linux | 7 | python3x86_64 | Advisory build | 0:3.6.8-21.0.9.el7_9 | ELSA-2026-6464 |
| Oracle Linux | 7 | python3-debugx86_64 | Advisory build | 0:3.6.8-21.0.9.el7_9 | ELSA-2026-6464 |
| Oracle Linux | 7 | python3-develx86_64 | Advisory build | 0:3.6.8-21.0.9.el7_9 | ELSA-2026-6464 |
| Oracle Linux | 7 | python3-idlex86_64 | Advisory build | 0:3.6.8-21.0.9.el7_9 | ELSA-2026-6464 |
| Oracle Linux | 7 | python3-libsx86_64 | Advisory build | 0:3.6.8-21.0.9.el7_9 | ELSA-2026-6464 |
| Oracle Linux | 7 | python3-testx86_64 | Advisory build | 0:3.6.8-21.0.9.el7_9 | ELSA-2026-6464 |
| Oracle Linux | 7 | python3-tkinterx86_64 | Advisory build | 0:3.6.8-21.0.9.el7_9 | ELSA-2026-6464 |
| Oracle Linux | 7 | tkinterx86_64 | Advisory build | 0:2.7.5-94.0.5.el7_9 | ELSA-2026-5393 |
| Oracle Linux | 8 | platform-pythonaarch64 | Advisory build | 0:3.6.8-73.0.1.el8_10 | ELSA-2026-2128 |
| Oracle Linux | 8 | platform-pythonx86_64 | Advisory build | 0:3.6.8-73.0.1.el8_10 | ELSA-2026-2128 |
| Oracle Linux | 8 | platform-python-debugaarch64 | Advisory build | 0:3.6.8-73.0.1.el8_10 | ELSA-2026-2128 |
| Oracle Linux | 8 | platform-python-debugx86_64 | Advisory build | 0:3.6.8-73.0.1.el8_10 | ELSA-2026-2128 |
| Oracle Linux | 8 | platform-python-develaarch64 | Advisory build | 0:3.6.8-73.0.1.el8_10 | ELSA-2026-2128 |
| Oracle Linux | 8 | platform-python-develx86_64 | Advisory build | 0:3.6.8-73.0.1.el8_10 | ELSA-2026-2128 |
| Oracle Linux | 8 | python3-idleaarch64 | Advisory build | 0:3.6.8-73.0.1.el8_10 | ELSA-2026-2128 |
| Oracle Linux | 8 | python3-idlex86_64 | Advisory build | 0:3.6.8-73.0.1.el8_10 | ELSA-2026-2128 |
| Oracle Linux | 8 | python3-libsaarch64 | Advisory build | 0:3.6.8-73.0.1.el8_10 | ELSA-2026-2128 |
| Oracle Linux | 8 | python3-libsx86_64 | Advisory build | 0:3.6.8-73.0.1.el8_10 | ELSA-2026-2128 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
The imaplib module, when passed a user-controlled command, can have additional commands injected using newlines. Mitigation rejects commands containing control characters.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 5.9 / 10
- Severity
- medium
- Provider
- PSF · cna
- Vector string
- 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
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Python Software Foundation | CPython | 0 to < 3.13.15 (affected · python)3.14.0 to < 3.14.7 (affected · python)3.15.0a1 to < 3.15.0a6 (affected · python)Default: unaffected | PSF · cna |
Weaknesses
1- CWE-77 CWE-77 Improper Neutralization of Special Elements used in a Command ('Command Injection')
References
8- https://github.com/python/cpython/commit/298182272a740ce2016aee2f54acbd0bba1944c1
- https://github.com/python/cpython/commit/6262704b134db2a4ba12e85ecfbd968534f28b45
- https://github.com/python/cpython/commit/71926d943c05bde79bd2a866933103541d91b6a2
- https://github.com/python/cpython/commit/d0921efb665aff26b378f495e5ff84f7e3fe649d
- https://github.com/python/cpython/commit/f2cd7ef89aa8a0dcbc7283bbd39548b76f2a736a
- https://github.com/python/cpython/issues/143921
- https://github.com/python/cpython/pull/143922
- https://mail.python.org/archives/list/[email protected]/thread/DD7C7JZJYTBXMDOWKCEIEBJLBRU64OMR/
Provider assertions
2PSF · cna
IMAP command injection in user-controlled commands
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 4ce41366507096b80ccc48ad47a3461bd40921cfe010d66c0af372070c1353c1
- Ingested
- 23 Sep 2026, 08:38:18 UTC
- Source record
- Official CVE record