CVE-2021-32837mechanize vulnerable to ReDoS
- 7.5HighCVSS base score
- 28.7%Exploitation in 30 daysEPSS · top 1.8% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- YesPublic exploitsa reference or SSVC says so
Description
mechanize, a library for automatically interacting with HTTP web servers, contains a regular expression that is vulnerable to regular expression denial of service (ReDoS) prior to version 0.4.6. If a web server responds in a malicious way, then mechanize could crash. Version 0.4.6 has a patch for the issue.
Public exploit
An exploit or proof of concept is public: anyone can try it against an unpatched system. CISA's SSVC rates its exploitation: a proof of concept is public.
Timeline
ID reserved
By GitHub_M
- 21 months later
· 21 months later
Published
- 3 years later
· 3 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GitHub_MCNA (assigner) | 3.1 | High7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVDNVD · Modified | 3.1 | High7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
- EPSS (exploitation in 30 days)
- 28.7% · top 1.8% of all CVEs (17 Nov 2026)
- CISA SSVC
- Exploitation: poc · Automatable: yes · Technical impact: partial
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.5.
Affected products
- affected 0.4.6 – < 0.4.6
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- PyPImechanizeGHSA-g3pv-pj5f-3hfq (opens in a new tab)
References
References6
- https://securitylab.github.com/advisories/GHSL-2021-108-python-mechanize-mechanize/ (opens in a new tab)x_transferred
- https://github.com/python-mechanize/mechanize/blob/3acb1836f3fd8edc5a758a417dd46b53832ae3b5/mechanize/_urllib2_fork.py#L878-L879 (opens in a new tab)x_transferred
- https://github.com/python-mechanize/mechanize/releases/tag/v0.4.6 (opens in a new tab)x_transferred
- https://github.com/python-mechanize/mechanize/commit/dd05334448e9f39814bab044d2eaa5ef69b410d6 (opens in a new tab)x_transferred
- [debian-lts-announce] 20230620 [SECURITY] [DLA 3460-1] python-mechanize security update (opens in a new tab)mailing-listx_transferred
- https://lists.debian.org/debian-lts-announce/2025/12/msg00028.html (opens in a new tab)
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2023-0144 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-g3pv-pj5f-3hfq (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2021-32837)Record last updated .