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

- Severity: Medium 6.9 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.39%, higher than 34% of CVEs (2026-12-01)
- Published: 2026-07-07T23:40:52.000Z
- Modified: 2026-10-22T22:10:00.250Z
- Also known as: GHSA-v3q9-hj7j-63hq, PYSEC-2026-2338
- Weaknesses: CWE-77, CWE-93
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- cole aiosmtplib: < 5.1.1
- aiosmtplib (PyPI): before 5.1.1

## Every score

- GitHub_M: CVSS:4.0 6.9 Medium `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`
- GitHub: CVSS:4.0 Medium `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`
- PyPA Advisory Database: 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`

## References

- <https://github.com/cole/aiosmtplib/security/advisories/GHSA-v3q9-hj7j-63hq> (web)
- <https://github.com/cole/aiosmtplib/commit/8eaf6efc9a8f59e2e09d3ef11246a058c46bd3ba>
- <https://github.com/cole/aiosmtplib/releases/tag/v5.1.1>
- <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)

## Sources

- CVE List: [CVE-2026-53533](https://www.cve.org/CVERecord?id=CVE-2026-53533), CVE Terms of Use, modified 2026-08-19
- GitHub Advisory Database: [GHSA-v3q9-hj7j-63hq](https://github.com/advisories/GHSA-v3q9-hj7j-63hq), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-53533](https://nvd.nist.gov/vuln/detail/CVE-2026-53533), Public domain, modified 2026-10-22
- PyPA Advisory Database: [PYSEC-2026-2338](https://osv.dev/vulnerability/PYSEC-2026-2338), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2026-53533 · Whole record: https://cve.day/CVE-2026-53533.json · Rebuilt by cve.day 2026-11-25T22:59:33.537Z
