Advisory

GHSA-qc36-q22q-cjw3

Also known as: CVE-2021-38189, RUSTSEC-2021-0069

Summary

SMTP command injection in lettre

Details

Impact

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.

Fix

The flaw is fixed by correctly handling consecutive CRLF sequences.

References

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2021-07-12 17:03 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 (semver)

Fixed versions

0.9.6

Fix

  • Fixed version 0.9.6
    cargo update -p lettre --precise 0.9.6

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: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences