Arbitrary Code Injection Affecting lettre package, versions >=0.7.0 <0.9.6>=0.10.0-alpha.1 <0.10.0-rc.3


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.21% (60th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Arbitrary Code Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-RUST-LETTRE-1537642
  • published9 Aug 2021
  • disclosed8 Aug 2021
  • creditUnknown

Introduced: 8 Aug 2021

CVE-2021-38189  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade lettre to version 0.9.6, 0.10.0-rc.3 or higher.

Overview

lettre is a mailer library for Rust.

Affected versions of this package are vulnerable to Arbitrary Code Injection. In an e-mail message body, an attacker can place a . character after two <CR><LF> sequences and then inject arbitrary SMTP commands.

CVSS Scores

version 3.1