CVE-2026-53533
MEDIUM 6.9CVSS 4.0aiosmtplib vulnerable to SMTP command injection via CR/LF in sender/recipient address
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.
- Published
- 18 Aug 2026
- Last modified
- 22 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-77CWE-93
- Also known as
- GHSA-v3q9-hj7j-63hqPYSEC-2026-2338
- Sources
- NVDJSONOSV GHSA-v3q9-hj7j-63hqJSONOSV PYSEC-2026-2338JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | MEDIUM 6.9 | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:H/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:H/SA:N | |
| OSV | PyPA | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:H/SA:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | PyPI | aiosmtplib | < 5.1.1 | 5.1.1 |
References
- https://github.com/cole/aiosmtplib/commit/8eaf6efc9a8f59e2e09d3ef11246a058c46bd3ba
- https://github.com/cole/aiosmtplib/releases/tag/v5.1.1
- https://github.com/cole/aiosmtplib/security/advisories/GHSA-v3q9-hj7j-63hq · WEB
- https://github.com/cole/aiosmtplib · PACKAGE
- https://pypi.org/project/aiosmtplib · PACKAGE
- https://github.com/advisories/GHSA-v3q9-hj7j-63hq · ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2026-53533 · ADVISORY
History
- 25 Nov 2026 21:04 UTC · NVD: first stored (published 18 Aug 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 13 Jul 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 7 Jul 2026)