ADVISORIES

GitHub Advisory Database

GHSA-vc2p-r46x-m3vx

Argument injection in lettre

Details

Impact

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 abritrary files (using sendmail's logging features).

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

Fix

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

References

Affected packages

EcosystemPackageAffected versions
crates.iolettre
From 0.9.0 before 0.9.5 (fixed in 0.9.5)
crates.iolettre
From 0.8.0 before 0.8.4 (fixed in 0.8.4)
crates.iolettre
From 0.7.0 before 0.7.1 (fixed in 0.7.1)

References