PT-2020-16953 · Rust · Lettre

Published

2020-11-11

·

Updated

2021-08-25

·

CVE-2020-28247

CVSS v3.1

5.3

Medium

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Name of the Vulnerable Software and Affected Versions lettre library versions through 0.10.0-alpha
Description The issue allows arbitrary sendmail option injection via transport/sendmail/mod.rs. Affected versions of lettre allowed argument injection to the sendmail command, making it possible to pass arbitrary arguments to the sendmail executable using forged to addresses. Depending on the implementation, it could be possible 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. This issue only affects the sendmail transport, with others like smtp not being affected.
Recommendations For versions through 0.10.0-alpha, the flaw is corrected by modifying the executed command to stop parsing arguments before passing the destination addresses. As a temporary workaround, consider disabling the sendmail transport until a patch is available. Restrict access to the transport/sendmail/mod.rs module to minimize the risk of exploitation. Avoid using the to address parameter in the affected sendmail transport until the issue is resolved.

Fix

Command Injection

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2020-28247
GHSA-VC2P-R46X-M3VX
RUSTSEC-2020-0069

Affected Products

Lettre