lettre
Affected
- introduced
0.7.0, fixed0.9.6(semver)
Fixed versions
0.9.6
Fix
- Fixed version
0.9.6cargo update -p lettre --precise 0.9.6
Advisory
Also known as: CVE-2021-38189, RUSTSEC-2021-0069
SMTP command injection in lettre
Impact
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.
Fix
The flaw is fixed by correctly handling consecutive CRLF sequences.
References
Critical Basis: The source's own band: CRITICAL
0.7.0, fixed 0.9.6 (semver)0.9.6
0.9.6cargo update -p lettre --precise 0.9.6Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0