RUSTSEC-2021-0069

Source
https://rustsec.org/advisories/RUSTSEC-2021-0069
Import Source
https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2021-0069.json
JSON Data
https://api.osv.dev/v1/vulns/RUSTSEC-2021-0069
Aliases
Published
2021-05-22T12:00:00Z
Modified
2023-11-08T04:06:25.799670Z
Summary
SMTP command injection in body
Details

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.

Database specific
{
    "license": "CC0-1.0"
}
References

Affected packages

crates.io / lettre

Package

Affected ranges

Type
SEMVER
Events
Introduced
0.7.0
Fixed
0.9.6
Introduced
0.10.0-alpha.1
Fixed
0.10.0-rc.3

Ecosystem specific

{
    "affected_functions": null,
    "affects": {
        "os": [],
        "functions": [
            "lettre::smtp::SmtpTransport::send",
            "lettre::transport::smtp::SmtpTransport::send",
            "lettre::transport::smtp::SmtpTransport::send_raw"
        ],
        "arch": []
    }
}

Database specific

{
    "cvss": null,
    "informational": null,
    "categories": [
        "format-injection"
    ]
}