CVE-2024-34083 STARTTLS unencrypted commands injection

Medium 5.4 Published Updated

Attackers can inject unencrypted commands after STARTTLS in aiosmtpd, bypassing encryption protections via man-in-the-middle attacks.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2024-34083?

CVE-2024-34083 is a medium-severity vulnerability in aio-libs aiosmtpd, published on 18 May 2024. It can only be exploited from the same machine or local network, with no action from the victim.

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.

Weakness: CWE-349

Which versions are affected by CVE-2024-34083?

3 open source packages ship an affected version, including aiosmtpd.

PackageAffectedFixed in
aiosmtpd PyPIAll versions1.4.6
aiosmtpd PyPIAll versions1.4.6
aiosmtpd PyPIAll versions1.4.6

How do I fix CVE-2024-34083?

Upgrade aiosmtpd to 1.4.6 or later.

Is CVE-2024-34083 being exploited?

There is no known exploitation of CVE-2024-34083 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2024-34083, GHSA-wgjv-9j3q-jhg8, OESA-2024-1695, OESA-2024-1696, PYSEC-2026-1111, UBUNTU-CVE-2024-34083 and 1 more.

Is CVE-2024-34083 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free