—
RUSTSEC-2021-0069
SMTP command injection in body
Details
Affected versions of lettre allowed SMTP command injection through an attacker's controlled message body. The module for escaping lines starting with a period wouldn't catch a period that was placed after a double CRLF sequence, allowing the attacker to end the current message and write arbitrary SMTP commands after it.
The flaw is fixed by correctly handling consecutive CRLF sequences.
Are you affected?
Enter the version of the package you're using.
Affected packages
crates.io/lettre
Introduced in:
0.7.0Fixed in: 0.9.6Upgrade lettre to 0.9.6 or newer (ecosystem crates.io).