CVE-2021-38189

GHSA-qc36-q22q-cjw3 · RUSTSEC-2021-0069 · published 22 May 2021 · updated 18 Nov 2026

SMTP command injection in body

5.0MediumEPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in lettre 0.10.0-rc.3.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
cargo: lettre>=0.10.0-alpha.1 <0.10.0-rc.30.10.0-rc.3

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in lettre (Cargo), strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2021-38189 severity on Zeptric[![CVE-2021-38189](https://zeptric.io/badge/cve/CVE-2021-38189.svg)](https://zeptric.io/cve/CVE-2021-38189)