Vulnerabilities in pkg:pypi/aiosmtpd

PACKAGE
Advisory Identifier: GHSA-wgjv-9j3q-jhg8
Advisory Summary

CVE-2024-34083 is a MODERATE (CVSS 5.4) aiosmtpd starttls unencrypted commands injection vulnerability (CWE-349: Acceptance of Extraneous Untrusted Data With Trusted Data) affecting Aiosmtpd libraries in the PyPI ecosystem. The issue involves aiosmtpd starttls unencrypted commands injection. Remediation is available by upgrading affected packages to version 1.4.6.

2 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/aiosmtpd

2 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:pypi/aiosmtpd. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-wgjv-9j3q-jhg8 CVE-2024-34083 MODERATE aiosmtpd STARTTLS unencrypted commands injection
GHSA-pr2m-px7j-xg65 CVE-2024-27305 MODERATE aiosmtpd vulnerable to SMTP smuggling

CVE-2024-34083 at a Glance

CVE Identifier CVE-2024-34083
GHSA Identifier GHSA-wgjv-9j3q-jhg8
Severity MODERATE
CVSS v3.1 Base Score 5.4
CWE Classification CWE-349: Acceptance of Extraneous Untrusted Data With Trusted Data
Affected Product Aiosmtpd
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 5.4

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N).

Attack Vector Adjacent (AV:A)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2024-34083

To remediate this vulnerability, upgrade all affected Aiosmtpd dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

aiosmtpd fixed: 1.4.6
pip install aiosmtpd>=1.4.6
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show aiosmtpd

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2024-34083, inspect your installed packages using pip:

pip show aiosmtpd

Analyze the terminal output to locate any version of Aiosmtpd in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.4.6), your application is affected.

Note: The pip show aiosmtpd command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-349: Acceptance of Extraneous Untrusted Data With Trusted Data, where the product, when processing trusted data, accepts any untrusted data that is also included with the trusted data, treating the untrusted data as if it were trusted. In Aiosmtpd, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Summary Servers based on aiosmtpd accept extra unencrypted commands after STARTTLS, treating them as if they came from inside the encrypted connection. This could be exploited by a MitM attack. ### References * [NO STARTTLS: Similar vulnerabilities discovered by previous researchers.](https://nostarttls.secvuln.info/)

CVE-2024-34083 Affected Aiosmtpd Versions

1 component(s)
Fixed Versions:
1.4.6
Product / Package Ecosystem Affected Versions Fixed Version
aiosmtpd
PyPI
< 1.4.6
1.4.6

References

Frequently Asked Questions

What is CVE-2024-34083?
CVE-2024-34083 is a security vulnerability in Aiosmtpd involving aiosmtpd STARTTLS unencrypted commands injection under CWE-349: Acceptance of Extraneous Untrusted Data With Trusted Data.
Which Aiosmtpd versions are affected?
Affected versions include releases prior to 1.4.6 across affected packages: aiosmtpd.
What version fixes CVE-2024-34083?
Upgrading to 1.4.6 (or the latest patched release for your respective branch) resolves the vulnerability.
Is aiosmtpd affected?
Yes, aiosmtpd is affected in releases prior to 1.4.6. Upgrade your dependency to 1.4.6 or later.
What is the CVSS score of CVE-2024-34083?
CVE-2024-34083 has a CVSS v3.1 base score of 5.4 (MODERATE) with vector string CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N.
What CWE is associated with CVE-2024-34083?
CVE-2024-34083 is classified under CWE-349: Acceptance of Extraneous Untrusted Data With Trusted Data (The product, when processing trusted data, accepts any untrusted data that is also included with the trusted data, treating the untrusted data as if it were trusted.).
How can I check PyPI dependencies for CVE-2024-34083?
Run the dependency tree command: 'pip show aiosmtpd'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-wgjv-9j3q-jhg8",
  "modified" : "2026-06-10T13:41:53Z",
  "published" : "2024-05-20T14:59:07Z",
  "aliases" : [ "CVE-2024-34083" ],
  "summary" : "aiosmtpd STARTTLS unencrypted commands injection",
  "details" : "### Summary\nServers based on aiosmtpd accept extra unencrypted commands after STARTTLS, treating them as if they came from inside the encrypted connection. This could be exploited by a MitM attack.\n\n### References\n* [NO STARTTLS: Similar vulnerabilities discovered by previous researchers.](https://nostarttls.secvuln.info/)",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "aiosmtpd"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.4.6"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/aio-libs/aiosmtpd/security/advisories/GHSA-wgjv-9j3q-jhg8"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-34083"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/aio-libs/aiosmtpd/commit/b3a4a2c6ecfd228856a20d637dc383541fcdbfda"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/aio-libs/aiosmtpd"
  }, {
    "type" : "WEB",
    "url" : "https://nostarttls.secvuln.info"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-349" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-05-20T14:59:07Z",
    "nvd_published_at" : "2024-05-18T19:15:49Z"
  }
}