CVE-2021-38189Lettre
Critical 9.8 No auth needed
Follow: this CVE · Lettre · Lettre We alert you by email or Slack (account required).
- 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.
What to do
- Apply the vendor's security update for Lettre.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| lettre | lettre | < 0.9.6 |
| lettre | lettre | 0.10.0 |
| lettre | lettre | 0.10.0 |
| lettre | lettre | 0.10.0 |
| lettre | lettre | 0.10.0 |
| lettre | lettre | 0.10.0 |
| lettre | lettre | 0.10.0 |
| lettre | lettre | 0.10.0 |
| lettre | lettre | 0.10.0 |
| lettre | lettre | 0.10.0 |
| lettre | lettre | 0.10.0 |
| lettre | lettre | 0.10.0 |
Official sources
References
Links published by the sources. Open them with care.
- raw.githubusercontent.com Third Party Advisory
- rustsec.org Exploit Issue Tracking Patch