CVE-2021-38189

CRITICAL9.8EPSS 0.48%

SMTP command injection in body

Published: 7/12/2021Modified: 11/8/2023
Also known as:GHSA-qc36-q22q-cjw3RUSTSEC-2021-0069

Description

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. The flaw is fixed by correctly handling consecutive CRLF sequences.

Affected packages (2)

CVSS scores

SourceVersionSeverityVector
osvCVSS 3.1CRITICAL9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

References (6)