Bug 2431368 (CVE-2025-15366)

Summary: CVE-2025-15366 cpython: IMAP command injection in user-controlled commands
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security DevOps Team <prodsec-dev>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: bbrownin, dfreiber, drow, gotiwari, jburrell, jgrulich, jhorak, jkoehler, ljawale, lphiri, luizcosta, mvyas, nweather, rbobbitt, sdawley, teagle, tpopela, vkumar
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
A flaw was found in the imaplib module in the Python standard library. The imaplib module does not reject control characters, such as newlines, in user-controlled input passed to IMAP commands. This issue allows an attacker to inject additional commands to be executed in the IMAP server.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2431610, 2431613, 2431623, 2431611, 2431612, 2431614, 2431615, 2431616, 2431617, 2431618, 2431619, 2431620, 2431621, 2431622, 2431624, 2431625, 2431626, 2431627, 2431628, 2431629, 2431630, 2431631, 2431632    
Bug Blocks:    

Description OSIDB Bzimport 2026-01-20 22:01:58 UTC
The imaplib module, when passed a user-controlled command, can have additional commands injected using newlines. Mitigation rejects commands containing control characters.

Comment 2 errata-xmlrpc 2026-02-05 15:34:28 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2026:2128 https://access.redhat.com/errata/RHSA-2026:2128

Comment 4 errata-xmlrpc 2026-03-10 09:26:59 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2026:4165 https://access.redhat.com/errata/RHSA-2026:4165

Comment 5 errata-xmlrpc 2026-03-10 09:51:29 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2026:4168 https://access.redhat.com/errata/RHSA-2026:4168

Comment 7 errata-xmlrpc 2026-03-10 22:28:26 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2026:4216 https://access.redhat.com/errata/RHSA-2026:4216

Comment 9 errata-xmlrpc 2026-03-12 12:27:59 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2026:4463 https://access.redhat.com/errata/RHSA-2026:4463

Comment 10 errata-xmlrpc 2026-03-12 13:30:23 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2026:4473 https://access.redhat.com/errata/RHSA-2026:4473

Comment 11 errata-xmlrpc 2026-03-17 10:33:32 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 10

Via RHSA-2026:4713 https://access.redhat.com/errata/RHSA-2026:4713

Comment 12 errata-xmlrpc 2026-03-17 11:04:30 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.6 Extended Update Support

Via RHSA-2026:4746 https://access.redhat.com/errata/RHSA-2026:4746

Comment 14 errata-xmlrpc 2026-03-19 17:53:31 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions
  Red Hat Enterprise Linux 8.8 Telecommunications Update Service

Via RHSA-2026:5152 https://access.redhat.com/errata/RHSA-2026:5152

Comment 15 errata-xmlrpc 2026-03-23 01:30:29 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.2 Advanced Update Support

Via RHSA-2026:5216 https://access.redhat.com/errata/RHSA-2026:5216

Comment 16 errata-xmlrpc 2026-03-23 01:38:34 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support
  Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On

Via RHSA-2026:5221 https://access.redhat.com/errata/RHSA-2026:5221

Comment 17 errata-xmlrpc 2026-03-23 02:13:46 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions

Via RHSA-2026:5223 https://access.redhat.com/errata/RHSA-2026:5223

Comment 18 errata-xmlrpc 2026-03-23 02:14:14 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions

Via RHSA-2026:5219 https://access.redhat.com/errata/RHSA-2026:5219

Comment 19 errata-xmlrpc 2026-03-23 02:29:54 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support
  Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions
  Red Hat Enterprise Linux 8.6 Telecommunications Update Service

Via RHSA-2026:5215 https://access.redhat.com/errata/RHSA-2026:5215

Comment 20 errata-xmlrpc 2026-03-23 02:33:13 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.6 Extended Update Support

Via RHSA-2026:5218 https://access.redhat.com/errata/RHSA-2026:5218

Comment 21 errata-xmlrpc 2026-03-23 02:36:51 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.6 Extended Update Support

Via RHSA-2026:5220 https://access.redhat.com/errata/RHSA-2026:5220

Comment 22 errata-xmlrpc 2026-03-23 03:23:40 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions

Via RHSA-2026:5225 https://access.redhat.com/errata/RHSA-2026:5225

Comment 23 errata-xmlrpc 2026-03-23 03:46:04 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.4 Extended Update Support

Via RHSA-2026:5226 https://access.redhat.com/errata/RHSA-2026:5226

Comment 24 errata-xmlrpc 2026-03-23 05:20:23 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 10.0 Extended Update Support

Via RHSA-2026:5315 https://access.redhat.com/errata/RHSA-2026:5315

Comment 25 errata-xmlrpc 2026-03-23 14:22:18 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7 Extended Lifecycle Support

Via RHSA-2026:5393 https://access.redhat.com/errata/RHSA-2026:5393

Comment 26 errata-xmlrpc 2026-03-23 15:57:41 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.4 Extended Update Support

Via RHSA-2026:5399 https://access.redhat.com/errata/RHSA-2026:5399

Comment 27 errata-xmlrpc 2026-03-30 01:39:28 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 6 Extended Lifecycle Support  - EXTENSION

Via RHSA-2026:6007 https://access.redhat.com/errata/RHSA-2026:6007

Comment 28 errata-xmlrpc 2026-03-30 01:42:37 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions
  Red Hat Enterprise Linux 8.8 Telecommunications Update Service

Via RHSA-2026:6008 https://access.redhat.com/errata/RHSA-2026:6008

Comment 29 errata-xmlrpc 2026-03-31 09:03:11 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.4 Extended Update Support

Via RHSA-2026:6253 https://access.redhat.com/errata/RHSA-2026:6253

Comment 30 errata-xmlrpc 2026-04-02 12:01:05 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7 Extended Lifecycle Support

Via RHSA-2026:6464 https://access.redhat.com/errata/RHSA-2026:6464