Advisory

RUSTSEC-2020-0069

Also known as: CVE-2020-28247, GHSA-vc2p-r46x-m3vx

Summary

Argument injection in sendmail transport

Details

Affected versions of lettre allowed argument injection
to the sendmail command. It was possible, using forged to addresses,
to pass arbitrary arguments to the sendmail executable.

Depending on the implementation (original sendmail, postfix, exim, etc.)
it could be possible in some cases to write email data into arbitrary files (using sendmail's
logging features).

The flaw is corrected by modifying the executed command to stop parsing arguments
before passing the destination addresses.

NOTE: This vulnerability only affects the sendmail transport. Others, including smtp, are not
affected.

This vulnerability was reported by vin01.

Severity

Medium Basis: CVSS v3 score 5.3, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

Dates

Published
2020-11-11 12:00 UTC
Modified
2023-11-08 04:03 UTC

Affected packages and fixes

lettre

crates.io · All systems

Affected

  • introduced 0.7.0, fixed 0.7.1, introduced 0.8.0, fixed 0.8.4, introduced 0.9.0, fixed 0.9.5, introduced 0.10.0-alpha.1, fixed 0.10.0-alpha.4 (semver)

Fixed versions

0.7.1, 0.8.4, 0.9.5, 0.10.0-alpha.4

Fix

  • Fixed version 0.7.1
    cargo update -p lettre --precise 0.7.1
  • Fixed version 0.8.4
    cargo update -p lettre --precise 0.8.4
  • Fixed version 0.9.5
    cargo update -p lettre --precise 0.9.5
  • Fixed version 0.10.0-alpha.4
    cargo update -p lettre --precise 0.10.0-alpha.4

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