All reports
Critical

SMTP command injection in lettre

Affected versions

Version ranges need review.

Rust / Cargolettre
Affected versions
>=0.7.0 <0.9.6 || >=0.10.0-alpha.1 <0.10.0-rc.3
Fixed version
0.10.0-rc.3 · 0.9.6
Rust / Cargolettre
Affected versions
>= 0.7.0, < 0.9.6
Fixed version
0.9.6

Exploitation

CVE-2021-38189

Probability of exploitation in the next 30 days: 1.49%

FIRST EPSS · 2026-11-20

Description

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

Links

Credits

  • paolobarbolini