aiosmtplib is vulnerable to Command Injection
69
CVE Score
Medium
Command Injection
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.
Upgrade the aiosmtplib library to the patch version.
You are affected if you are using a version that falls within the vulnerable range.
0.0.1 - 5.1.0
Fixed in 5.1.1aiosmtplib is vulnerable to Command Injection in versions 0.0.1 - 5.1.0.
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.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.