diff --git a/advisories/RUSTSEC-2021-0069.html b/advisories/RUSTSEC-2021-0069.html new file mode 100644 index 000000000..b8f1e2bef --- /dev/null +++ b/advisories/RUSTSEC-2021-0069.html @@ -0,0 +1,232 @@ + + + + + + + +RUSTSEC-2021-0069: lettre: SMTP command injection in body › RustSec Advisory Database + + + + + + +
+

+ +
+ +
+
+
+

+ + + RUSTSEC-2021-0069 + +

+

SMTP command injection in body

+
+
+ + + + +
+
Issued
+
+ +
+ +
Package
+
+ + + + lettre + (crates.io) + + +
+ +
Type
+
+ + + Vulnerability + +
+ + +
Categories
+
+
    + +
  • format-injection
  • + +
+
+ + + +
Aliases
+
+
    + +
  • + + + GHSA-qc36-q22q-cjw3 + +
  • + +
+
+ + + +
Details
+
+ + https://github.com/lettre/lettre/pull/627/commits/93458d01fed0ec81c0e7b4e98e6f35961356fae2 + +
+ + + + + + + + + +
Patched
+
+ + +
    + +
  • >=0.10.0-rc.3
  • + +
  • <0.10.0-alpha.1, >=0.9.6
  • + +
+ +
+ + +
Unaffected
+
+
    + +
  • <0.7.0
  • + +
+
+ + + +
Keywords
+
+
    + +
  • email
  • + +
  • smtp
  • + +
+
+ + + + + + + + + + +
+ + + + +
+
Affected Functions
+
Version
+ +
lettre::smtp::SmtpTransport::send
+
+
    + +
  • <0.10.0-alpha.1
  • + +
+
+ +
lettre::transport::smtp::SmtpTransport::send
+
+
    + +
  • >=0.10.0-alpha.1, <0.10.0-rc.3
  • + +
+
+ +
lettre::transport::smtp::SmtpTransport::send_raw
+
+
    + +
  • >=0.10.0-alpha.1, <0.10.0-rc.3
  • + +
+
+ +
+ + + +

Description

+

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.

+

The flaw is fixed by correctly handling consecutive CRLF sequences.

+ + + + +

More

+ + + +
+
diff --git a/advisories/index.html b/advisories/index.html index c85c4ef8b..9c149eb14 100644 --- a/advisories/index.html +++ b/advisories/index.html @@ -48,6 +48,23 @@