Vulnerability · Published May 18, 2024 · Assigned by GitHub_M
CVE-2024-34083STARTTLS unencrypted commands injection
Medium 5.4
In plain English
A medium-severity security flaw in aiosmtpd from aio-libs. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 14% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
aiosmptd is a reimplementation of the Python stdlib smtpd.py based on asyncio. Prior to version 1.4.6, 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 man-in-the-middle attack. Version 1.4.6 contains a patch for the issue.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | python-aiosmtpd | 1.4.3-1.1+deb12u1 | DEBIAN-CVE-2024-34083 |
| Debian:13 | python-aiosmtpd | 1.4.6-1 | DEBIAN-CVE-2024-34083 |
| Debian:14 | python-aiosmtpd | 1.4.6-1 | DEBIAN-CVE-2024-34083 |
| PyPI | aiosmtpd | 1.4.6 | GHSA-wgjv-9j3q-jhg8 |
| PyPI | aiosmtpd | 1.4.6 | PYSEC-2026-1111 |
| Ubuntu:22.04:LTS | python-aiosmtpd | no fix listed | UBUNTU-CVE-2024-34083 |
| Ubuntu:24.04:LTS | python-aiosmtpd | no fix listed | UBUNTU-CVE-2024-34083 |
| Ubuntu:25.10 | python-aiosmtpd | no fix listed | UBUNTU-CVE-2024-34083 |
| Ubuntu:26.04:LTS | python-aiosmtpd | no fix listed | UBUNTU-CVE-2024-34083 |
| Ubuntu:26.10 | python-aiosmtpd | no fix listed | UBUNTU-CVE-2024-34083 |
Affected products (as reported)
Weakness: CWE-349 · Vector: CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
References
- https://github.com/aio-libs/aiosmtpd/security/advisories/GHSA-wgjv-9j3q-jhg8 x_refsource_CONFIRM
- https://github.com/aio-libs/aiosmtpd/commit/b3a4a2c6ecfd228856a20d637dc383541fcdbfda x_refsource_MISC
- https://nostarttls.secvuln.info x_refsource_MISC