~ / search / GHSA-qc36-q22q-cjw3

GHSA-qc36-q22q-cjw3

SMTP command injection in lettre

Source: GitHub Advisory Database (reviewed) Critical CVE-2021-38189

Packages

EcosystemPackageAffectedFixed in
crates.io lettre >= 0.7.0, < 0.9.6 0.9.6

Details

As written in the advisory (Markdown source, shown as plain text).

### 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 * [RUSTSEC-2021-0069](https://rustsec.org/advisories/RUSTSEC-2021-0069.html)

References

External links from the advisory. They lead to third-party sites.