{"id":"CVE-2021-32837","published":"2023-01-17T00:00:00Z","modified":"2025-12-22T01:32:19Z","title":"mechanize vulnerable to ReDoS","vendor":"python-mechanize","product":"mechanize","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.28661,"percentile":0.98184,"provenance":"source"},"cwes":[{"id":"CWE-1333","name":"Inefficient Regular Expression Complexity"}],"references":[{"url":"https://securitylab.github.com/advisories/GHSL-2021-108-python-mechanize-mechanize/","tags":[]},{"url":"https://github.com/python-mechanize/mechanize/blob/3acb1836f3fd8edc5a758a417dd46b53832ae3b5/mechanize/_urllib2_fork.py#L878-L879","tags":[]},{"url":"https://github.com/python-mechanize/mechanize/releases/tag/v0.4.6","tags":[]},{"url":"https://github.com/python-mechanize/mechanize/commit/dd05334448e9f39814bab044d2eaa5ef69b410d6","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2023/06/msg00022.html","tags":["mailing-list"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/12/msg00028.html","tags":[]}],"priority":{"score":24.9,"factors":[{"name":"EPSS percentile","points":19.64},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"python-mechanize","affectedVersions":[{"vendor":"python-mechanize","product":"mechanize","versions":[">= 0.4.6, < 0.4.6"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2025-03-10T21:02:11.874134Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"mechanize","vulnerableRanges":["<0.4.6"],"patched":["0.4.6"],"from":["GHSA-g3pv-pj5f-3hfq","PYSEC-2023-25"],"provenance":"source"}],"summary":{"text":"The mechanize library (product mechanize, from python-mechanize) contains a regular expression that is vulnerable to ReDoS, affecting versions prior to 0.4.6. An attacker who controls the response from a web server that mechanize is interacting with can send a malicious response that crashes the client, requiring only network access with no authentication, no user interaction, and no special configuration.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:35:45Z"},"euvd":{"id":"EUVD-2023-0144","exploited":false,"provenance":"source"}}