Red Hat Security Advisory: python3.12 security update
🔗 CVE IDs covered (3)
📋 Description
CVE-2025-15366 — cpython: IMAP command injection in user-controlled commands CVE-2025-15367 — cpython: POP3 command injection in user-controlled commands CVE-2026-1299 — cpython: email header injection due to unquoted newlines
🎯 Affected products58
- Red Hat CodeReady Linux Builder EUS (v.9.4)
- Red Hat Enterprise Linux AppStream EUS (v.9.4)
- python3.12-0:3.12.1-4.el9_4.11.aarch64 as a component of Red Hat Enterprise Linux AppStream EUS (v.9.4)
- python3.12-0:3.12.1-4.el9_4.11.i686 as a component of Red Hat CodeReady Linux Builder EUS (v.9.4)
- python3.12-0:3.12.1-4.el9_4.11.ppc64le as a component of Red Hat Enterprise Linux AppStream EUS (v.9.4)
- python3.12-0:3.12.1-4.el9_4.11.s390x as a component of Red Hat Enterprise Linux AppStream EUS (v.9.4)
- python3.12-0:3.12.1-4.el9_4.11.src as a component of Red Hat Enterprise Linux AppStream EUS (v.9.4)
- python3.12-0:3.12.1-4.el9_4.11.x86_64 as a component of Red Hat Enterprise Linux AppStream EUS (v.9.4)
- python3.12-debug-0:3.12.1-4.el9_4.11.aarch64 as a component of Red Hat CodeReady Linux Builder EUS (v.9.4)
- python3.12-debug-0:3.12.1-4.el9_4.11.i686 as a component of Red Hat CodeReady Linux Builder EUS (v.9.4)
- python3.12-debug-0:3.12.1-4.el9_4.11.ppc64le as a component of Red Hat CodeReady Linux Builder EUS (v.9.4)
- python3.12-debug-0:3.12.1-4.el9_4.11.s390x as a component of Red Hat CodeReady Linux Builder EUS (v.9.4)
- python3.12-debug-0:3.12.1-4.el9_4.11.x86_64 as a component of Red Hat CodeReady Linux Builder EUS (v.9.4)
- python3.12-debuginfo-0:3.12.1-4.el9_4.11.aarch64 as a component of Red Hat CodeReady Linux Builder EUS (v.9.4)
- python3.12-debuginfo-0:3.12.1-4.el9_4.11.aarch64 as a component of Red Hat Enterprise Linux AppStream EUS (v.9.4)
- python3.12-debuginfo-0:3.12.1-4.el9_4.11.i686 as a component of Red Hat CodeReady Linux Builder EUS (v.9.4)
- python3.12-debuginfo-0:3.12.1-4.el9_4.11.i686 as a component of Red Hat Enterprise Linux AppStream EUS (v.9.4)
- python3.12-debuginfo-0:3.12.1-4.el9_4.11.ppc64le as a component of Red Hat CodeReady Linux Builder EUS (v.9.4)
- python3.12-debuginfo-0:3.12.1-4.el9_4.11.ppc64le as a component of Red Hat Enterprise Linux AppStream EUS (v.9.4)
- python3.12-debuginfo-0:3.12.1-4.el9_4.11.s390x as a component of Red Hat CodeReady Linux Builder EUS (v.9.4)
- python3.12-debuginfo-0:3.12.1-4.el9_4.11.s390x as a component of Red Hat Enterprise Linux AppStream EUS (v.9.4)
- python3.12-debuginfo-0:3.12.1-4.el9_4.11.x86_64 as a component of Red Hat CodeReady Linux Builder EUS (v.9.4)
- python3.12-debuginfo-0:3.12.1-4.el9_4.11.x86_64 as a component of Red Hat Enterprise Linux AppStream EUS (v.9.4)
- python3.12-debugsource-0:3.12.1-4.el9_4.11.aarch64 as a component of Red Hat CodeReady Linux Builder EUS (v.9.4)
- python3.12-debugsource-0:3.12.1-4.el9_4.11.aarch64 as a component of Red Hat Enterprise Linux AppStream EUS (v.9.4)
- python3.12-debugsource-0:3.12.1-4.el9_4.11.i686 as a component of Red Hat CodeReady Linux Builder EUS (v.9.4)
- python3.12-debugsource-0:3.12.1-4.el9_4.11.i686 as a component of Red Hat Enterprise Linux AppStream EUS (v.9.4)
- python3.12-debugsource-0:3.12.1-4.el9_4.11.ppc64le as a component of Red Hat CodeReady Linux Builder EUS (v.9.4)
- python3.12-debugsource-0:3.12.1-4.el9_4.11.ppc64le as a component of Red Hat Enterprise Linux AppStream EUS (v.9.4)
- python3.12-debugsource-0:3.12.1-4.el9_4.11.s390x as a component of Red Hat CodeReady Linux Builder EUS (v.9.4)
- +28 more not shown
✅ Remediation
For details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258 Workaround: To mitigate this vulnerability, ensure that no data passed to the imaplib module contains newline or carriage return characters. Workaround: To mitigate this vulnerability, ensure that no data passed to the poplib module contains newline or carriage return characters. Workaround: To mitigate this issue, applications accepting user-supplied data for email headers should sanitize the input by stripping or rejecting any strings containing carriage return or line feed characters, '\r' or '\n', respectively, preventing malicious sequences that could lead to header manipulation.
🔗 References (6)
- selfhttps://access.redhat.com/errata/RHSA-2026:5399
- externalhttps://access.redhat.com/security/updates/classification/#moderate
- externalhttps://bugzilla.redhat.com/show_bug.cgi?id=2431368
- externalhttps://bugzilla.redhat.com/show_bug.cgi?id=2431373
- externalhttps://bugzilla.redhat.com/show_bug.cgi?id=2432437
- selfhttps://security.access.redhat.com/data/csaf/v2/advisories/2026/rhsa-2026_5399.json