CVE-2025-15366
Unknown Unknown - Not Provided

Command Injection via Newline in Python imaplib Module

Vulnerability report for CVE-2025-15366, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-01-20

Last updated on: 2026-01-20

Assigner: Python Software Foundation

Description

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

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-01-20
Last Modified
2026-01-20
Generated
2026-07-06
AI Q&A
2026-01-21
EPSS Evaluated
2026-07-05
NVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
python imaplib *

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-77 The product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

The vulnerability in the imaplib module allows an attacker to inject additional commands by including newlines in a user-controlled command. This means that if an attacker can control the input to imaplib, they can potentially execute unintended commands. The mitigation involves rejecting commands that contain control characters to prevent this injection.

Impact Analysis

This vulnerability can allow an attacker with some level of access to inject additional commands into the imaplib module, potentially leading to unauthorized actions or manipulation of the IMAP session. This could compromise the integrity or behavior of the application using imaplib.

Mitigation Strategies

Mitigation involves rejecting commands containing control characters to prevent command injection via newlines in the imaplib module.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2025-15366. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart