Moderate Security Vulnerability in Python 3.12: Header Injection and Command Injection Issues

python3.12 Updated 16 Mar 2026

Summary

12/03/2026
N/A
Yes i
Unrated
Not published

ALSA-2026:4463: Moderate: python3.12 security update. Affects python3.12 versions < 3.12.12-3.el8_10. Fixed in 3.12.12-3.el8_10. 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

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, from web development to data analysis. However, recent security vulnerabilities have been identified that could allow attackers to exploit certain functionalities within the language, particularly in its handling of headers and commands.

Vulnerability Detail

The identified vulnerabilities in Python 3.12 include header newline injection in the wsgiref.headers module, IMAP command injection in user-controlled commands, POP3 command injection in user-controlled commands, and email header injection due to unquoted newlines. These vulnerabilities can lead to unauthorized access, data leakage, or manipulation of email headers, posing significant risks to applications relying on Python for email and network communications.

How To Fix

Minimum fixed version

3.12.12-3.el8_10

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 inputs in IMAP and POP3 commands, and sanitize any headers to prevent newline injections. Implement strict validation of inputs to mitigate risks until the package is updated.

Conclusion

The vulnerabilities identified in Python 3.12 pose significant security risks that can be exploited through header and command injections. It is crucial for users to update to the latest patched version to safeguard their applications. Additionally, implementing input validation can serve as a temporary measure until the update is applied.

See every vulnerability recorded for python3.12 →

Share this vulnerability

FAQ

The vulnerabilities involve header injection and command injection, which can be exploited through user-controlled inputs.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by these vulnerabilities without needing to sign up.

Exploitation of these vulnerabilities can lead to unauthorized access, data leakage, or manipulation of email headers, which can compromise application security.

Yes, a patch is available in version 3.12.12-3.el8_10 of Python 3.12. It is recommended to update to this version.

If immediate updates are not possible, implement input validation and sanitization as a temporary workaround to mitigate risks.

Related vulnerabilities

Recent vulnerabilities recorded for python3.12.

How To Fix

Minimum fixed version

3.12.12-3.el8_10

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