CVE-2023-36632
NixOS vulnerability analysis and mitigation

Overview

The legacy email.utils.parseaddr function in Python through version 3.11.4 contains a vulnerability that allows attackers to trigger a 'RecursionError: maximum recursion depth exceeded while calling a Python object' via a crafted argument. This vulnerability (CVE-2023-36632) was discovered in June 2023 and affects applications that process untrusted input data intended to contain names and email addresses. Notably, email.utils.parseaddr is categorized as a Legacy API in Python's email package documentation (Python Docs).

Technical details

The vulnerability occurs in the email.utils.parseaddr function's parsing mechanism when processing specially crafted input strings. When the function encounters certain malformed inputs, it enters a recursive loop that eventually exceeds Python's maximum recursion depth. The vulnerability has been assigned a CVSS 3.1 Base Score of 3.5 (Low) with the vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:L (NVD).

Impact

The successful exploitation of this vulnerability results in a partial denial of service condition for the affected application. When triggered, the application will raise a RecursionError, potentially disrupting the processing of email addresses and related functionality (NVD).

Mitigation and workarounds

Applications should use the email.parser.BytesParser or email.parser.Parser class instead of the legacy email.utils.parseaddr function. The vendor has noted that this is neither a vulnerability nor a bug, as the email package is intended to have size limits and throw exceptions when limits are exceeded (NVD).

Additional resources


SourceThis report was generated using AI

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