CVE-2021-38189
CRITICAL 9.8CVSS 3.1SMTP command injection in lettre
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.
- Published
- 8 Aug 2021
- Last modified
- 18 Nov 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-147CWE-77
- Also known as
- GHSA-qc36-q22q-cjw3RUSTSEC-2021-0069
- Sources
- NVDJSONOSV GHSA-qc36-q22q-cjw3JSONOSV RUSTSEC-2021-0069JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | lettre | lettrecpe:2.3:a:lettre:lettre:*:*:*:*:*:rust:*:* |
< 0.9.6 | 0.9.6 |
| NVD | lettre | lettrecpe:2.3:a:lettre:lettre:0.10.0:alpha1:*:*:*:rust:*:* |
= 0.10.0 | |
| NVD | lettre | lettrecpe:2.3:a:lettre:lettre:0.10.0:alpha2:*:*:*:rust:*:* |
= 0.10.0 | |
| NVD | lettre | lettrecpe:2.3:a:lettre:lettre:0.10.0:alpha3:*:*:*:rust:*:* |
= 0.10.0 | |
| NVD | lettre | lettrecpe:2.3:a:lettre:lettre:0.10.0:alpha4:*:*:*:rust:*:* |
= 0.10.0 | |
| NVD | lettre | lettrecpe:2.3:a:lettre:lettre:0.10.0:alpha5:*:*:*:rust:*:* |
= 0.10.0 | |
| NVD | lettre | lettrecpe:2.3:a:lettre:lettre:0.10.0:beta1:*:*:*:rust:*:* |
= 0.10.0 | |
| NVD | lettre | lettrecpe:2.3:a:lettre:lettre:0.10.0:beta2:*:*:*:rust:*:* |
= 0.10.0 | |
| NVD | lettre | lettrecpe:2.3:a:lettre:lettre:0.10.0:beta3:*:*:*:rust:*:* |
= 0.10.0 | |
| NVD | lettre | lettrecpe:2.3:a:lettre:lettre:0.10.0:beta4:*:*:*:rust:*:* |
= 0.10.0 | |
| NVD | lettre | lettrecpe:2.3:a:lettre:lettre:0.10.0:rc1:*:*:*:rust:*:* |
= 0.10.0 | |
| NVD | lettre | lettrecpe:2.3:a:lettre:lettre:0.10.0:rc2:*:*:*:rust:*:* |
= 0.10.0 | |
| OSV | crates.io | lettre | >= 0.7.0, < 0.9.6 | 0.9.6 |
| OSV | crates.io | lettre | >= 0.7.0, < 0.9.6; >= 0.10.0-alpha.1, < 0.10.0-rc.3 | 0.9.6, 0.10.0-rc.3 |
References
- https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/lettre/RUSTSEC-2021-0069.md · Third Party Advisory
- https://rustsec.org/advisories/RUSTSEC-2021-0069.html · Exploit, Issue Tracking, Patch, Third Party Advisory, WEB, ADVISORY
- https://github.com/lettre/lettre/security/advisories/GHSA-qc36-q22q-cjw3 · WEB
- https://github.com/lettre/lettre/pull/627/commits/93458d01fed0ec81c0e7b4e98e6f35961356fae2 · WEB
- https://github.com/lettre/lettre/commit/8bfc20506cc5e098fe6eb3d1cafe3bea791215ce · WEB
- https://github.com/lettre/lettre · PACKAGE
- https://crates.io/crates/lettre · PACKAGE
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 8 Aug 2021)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 22 May 2021)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 12 Jul 2021)