Live threats

All CVEs / Lettre

CVE-2021-38189Lettre

Critical 9.8 No auth needed

Priority
74
CVSS 3.1
9.8
EPSS
1.5%
probability of exploitation in 30 days · percentile 74
Auth required
No
Published
Aug 8, 2021
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-77
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Lettre.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
crates.io lettre ≥ 0.7.0 < 0.9.6 0.9.6 cargo update -p lettre --precise 0.9.6
crates.io lettre ≥ 0.7.0 < 0.9.6 0.9.6 cargo update -p lettre --precise 0.9.6
crates.io lettre ≥ 0.10.0-alpha.1 < 0.10.0-rc.3 0.10.0-rc.3 cargo update -p lettre --precise 0.10.0-rc.3

Per OSV / GitHub Advisories (GHSA-qc36-q22q-cjw3, RUSTSEC-2021-0069). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
lettrelettre< 0.9.6
lettrelettre0.10.0
lettrelettre0.10.0
lettrelettre0.10.0
lettrelettre0.10.0
lettrelettre0.10.0
lettrelettre0.10.0
lettrelettre0.10.0
lettrelettre0.10.0
lettrelettre0.10.0
lettrelettre0.10.0
lettrelettre0.10.0

Official sources

References

Links published by the sources. Open them with care.