Skip to content

CVE-2021-38189 SMTP command injection in lettre

CriticalCVSS 9.8 EPSS 1.5%
Published
Updated
Exploit status
No public exploit known

Description

An issue was discovered in the lettre crate before 0.9.6 for Rust. In an e-mail message body, an attacker can place a . character after two <CR><LF> sequences and then inject arbitrary SMTP commands.

Upgrade path

2 packages: 2 fixed.

PackageAffectedFixed inStatus
crates.io lettre(crates.io) >= 0.7.0, < 0.9.6; >= 0.10.0-alpha.1, < 0.10.0-rc.3 0.9.6, 0.10.0-rc.3 Fixed
lettre < 0.9.6; = 0.10.0-alpha1; = 0.10.0-alpha2; = 0.10.0-alpha3 +8 more 0.9.6 Fixed

Affected products

ProductAffected versionsFixed in
crates.io lettre(crates.io) >= 0.7.0, < 0.9.6 0.9.6
lettre < 0.9.6 0.9.6
lettre = 0.10.0-alpha1 No fix listed
lettre = 0.10.0-alpha2 No fix listed
lettre = 0.10.0-alpha3 No fix listed
lettre = 0.10.0-alpha4 No fix listed
lettre = 0.10.0-alpha5 No fix listed
lettre = 0.10.0-beta1 No fix listed
lettre = 0.10.0-beta2 No fix listed
lettre = 0.10.0-beta3 No fix listed
lettre = 0.10.0-beta4 No fix listed
lettre = 0.10.0-rc1 No fix listed
lettre = 0.10.0-rc2 No fix listed
crates.io lettre(crates.io) >= 0.10.0-alpha.1, < 0.10.0-rc.3 0.10.0-rc.3

References