rustsec-2021-0069
Vulnerability from osv_rustsec
Published
2021-05-22 12:00
Modified
2021-10-19 19:56
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.
{
"affected": [
{
"database_specific": {
"categories": [
"format-injection"
],
"cvss": null,
"informational": null
},
"ecosystem_specific": {
"affected_functions": null,
"affects": {
"arch": [],
"functions": [
"lettre::smtp::SmtpTransport::send",
"lettre::transport::smtp::SmtpTransport::send",
"lettre::transport::smtp::SmtpTransport::send_raw"
],
"os": []
}
},
"package": {
"ecosystem": "crates.io",
"name": "lettre",
"purl": "pkg:cargo/lettre"
},
"ranges": [
{
"events": [
{
"introduced": "0.7.0"
},
{
"fixed": "0.9.6"
},
{
"introduced": "0.10.0-alpha.1"
},
{
"fixed": "0.10.0-rc.3"
}
],
"type": "SEMVER"
}
],
"versions": []
}
],
"aliases": [
"GHSA-qc36-q22q-cjw3",
"CVE-2021-38189"
],
"database_specific": {
"license": "CC0-1.0"
},
"details": "Affected versions of lettre allowed SMTP command injection through an attacker\u0027s controlled message body. The module for escaping lines starting with a period wouldn\u0027t 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.\n\nThe flaw is fixed by correctly handling consecutive CRLF sequences.",
"id": "RUSTSEC-2021-0069",
"modified": "2021-10-19T19:56:47Z",
"published": "2021-05-22T12:00:00Z",
"references": [
{
"type": "PACKAGE",
"url": "https://crates.io/crates/lettre"
},
{
"type": "ADVISORY",
"url": "https://rustsec.org/advisories/RUSTSEC-2021-0069.html"
},
{
"type": "WEB",
"url": "https://github.com/lettre/lettre/pull/627/commits/93458d01fed0ec81c0e7b4e98e6f35961356fae2"
}
],
"related": [],
"severity": [],
"summary": "SMTP command injection in body"
}
Loading…
Loading…
Sightings
| Author | Source | Type | Date |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…