CVE-2021-38189
SMTP command injection in body
9.8
CRITICAL
CVSS 3.1
EPSS 1.5%
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.
How to fix CVE-2021-38189
To remediate CVE-2021-38189, upgrade the affected package to a fixed version below.
- —upgrade to 0.9.6 or later
- —upgrade to 0.9.6 or later
Is CVE-2021-38189 being exploited?
Low — EPSS is 1.5%, meaning exploitation activity has not been observed at scale.
Affected packages (2)
- >= 0.7.0, < 0.9.6
- >= 0.7.0, < 0.9.6, >= 0.10.0-alpha.1, < 0.10.0-rc.3
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | CRITICAL9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |