# CVE-2021-38189: SMTP command injection in lettre

- Severity: Critical 9.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.49%, higher than 74% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-05-22T12:00:00.000Z
- Modified: 2026-11-18T09:27:05.722Z
- Also known as: GHSA-qc36-q22q-cjw3, RUSTSEC-2021-0069
- Related: RUSTSEC-2026-0561
- Weaknesses: CWE-77, CWE-147
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- lettre (crates.io): from 0.7.0 before 0.9.6; from 0.10.0-alpha.1 before 0.10.0-rc.3
- lettre lettre: before 0.9.6; 0.10.0

## Every score

- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://rustsec.org/advisories/RUSTSEC-2021-0069.html> (exploit, advisory, issue-tracking, patch, third-party-advisory, web)
- <https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/lettre/RUSTSEC-2021-0069.md> (third-party-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)

## Sources

- CVE List: [CVE-2021-38189](https://www.cve.org/CVERecord?id=CVE-2021-38189), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-qc36-q22q-cjw3](https://github.com/advisories/GHSA-qc36-q22q-cjw3), CC-BY-4.0, modified 2023-11-08
- RustSec Advisory Database: [RUSTSEC-2021-0069](https://rustsec.org/advisories/RUSTSEC-2021-0069.html), CC0-1.0, modified 2026-11-18
- NVD: [CVE-2021-38189](https://nvd.nist.gov/vuln/detail/CVE-2021-38189), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-38189 · Whole record: https://cve.day/CVE-2021-38189.json · Rebuilt by cve.day 2026-11-25T22:58:03.054Z
