CVE-2023-27043
NixOS vulnerability analysis and mitigation

Overview

CVE-2023-27043 affects the email module in Python versions through 2.7.18 and 3.0 through 3.11.3. The vulnerability was discovered on March 24, 2023, and publicly disclosed on April 19, 2023. The vulnerability exists in the email/_parseaddr.py component where the module incorrectly parses email addresses containing special characters, leading to incorrect identification of the addr-spec value in RFC2822 headers (Python Security, NVD).

Technical details

The vulnerability occurs in the email module's parsing functionality where it incorrectly handles email addresses containing special characters. When parsing RFC2822 headers, the wrong portion is identified as the value of the addr-spec. The issue specifically affects the getaddresses and parseaddr functions from the email.utils module. The vulnerability has been assigned a CVSS v3.1 base score of 5.3 (Medium) with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N (NVD).

Impact

The vulnerability can be exploited to bypass protection mechanisms that rely on email address verification. In applications where access is granted only after verifying receipt of email to a specific domain (e.g., only @company.example.com addresses may be used for signup), an attacker could bypass these restrictions. This could allow attackers to send messages from email addresses that would otherwise be rejected (NVD, GitHub Issue).

Mitigation and workarounds

The issue has been addressed in various Python versions through security updates. For systems that cannot immediately update, two mitigation methods are available: 1) Setting the PYTHONEMAILDISABLESTRICTADDR_PARSING environment variable to control parsing behavior, and 2) Using a configuration file at /etc/python/email.cfg to manage parsing behavior. The fixed versions include patches that implement stricter parsing of email addresses (Red Hat).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-14330CRITICAL9.8
  • NixOSNixOS
  • cpe:2.3:a:mozilla:firefox
NoYesDec 09, 2025
CVE-2025-14329HIGH8.8
  • NixOSNixOS
  • firefox-x11
NoYesDec 09, 2025
CVE-2025-14333HIGH8.1
  • NixOSNixOS
  • firefox-x11
NoYesDec 09, 2025
CVE-2025-14332HIGH7.3
  • NixOSNixOS
  • cpe:2.3:a:mozilla:firefox
NoYesDec 09, 2025
CVE-2025-14331MEDIUM6.5
  • NixOSNixOS
  • firefox
NoYesDec 09, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management