Moderate Security Vulnerability in Python 3.12: IMAP and POP3 Command Injection

python3.12 Updated 23 Mar 2026

Summary

11/03/2026
N/A
Yes i
High
7.1

RLSA-2026:4165: Moderate: python3.12 security update. Affects python3.12 versions < 0:3.12.12-4.el9_7.1. Fixed in 0:3.12.12-4.el9_7.1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

Python 3.12 is an interpreted, interactive, object-oriented programming language that supports modules, classes, exceptions, and dynamic data types. It is widely used for various applications due to its versatility and ease of use. However, recent vulnerabilities have been identified that could potentially compromise the security of applications utilizing this version.

Vulnerability Detail

The vulnerabilities in Python 3.12 include command injection flaws in the IMAP and POP3 protocols, which can be exploited through user-controlled commands. Specifically, CVE-2025-15366 allows for IMAP command injection, while CVE-2025-15367 pertains to POP3 command injection. Additionally, CVE-2026-1299 highlights an email header injection issue caused by unquoted newlines. These vulnerabilities can lead to unauthorized access and manipulation of email communications, posing significant risks to data integrity and confidentiality.

How To Fix

Minimum fixed version

0:3.12.12-4.el9_7.1

This is the first release that contains the fix.

sudo dnf update python3.12

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary measure, avoid using user-controlled commands in IMAP and POP3 operations until the package is updated. Implement input validation to sanitize user inputs and prevent command injection.

Conclusion

The identified vulnerabilities in Python 3.12 pose significant risks to applications utilizing this version. It is crucial to update to the latest patched version to ensure security and protect against potential exploits. Utilizing tools like Vulert can help monitor for such vulnerabilities in real-time.

See every vulnerability recorded for python3.12 →

Share this vulnerability

FAQ

The CVSS score for this vulnerability is 7.1, indicating a moderate level of severity.

You can use Vulert to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected without requiring any signup.

Exploitation of these vulnerabilities can lead to unauthorized access to email accounts, manipulation of email content, and potential data breaches.

Yes, updating to version 3.12.12-4.el9_7.1 or later will mitigate these vulnerabilities.

If immediate updates are not possible, implement input validation and avoid using user-controlled commands in email operations as a temporary workaround.

Related vulnerabilities

Recent vulnerabilities recorded for python3.12.

How To Fix

Minimum fixed version

0:3.12.12-4.el9_7.1

This is the first release that contains the fix.

sudo dnf update python3.12

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback