CVE
CVE-2023-27043
CNA description
The email module of Python through 3.11.3 incorrectly parses e-mail addresses that contain a special character. The wrong portion of an RFC2822 header is identified as the value of the addr-spec. In some applications, an attacker can bypass a protection mechanism in which application access is granted only after verifying receipt of e-mail to a specific domain (e.g., only @company.example.com addresses may be used for signup). This occurs in email/_parseaddr.py in recent versions of Python.
Affected versions
All Python (CPython) vulnerabilities →
- ≥ 3.12.0, < 3.12.6Fixed in 3.12.6
- ≥ 3.11.0, < 3.11.10Fixed in 3.11.10
- ≥ 3.10.0, < 3.10.15Fixed in 3.10.15
- ≥ 3.9.0, < 3.9.20Fixed in 3.9.20
- ≥ 3.0, < 3.8.20Fixed in 3.8.20
- ≤ 2.7.18Affected up to 2.7.18 — see vendor advisory
Distribution packages (Debian, Ubuntu, Red Hat…) backport fixes without changing the upstream version: check your distribution’s advisory as well.
Data: NVD (public domain), CISA KEV (CC0), FIRST EPSS, OSV.dev / GitHub Advisory Database (CC-BY 4.0) · This database lists affected versions and fixes only. It never hosts or links exploit code.