Search

Find a vulnerability

Search criteria

    Related vulnerabilities

    RUSTSEC-2021-0069 (GHSA-QC36-Q22Q-CJW3)

    Vulnerability from osv_rustsec – Published: 2021-05-22 12:00 – Updated: 2021-10-19 19:56 – Source website
    VLAI
    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"
    }