Skip to content
Heist/ feed
Back to feed
MediumFix available

aiosmtplib — security advisory

Type: advisorySources: OSVAdvisory ID: DEBIAN-CVE-2026-53533

aiosmtplib is an asynchronous SMTP client for use with asyncio. Prior to 5.1.1, SMTP.mail(), SMTP.rcpt(), SMTP.vrfy(), and SMTP.expn() send caller-supplied addresses without rejecting embedded CR or LF bytes. Data after the line break is framed as additional standalone SMTP command lines, allowing an attacker who influences an envelope sender or recipient to inject commands such as MAIL FROM, RCPT TO, RSET, DATA, or AUTH. SMTP.sendmail() and SMTP.send() without a Message object pass addresses through the affected methods, while SMTP.send_message() is not affected. Successful injection can desynchronize the command-response pipeline, hang the SMTP instance, or send an arbitrary message without requiring attacker control of the SMTP server. This issue is fixed in version 5.1.1.

Products
aiosmtplib
Affected versions
2.0.0-1, 3.0.1-1, 3.0.2-1, 3.0.2-2, 4.0.0-1, 4.0.1-1, 4.0.1-1~exp1, 4.0.2-1, 5.0.0-1, 5.1.0-1, 5.1.0-2, 5.1.0-3, 5.1.2-1, 5.1.3-1
Fixed versions
5.1.2-1
CVEs
CVE-2026-53533
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 23:02 UTC · Revision 1

Source evidence

DEBIAN-CVE-2026-53533

core-osv · Original source

Published 18 Aug 2026, 18:18 UTC

aiosmtplib is an asynchronous SMTP client for use with asyncio. Prior to 5.1.1, SMTP.mail(), SMTP.rcpt(), SMTP.vrfy(), and SMTP.expn() send caller-supplied addresses without rejecting embedded CR or LF bytes. Data after the line break is framed as additional standalone SMTP command lines, allowing an attacker who influences an envelope sender or recipient to inject commands such as MAIL FROM, RCPT TO, RSET, DATA, or AUTH. SMTP.sendmail() and SMTP.send() without a Message object pass addresses through the affected methods, while SMTP.send_message() is not affected. Successful injection can desynchronize the command-response pipeline, hang the SMTP instance, or send an arbitrary message without requiring attacker control of the SMTP server. This issue is fixed in version 5.1.1.

osv:DEBIAN-CVE-2026-53533

aiosmtplib

Fixed versions: Not specified

aiosmtplib

Fixed versions: Not specified

aiosmtplib

Fixed versions: 5.1.2-1

Complete source record
{
  "id": "ac074453dac3bb3fab471f114fe46a6f2dfcf4c2a6156a66271ae1bbbe415f89",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2026-53533",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-CVE-2026-53533",
    "summary": "aiosmtplib is an asynchronous SMTP client for use with asyncio. Prior to 5.1.1, SMTP.mail(), SMTP.rcpt(), SMTP.vrfy(), and SMTP.expn() send caller-supplied addresses without rejecting embedded CR or LF bytes. Data after the line break is framed as additional standalone SMTP command lines, allowing an attacker who influences an envelope sender or recipient to inject commands such as MAIL FROM, RCPT TO, RSET, DATA, or AUTH. SMTP.sendmail() and SMTP.send() without a Message object pass addresses through the affected methods, while SMTP.send_message() is not affected. Successful injection can desynchronize the command-response pipeline, hang the SMTP instance, or send an arbitrary message without requiring attacker control of the SMTP server. This issue is fixed in version 5.1.1.",
    "evidence": "osv:DEBIAN-CVE-2026-53533",
    "products": [
      {
        "name": {
          "value": "aiosmtplib",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.0.0-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.0.1-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.0.2-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.0.2-2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "4.0.0-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "4.0.1-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "4.0.1-1~exp1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "4.0.2-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "5.0.0-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "5.1.0-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "5.1.0-2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "5.1.0-3",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "5.1.2-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "5.1.3-1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "aiosmtplib",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "4.0.0-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "4.0.1-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "4.0.1-1~exp1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "4.0.2-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "5.0.0-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "5.1.0-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "5.1.0-2",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "5.1.0-3",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "5.1.2-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "5.1.3-1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "aiosmtplib",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.1.2-1",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "4.0.0-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "4.0.1-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "4.0.1-1~exp1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "4.0.2-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "5.0.0-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "5.1.0-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "5.1.0-2",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "5.1.0-3",
            "evidence": "/affected/2/versions"
          }
        ]
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "DEBIAN-CVE-2026-53533",
      "aliases": [
        "DEBIAN-CVE-2026-53533"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:H/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "aiosmtplib",
            "purl": "pkg:deb/debian/aiosmtplib?arch=source&distro=bookworm",
            "ecosystem": "Debian:12"
          },
          "versions": [
            "2.0.0-1",
            "3.0.1-1",
            "3.0.2-1",
            "3.0.2-2",
            "4.0.0-1",
            "4.0.1-1",
            "4.0.1-1~exp1",
            "4.0.2-1",
            "5.0.0-1",
            "5.1.0-1",
            "5.1.0-2",
            "5.1.0-3",
            "5.1.2-1",
            "5.1.3-1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-53533.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "aiosmtplib",
            "purl": "pkg:deb/debian/aiosmtplib?arch=source&distro=trixie",
            "ecosystem": "Debian:13"
          },
          "versions": [
            "4.0.0-1",
            "4.0.1-1",
            "4.0.1-1~exp1",
            "4.0.2-1",
            "5.0.0-1",
            "5.1.0-1",
            "5.1.0-2",
            "5.1.0-3",
            "5.1.2-1",
            "5.1.3-1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-53533.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "5.1.2-1"
                }
              ]
            }
          ],
          "package": {
            "name": "aiosmtplib",
            "purl": "pkg:deb/debian/aiosmtplib?arch=source&distro=forky",
            "ecosystem": "Debian:14"
          },
          "versions": [
            "4.0.0-1",
            "4.0.1-1",
            "4.0.1-1~exp1",
            "4.0.2-1",
            "5.0.0-1",
            "5.1.0-1",
            "5.1.0-2",
            "5.1.0-3"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-53533.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        }
      ],
      "modified": "2026-10-23T17:47:32.995035658Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-53533"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2026-53533"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-53533",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 417562,
  "published_at": "2026-08-18T18:18:20.513+00:00"
}