Advisory

RUSTSEC-2021-0069

Also known as: CVE-2021-38189, GHSA-qc36-q22q-cjw3

Summary

SMTP command injection in body

Details

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.

Severity

Not rated by the source.

Dates

Published
2021-05-22 12:00 UTC
Modified
2023-11-08 04:06 UTC

Affected packages and fixes

lettre

crates.io · All systems

Affected

  • introduced 0.7.0, fixed 0.9.6, introduced 0.10.0-alpha.1, fixed 0.10.0-rc.3 (semver)

Fixed versions

0.9.6, 0.10.0-rc.3

Fix

  • Fixed version 0.9.6
    cargo update -p lettre --precise 0.9.6
  • Fixed version 0.10.0-rc.3
    cargo update -p lettre --precise 0.10.0-rc.3

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: RustSec Advisory Database · CC0-1.0

Sources & licences