CVE-2023-27043: The email module of Python through 3.11.3 incorrectly parses e-mail addresses that contain a special character.
CVE-2023-27043 affects 178 listed versions of Python in the Dawnsentry catalogue.
Affected products and versions
The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.
Python
178 of 250 listed versions are affected. Fixed in 3.12.6, 3.11.10, 3.10.15, 3.9.20, 3.8.20. The newest release, 3.15.2, is not affected.
3.12.5 3.12.4 3.12.3 3.12.2 3.11.9 3.11.8 3.11.7 3.11.6 3.11.5 3.11.4 3.10.14 3.10.13 3.10.12 3.10.11 3.10.10 3.10.9 3.10.8 3.9.19 3.9.18 3.9.17 3.9.16 3.9.15 3.9.14 3.9.13 3.9.12 3.9.11 3.8.19 3.8.18 3.8.17 3.8.16 3.8.15 3.8.14 3.8.13 3.8.12 3.8.11 3.8.10 3.8.9 3.8.8 3.8.7 3.8.6 3.7.17 3.7.16 3.7.15 3.7.14 3.7.13 3.7.12 3.7.11 3.7.10 3.7.9 3.7.8 3.7.7 3.7.6 3.7.5 3.7.4 3.7.3 3.6.16 3.6.15 3.6.14 3.6.13 3.6.12 and 118 more
What it is
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.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N (NVD)
Published by MITRE on 19 April 2023. Last changed 17 June 2026.
Sources
Check one version you run: look CVE-2023-27043 up, or pick a product and version in the quick lookup.
Updated 2 December 2026.