Command Injection Vulnerability in aiosmtplib SMTP Client
CVE-2026-53533

6.9MEDIUM

Key Information:

Vendor

Cole

Vendor
CVE Published:
18 August 2026

What is CVE-2026-53533?

The aiosmtplib SMTP client before version 5.1.1 contains a command injection vulnerability due to its handling of caller-supplied email addresses. Specifically, functions like SMTP.mail(), SMTP.rcpt(), SMTP.vrfy(), and SMTP.expn() do not adequately reject embedded CR or LF bytes. This oversight allows for the injection of additional SMTP commands, including MAIL FROM and RCPT TO, through manipulated envelope sender or recipient details. Consequently, attackers could desynchronize the command-response pipeline, hang the SMTP instance, or dispatch arbitrary messages, all without controlling the SMTP server. This vulnerability has been resolved in version 5.1.1.

Affected Version(s)

aiosmtplib < 5.1.1

References

CVSS V4

Score:
6.9
Severity:
MEDIUM
Confidentiality:
None
Integrity:
Low
Availability:
Low
Attack Vector:
Network
Attack Complexity:
Low
Attack Required:
Physical
Privileges Required:
Undefined
User Interaction:
None

Timeline

  • Vulnerability published

  • Vulnerability Reserved

.