Original 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 software
- Python ≥ 3.0 < 3.8.20≥ 3.9.0 < 3.9.20≥ 3.11.0 < 3.11.10≥ 3.10.0 < 3.10.15≤ 2.7.18≥ 3.12.0 < 3.12.6 Fixed in: 3.8.20, 3.9.20, 3.11.10, 3.10.15 exact match
Details
- Published
- 2023-04-18
- Last modified
- 2026-05-12
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N- EPSS (30-day exploit probability)
- 2.53% (percentile 85)
References
- cve.org/CVE-2023-27043
- nvd.nist.gov/vuln/detail/CVE-2023-27043
- github.com/python/cpython/issues/102988
- python.org
- python-security.readthedocs.io/vuln/email-parseaddr-realname.html
- security.netapp.com/advisory/ntap-20230601-0003/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/O...
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/P...
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/P...
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/X...
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4...
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/S...
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/V...
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/R...
Track these versions on your own servers
InfraGuard collects installed software versions from every server and flags the ones with known vulnerabilities. Self-hosted — nothing leaves your network.
This product uses data from the NVD API but is not endorsed or certified by the NVD. CVE® is a registered trademark of The MITRE Corporation; CVE records are used under the CVE Program Terms of Use.