Vulnerability · Published Jan 20, 2026 · Assigned by PSF

CVE-2025-15366IMAP command injection in user-controlled commands

Medium 5.9

In plain English

A medium-severity command injection in CPython from Python Software Foundation. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 38% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)5.9Medium
Exploit odds (30 days)0.4%top 62.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

The imaplib module, when passed a user-controlled command, can have additional commands injected using newlines. Mitigation rejects commands containing control characters.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8platform-python3.6.8-73.el8_10.alma.1ALSA-2026:2128
AlmaLinux:8platform-python-debug3.6.8-73.el8_10.alma.1ALSA-2026:2128
AlmaLinux:8platform-python-devel3.6.8-73.el8_10.alma.1ALSA-2026:2128
AlmaLinux:10python-unversioned-command3.12.12-3.el10_1.1ALSA-2026:4713
AlmaLinux:9python-unversioned-command3.9.25-3.el9_7.1ALSA-2026:4168
AlmaLinux:9python33.9.25-3.el9_7.1ALSA-2026:4168
AlmaLinux:9python3-debug3.9.25-3.el9_7.1ALSA-2026:4168
AlmaLinux:9python3-devel3.9.25-3.el9_7.1ALSA-2026:4168
AlmaLinux:8python3-idle3.6.8-73.el8_10.alma.1ALSA-2026:2128
AlmaLinux:9python3-idle3.9.25-3.el9_7.1ALSA-2026:4168
AlmaLinux:8python3-libs3.6.8-73.el8_10.alma.1ALSA-2026:2128
AlmaLinux:9python3-libs3.9.25-3.el9_7.1ALSA-2026:4168
AlmaLinux:8python3-test3.6.8-73.el8_10.alma.1ALSA-2026:2128
AlmaLinux:9python3-test3.9.25-3.el9_7.1ALSA-2026:4168
AlmaLinux:8python3-tkinter3.6.8-73.el8_10.alma.1ALSA-2026:2128
AlmaLinux:9python3-tkinter3.9.25-3.el9_7.1ALSA-2026:4168
AlmaLinux:8python3.113.11.13-5.el8_10ALSA-2026:4473
AlmaLinux:9python3.113.11.13-5.1.el9_7ALSA-2026:4216
AlmaLinux:8python3.11-debug3.11.13-5.el8_10ALSA-2026:4473
AlmaLinux:9python3.11-debug3.11.13-5.1.el9_7ALSA-2026:4216
AlmaLinux:8python3.11-devel3.11.13-5.el8_10ALSA-2026:4473
AlmaLinux:9python3.11-devel3.11.13-5.1.el9_7ALSA-2026:4216
AlmaLinux:8python3.11-idle3.11.13-5.el8_10ALSA-2026:4473
AlmaLinux:9python3.11-idle3.11.13-5.1.el9_7ALSA-2026:4216
AlmaLinux:8python3.11-libs3.11.13-5.el8_10ALSA-2026:4473
AlmaLinux:9python3.11-libs3.11.13-5.1.el9_7ALSA-2026:4216
AlmaLinux:8python3.11-rpm-macros3.11.13-5.el8_10ALSA-2026:4473
AlmaLinux:8python3.11-test3.11.13-5.el8_10ALSA-2026:4473
AlmaLinux:9python3.11-test3.11.13-5.1.el9_7ALSA-2026:4216
AlmaLinux:8python3.11-tkinter3.11.13-5.el8_10ALSA-2026:4473
AlmaLinux:9python3.11-tkinter3.11.13-5.1.el9_7ALSA-2026:4216
AlmaLinux:8python3.123.12.12-3.el8_10ALSA-2026:4463
AlmaLinux:9python3.123.12.12-4.el9_7.1ALSA-2026:4165
AlmaLinux:8python3.12-debug3.12.12-3.el8_10ALSA-2026:4463
AlmaLinux:9python3.12-debug3.12.12-4.el9_7.1ALSA-2026:4165
AlmaLinux:8python3.12-devel3.12.12-3.el8_10ALSA-2026:4463
AlmaLinux:9python3.12-devel3.12.12-4.el9_7.1ALSA-2026:4165
AlmaLinux:8python3.12-idle3.12.12-3.el8_10ALSA-2026:4463
AlmaLinux:9python3.12-idle3.12.12-4.el9_7.1ALSA-2026:4165
AlmaLinux:8python3.12-libs3.12.12-3.el8_10ALSA-2026:4463
AlmaLinux:9python3.12-libs3.12.12-4.el9_7.1ALSA-2026:4165
AlmaLinux:8python3.12-rpm-macros3.12.12-3.el8_10ALSA-2026:4463
AlmaLinux:8python3.12-test3.12.12-3.el8_10ALSA-2026:4463
AlmaLinux:9python3.12-test3.12.12-4.el9_7.1ALSA-2026:4165
AlmaLinux:8python3.12-tkinter3.12.12-3.el8_10ALSA-2026:4463
AlmaLinux:9python3.12-tkinter3.12.12-4.el9_7.1ALSA-2026:4165
Alpine:v3.24python33.14.7-r0ALPINE-CVE-2025-15366
Debian:12jythonno fix listedDEBIAN-CVE-2025-15366
Debian:13jythonno fix listedDEBIAN-CVE-2025-15366
Debian:14jythonno fix listedDEBIAN-CVE-2025-15366
Debian:12pypy3no fix listedDEBIAN-CVE-2025-15366
Debian:13pypy3no fix listedDEBIAN-CVE-2025-15366
Debian:14pypy3no fix listedDEBIAN-CVE-2025-15366
Debian:12python3.11no fix listedDEBIAN-CVE-2025-15366
Debian:13python3.13no fix listedDEBIAN-CVE-2025-15366
Debian:14python3.143.14.7-1DEBIAN-CVE-2025-15366
Rocky Linux:8python30:3.6.8-73.el8_10.rocky.0RLSA-2026:2128
Rocky Linux:8python3.110:3.11.13-5.el8_10RLSA-2026:4473
Rocky Linux:9python3.110:3.11.13-5.1.el9_7RLSA-2026:4216
Rocky Linux:10python3.120:3.12.12-3.el10_1.1RLSA-2026:4713
Rocky Linux:8python3.120:3.12.12-3.el8_10RLSA-2026:4463
Rocky Linux:9python3.120:3.12.12-4.el9_7.1RLSA-2026:4165
Rocky Linux:9python3.90:3.9.25-3.el9_7.1RLSA-2026:4168
Ubuntu:22.04:LTSpython2.7no fix listedUBUNTU-CVE-2025-15366
Ubuntu:22.04:LTSpython3.10no fix listedUBUNTU-CVE-2025-15366
Ubuntu:22.04:LTSpython3.11no fix listedUBUNTU-CVE-2025-15366
Ubuntu:24.04:LTSpython3.12no fix listedUBUNTU-CVE-2025-15366
Ubuntu:25.10python3.13no fix listedUBUNTU-CVE-2025-15366
Ubuntu:25.10python3.14no fix listedUBUNTU-CVE-2025-15366

Affected products (as reported)

VendorProductVersions
Python Software Foundation CPython 0 – before 3.13.153.14.0 – before 3.14.73.15.0a1 – before 3.15.0a6

Weakness: CWE-77 · Vector: 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

References