Vulnerabilities in pkg:pypi/aiosmtpd
PACKAGECVE-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.
pkg:pypi/aiosmtpd
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
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).
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.
pip install aiosmtpd>=1.4.6
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
CVE-2024-34083 Affected Aiosmtpd Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
aiosmtpd
|
PyPI |
< 1.4.6
|
1.4.6
|
References
Frequently Asked Questions
What is CVE-2024-34083?
Which Aiosmtpd versions are affected?
What version fixes CVE-2024-34083?
Is aiosmtpd affected?
What is the CVSS score of CVE-2024-34083?
What CWE is associated with CVE-2024-34083?
How can I check PyPI dependencies for CVE-2024-34083?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}