PT-2023-4570 · Python+1 · Python+1

Baltsers

·

Published

2023-06-25

·

Updated

2025-08-11

·

CVE-2023-36632

CVSS v2.0

7.8

High

VectorAV:N/AC:L/Au:N/C:N/I:N/A:C
Name of the Vulnerable Software and Affected Versions Python versions through 3.11.4
Description The legacy email.utils.parseaddr function in Python allows attackers to trigger a "RecursionError: maximum recursion depth exceeded while calling a Python object" via a crafted argument. This argument is plausibly an untrusted value from an application's input data that was supposed to contain a name and an e-mail address. The email package is intended to have size limits and to throw an exception when limits are exceeded. Applications should instead use the email.parser.BytesParser or email.parser.Parser class.
Recommendations For Python versions through 3.11.4, consider using the email.parser.BytesParser or email.parser.Parser class instead of the legacy email.utils.parseaddr function to mitigate the risk of exploitation. As a temporary workaround, consider restricting the input data to prevent crafted arguments from triggering the RecursionError. At the moment, there is no information about a newer version that contains a fix for this vulnerability.

Exploit

Uncontrolled Recursion

Weakness Enumeration

Related Identifiers

ALT-PU-2023-6199
BDU:2023-04977
BIT-LIBPYTHON-2023-36632
BIT-PYTHON-2023-36632
BIT-PYTHON-MIN-2023-36632
CVE-2023-36632
ECHO-F330-0E36-0681
PSF-2023-4

Affected Products

Alt Linux
Python