CVEfocus › CVE database › CVE-2026-53533

CVE-2026-53533aiosmtplib: SMTP command injection via CR/LF in sender/recipient address

CVSS 6.9 MediumEPSS 0.5% (higher than 38% of CVEs)Published 2026-08-18Updated 2026-08-19Assigner: GitHub_M

aiosmtplib is an asynchronous SMTP client for use with asyncio. Prior to 5.1.1, SMTP.mail(), SMTP.rcpt(), SMTP.vrfy(), and SMTP.expn() send caller-supplied addresses without rejecting embedded CR or LF bytes. Data after the line break is framed as additional standalone SMTP command lines, allowing an attacker who influences an envelope sender or recipient to inject commands such as MAIL FROM, RCPT TO, RSET, DATA, or AUTH. SMTP.sendmail() and SMTP.send() without a Message object pass addresses through the affected methods, while SMTP.send_message() is not affected. Successful injection can desynchronize the command-response pipeline, hang the SMTP instance, or send an arbitrary message without requiring attacker control of the SMTP server. This issue is fixed in version 5.1.1.

CWE-77CWE-93

What to do

Fixed builds are available from Debian, PyPI: see the table below for the fixed version per release.

Debian, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

2Fixed
3Fix pending
2Under investigation

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10aiosmtplibFix pendingUBUNTU-CVE-2026-53533
Ubuntu 26.04aiosmtplibUnder investigationUBUNTU-CVE-2026-53533
Ubuntu 22.04aiosmtplibUnder investigationUBUNTU-CVE-2026-53533
Debian 14aiosmtplibFixed5.1.2-1DEBIAN-CVE-2026-53533
Debian 13aiosmtplibFix pendingDEBIAN-CVE-2026-53533
Debian 12aiosmtplibFix pendingDEBIAN-CVE-2026-53533
PyPI libraryaiosmtplibFixed5.1.1PYSEC-2026-2338

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.