Intel

AIKIDO-2026-11095

aiosmtplib is vulnerable to Command Injection

CVE-2026-53533Published Jun 5, 2026
June 5, 2026

69

CVE Score

Medium

Command Injection

Are you affected? Scan for Free

TL;DR

The SMTP protocol layer writes caller-supplied envelope addresses from mail(), rcpt(), vrfy(), expn(), and sendmail() directly onto the control connection without rejecting embedded C0 control characters or DEL. An attacker who can influence those address strings can inject additional SMTP command lines such as RCPT TO or DATA, smuggling a full transaction or desynchronizing the client session. The patch validates all command arguments in execute_command() and raises ValueError before any bytes are sent.

How do I fix this?

Upgrade the aiosmtplib library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Package

Versions

0.0.1 - 5.1.0

Fixed in 5.1.1

Background info

aiosmtplib is vulnerable to Command Injection in versions 0.0.1 - 5.1.0.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea