{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2021-32837","id":"CVE-2021-32837","title":"mechanize vulnerable to ReDoS","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.","descriptionLong":"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.","published":"2023-01-17T00:00:00.000Z","updated":"2026-10-24T10:51:25.107710590Z","reserved":"2021-05-12T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"GitHub_M"},"metrics":[{"version":"4.0","score":null,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","rating":"high","source":"GitHub"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"GitHub_M"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"github.com"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"NVD"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"OSV"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"GitHub"}],"rating":"high","products":["python-mechanize mechanize"],"affectedProducts":[{"vendor":"python-mechanize","product":"mechanize","defaultStatus":null,"versions":[{"version":"0.4.6","status":"affected","lessThan":"0.4.6","versionType":"custom"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"mechanize","purl":"pkg:pypi/mechanize","ranges":["<0.4.6"],"fixed":["0.4.6"],"advisory":"GHSA-g3pv-pj5f-3hfq"}],"cwes":["CWE-1333"],"aliases":["GHSA-g3pv-pj5f-3hfq","PYSEC-2023-25"],"references":[{"url":"https://securitylab.github.com/advisories/GHSL-2021-108-python-mechanize-mechanize/","tags":["x_transferred","Exploit","Third Party Advisory","evidence","advisory"]},{"url":"https://github.com/python-mechanize/mechanize/blob/3acb1836f3fd8edc5a758a417dd46b53832ae3b5/mechanize/_urllib2_fork.py#L878-L879","tags":["x_transferred","Exploit","Third Party Advisory","evidence","web"]},{"url":"https://github.com/python-mechanize/mechanize/releases/tag/v0.4.6","tags":["x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://github.com/python-mechanize/mechanize/commit/dd05334448e9f39814bab044d2eaa5ef69b410d6","tags":["x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/06/msg00022.html","tags":["mailing-list","x_transferred","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/12/msg00028.html","tags":["web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-32837","tags":["advisory"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/mechanize/PYSEC-2023-25.yaml","tags":["web"]},{"url":"https://github.com/python-mechanize/mechanize","tags":["package"]},{"url":"https://securitylab.github.com/advisories/GHSL-2021-108-python-mechanize-mechanize","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-g3pv-pj5f-3hfq","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial"},"epss":0.28661,"epssPercentile":0.98178,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2021-32837","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-32837","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2021-32837","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-g3pv-pj5f-3hfq","ok":true,"note":"GHSA-g3pv-pj5f-3hfq"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2021-32837","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":["EPSS 29% with CVSS 7.5"],"attention":null}