Skip to content
Heist/ feed
Back to feed
Medium

python-aiosmtpd — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2024-27305

aiosmtpd is a reimplementation of the Python stdlib smtpd.py based on asyncio. aiosmtpd is vulnerable to inbound SMTP smuggling. SMTP smuggling is a novel vulnerability based on not so novel interpretation differences of the SMTP protocol. By exploiting SMTP smuggling, an attacker may send smuggle/spoof e-mails with fake sender addresses, allowing advanced phishing attacks. This issue is also existed in other SMTP software like Postfix. With the right SMTP server constellation, an attacker can send spoofed e-mails to inbound/receiving aiosmtpd instances. This issue has been addressed in version 1.4.5. Users are advised to upgrade. There are no known workarounds for this vulnerability.

Products
python-aiosmtpd
Affected versions
1.1-3, 1.1-4, 1.1-5, 1.2-3, 1.2.2-1, 1.4.2-3, 1.4.3-1.1, 1.4.4.post2-1, 1.4.6-5, 1.4.6-6, 1.4.6-7
Fixed versions
Not specified
CVEs
CVE-2024-27305
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 01:12 UTC · Revision 1

Source evidence

UBUNTU-CVE-2024-27305

core-osv · Original source

Published 12 Mar 2024, 21:15 UTC

aiosmtpd is a reimplementation of the Python stdlib smtpd.py based on asyncio. aiosmtpd is vulnerable to inbound SMTP smuggling. SMTP smuggling is a novel vulnerability based on not so novel interpretation differences of the SMTP protocol. By exploiting SMTP smuggling, an attacker may send smuggle/spoof e-mails with fake sender addresses, allowing advanced phishing attacks. This issue is also existed in other SMTP software like Postfix. With the right SMTP server constellation, an attacker can send spoofed e-mails to inbound/receiving aiosmtpd instances. This issue has been addressed in version 1.4.5. Users are advised to upgrade. There are no known workarounds for this vulnerability.

osv:UBUNTU-CVE-2024-27305

python-aiosmtpd

Fixed versions: Not specified

python-aiosmtpd

Fixed versions: Not specified

python-aiosmtpd

Fixed versions: Not specified

python-aiosmtpd

Fixed versions: Not specified

python-aiosmtpd

Fixed versions: Not specified

python-aiosmtpd

Fixed versions: Not specified

python-aiosmtpd

Fixed versions: Not specified

Complete source record
{
  "id": "785d8d93e2cc2409285b7b3bcc3f35026f8e5c3c06ca3a71370f0e56f24d2c0e",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2024-27305",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2024-27305",
    "summary": "aiosmtpd is a reimplementation of the Python stdlib smtpd.py based on asyncio. aiosmtpd is vulnerable to inbound SMTP smuggling. SMTP smuggling is a novel vulnerability based on not so novel interpretation differences of the SMTP protocol. By exploiting SMTP smuggling, an attacker may send smuggle/spoof e-mails with fake sender addresses, allowing advanced phishing attacks. This issue is also existed in other SMTP software like Postfix. With the right SMTP server constellation, an attacker can send spoofed e-mails to inbound/receiving aiosmtpd instances. This issue has been addressed in version 1.4.5. Users are advised to upgrade. There are no known workarounds for this vulnerability.",
    "evidence": "osv:UBUNTU-CVE-2024-27305",
    "products": [
      {
        "name": {
          "value": "python-aiosmtpd",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.1-3",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.1-4",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.1-5",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "python-aiosmtpd",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.2-3",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "python-aiosmtpd",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.2.2-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1.4.2-3",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "python-aiosmtpd",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.4.3-1.1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "1.4.4.post2-1",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "python-aiosmtpd",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.4.6-5",
            "evidence": "/affected/4/versions"
          }
        ]
      },
      {
        "name": {
          "value": "python-aiosmtpd",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.4.6-6",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "1.4.6-7",
            "evidence": "/affected/5/versions"
          }
        ]
      },
      {
        "name": {
          "value": "python-aiosmtpd",
          "evidence": "/affected/6/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.4.6-5",
            "evidence": "/affected/6/versions"
          },
          {
            "value": "1.4.6-6",
            "evidence": "/affected/6/versions"
          }
        ]
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "UBUNTU-CVE-2024-27305",
      "aliases": [
        "UBUNTU-CVE-2024-27305"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N"
        },
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "python-aiosmtpd",
            "purl": "pkg:deb/ubuntu/python-aiosmtpd?arch=source&distro=bionic",
            "ecosystem": "Ubuntu:18.04:LTS"
          },
          "versions": [
            "1.1-3",
            "1.1-4",
            "1.1-5"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-27305.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-aiosmtpd",
                "binary_version": "1.1-5"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "python-aiosmtpd",
            "purl": "pkg:deb/ubuntu/python-aiosmtpd?arch=source&distro=focal",
            "ecosystem": "Ubuntu:20.04:LTS"
          },
          "versions": [
            "1.2-3"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-27305.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-aiosmtpd",
                "binary_version": "1.2-3"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "python-aiosmtpd",
            "purl": "pkg:deb/ubuntu/python-aiosmtpd?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "1.2.2-1",
            "1.4.2-3"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-27305.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-aiosmtpd",
                "binary_version": "1.4.2-3"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "python-aiosmtpd",
            "purl": "pkg:deb/ubuntu/python-aiosmtpd?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "1.4.3-1.1",
            "1.4.4.post2-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-27305.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-aiosmtpd",
                "binary_version": "1.4.4.post2-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "python-aiosmtpd",
            "purl": "pkg:deb/ubuntu/python-aiosmtpd?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "1.4.6-5"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-27305.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-aiosmtpd",
                "binary_version": "1.4.6-5"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "python-aiosmtpd",
            "purl": "pkg:deb/ubuntu/python-aiosmtpd?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "1.4.6-6",
            "1.4.6-7"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-27305.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-aiosmtpd",
                "binary_version": "1.4.6-7"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "python-aiosmtpd",
            "purl": "pkg:deb/ubuntu/python-aiosmtpd?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "1.4.6-5",
            "1.4.6-6"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-27305.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-aiosmtpd",
                "binary_version": "1.4.6-6"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:56:43.905626406Z",
      "provider": "osv",
      "upstream": [
        "CVE-2024-27305"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2024-27305",
        "https://github.com/aio-libs/aiosmtpd/security/advisories/GHSA-pr2m-px7j-xg65",
        "https://github.com/aio-libs/aiosmtpd/commit/24b6c79c8921cf1800e27ca144f4f37023982bbb",
        "https://www.postfix.org/smtp-smuggling.html",
        "https://www.cve.org/CVERecord?id=CVE-2024-27305"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2024-27305",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 356075,
  "published_at": "2024-03-12T21:15:00+00:00"
}