{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2021-38189","id":"CVE-2021-38189","title":"SMTP command injection in lettre","description":"An issue was discovered in the lettre crate before 0.9.6 for Rust. In an e-mail message body, an attacker can place a . character after two <CR><LF> sequences and then inject arbitrary SMTP commands.","descriptionLong":"An issue was discovered in the lettre crate before 0.9.6 for Rust. In an e-mail message body, an attacker can place a . character after two <CR><LF> sequences and then inject arbitrary SMTP commands.","published":"2021-08-08T05:10:12.000Z","updated":"2026-10-24T10:31:01.386790123Z","reserved":"2021-08-08T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"mitre","metric":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"NVD"},"metrics":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"NVD"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"OSV"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"GitHub"},{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","rating":"high","source":"NVD"}],"rating":"critical","products":[],"affectedProducts":[{"vendor":"n/a","product":"n/a","defaultStatus":null,"versions":[{"status":"affected","version":"n/a"}],"platforms":[]}],"packages":[{"ecosystem":"crates.io","name":"lettre","purl":"pkg:cargo/lettre","ranges":[">=0.7.0 <0.9.6",">=0.10.0-alpha.1 <0.10.0-rc.3"],"fixed":["0.9.6","0.10.0-rc.3"],"advisory":"GHSA-qc36-q22q-cjw3"}],"cwes":["CWE-77","CWE-147"],"aliases":["GHSA-qc36-q22q-cjw3","RUSTSEC-2021-0069"],"references":[{"url":"https://rustsec.org/advisories/RUSTSEC-2021-0069.html","tags":["x_refsource_MISC","x_transferred","Exploit","Issue Tracking","Patch","Third Party Advisory","fix","web","advisory"]},{"url":"https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/lettre/RUSTSEC-2021-0069.md","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory"]},{"url":"https://github.com/lettre/lettre/security/advisories/GHSA-qc36-q22q-cjw3","tags":["web"]},{"url":"https://github.com/lettre/lettre/pull/627/commits/93458d01fed0ec81c0e7b4e98e6f35961356fae2","tags":["web"]},{"url":"https://github.com/lettre/lettre/commit/8bfc20506cc5e098fe6eb3d1cafe3bea791215ce","tags":["web"]},{"url":"https://github.com/lettre/lettre","tags":["package"]},{"url":"https://crates.io/crates/lettre","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.01494,"epssPercentile":0.7471,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2021-38189","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-38189","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2021-38189","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-qc36-q22q-cjw3","ok":true,"note":"GHSA-qc36-q22q-cjw3"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2021-38189","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}