CVE-2023-36632: Python email.utils.parseaddr - Denial of Service
- Cve: CVE-2023-36632
- Name: Python email.utils.parseaddr - Denial of Service
- Description: The legacy email.utils.parseaddr function in Python through 3.11.4 allows attackers to trigger "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. NOTE: email.utils.parseaddr is categorized as a Legacy API in the documentation of the Python email package. Applications should instead use the email.parser.BytesParser or email.parser.Parser class. NOTE: the vendor's perspective is that this is neither a vulnerability nor a bug. The email package is intended to have size limits and to throw an exception when limits are exceeded; they were exceeded by the example demonstration code.
- Impact: Attackers can cause application crash or denial of service by triggering maximum recursion depth exceeded error.
- Remediation: Use email.parser.BytesParser or email.parser.Parser instead of parseaddr, and validate input data to prevent crafted inputs.
- Vulnerability impact: denial_of_service
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.5
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Epss score: 0.01584
- Epss percentile: 0.76211
- Assignee: [email protected]
- Published at: 2023-06-25T18:15:09Z
- Age in days: 1248
- Modified at: 2026-06-17T06:06:42Z
- Public exploits total: 1
- References total: 4
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2023-36632
- Nvd status: modified
- Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: vulnerability type, requirements
Cwe
| Id | Name |
|---|---|
| CWE-674 | Uncontrolled Recursion |
Hackerone
- Reports: 1
- Rank: 5211
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/python/cpython/issues/103800 | nvd | 2023-06-25 |
References
Same in every row:
- Source: nvd
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| python:python | <= 3.11.4 | no | nvd | /v1/products/python/python |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| python/cpython | issues | yes | /v1/repositories/python/cpython |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2023-06-25
- Remote: yes
- Hackerone reports: 1
- Exposed hosts: 5115604
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since