Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. lettre
  4. ›
  5. CVE-2021-38189

CVE-2021-38189: SMTP command injection in lettre

July 12, 2021 (updated August 18, 2021)

Affected versions of lettre allowed SMTP command injection through an attacker’s controlled message body. The module for escaping lines starting with a period wouldn’t catch a period that was placed after a double CRLF sequence, allowing the attacker to end the current message and write arbitrary SMTP commands after it.

References

  • github.com/advisories/GHSA-qc36-q22q-cjw3
  • github.com/lettre/lettre
  • github.com/lettre/lettre/commit/8bfc20506cc5e098fe6eb3d1cafe3bea791215ce
  • github.com/lettre/lettre/pull/627/commits/93458d01fed0ec81c0e7b4e98e6f35961356fae2
  • github.com/lettre/lettre/security/advisories/GHSA-qc36-q22q-cjw3
  • nvd.nist.gov/vuln/detail/CVE-2021-38189
  • rustsec.org/advisories/RUSTSEC-2021-0069.html

Code Behaviors & Features

Detect and mitigate CVE-2021-38189 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 0.7.0 before 0.9.6

Fixed versions

  • 0.9.6

Solution

Upgrade to version 0.9.6 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-147: Improper Neutralization of Input Terminators

Source file

cargo/lettre/CVE-2021-38189.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:23 +0000.