{"id":"CVE-2021-32837","state":"PUBLISHED","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.","publishedAt":"2023-01-17T00:00:00.000Z","updatedAt":"2025-12-22T01:32:19.985Z","severity":{"score":7.5,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"GitHub_M"},"assigner":"GitHub_M","products":["python-mechanize mechanize"],"affected":[{"vendor":"python-mechanize","product":"mechanize","versions":[{"version":"0.4.6","status":"affected","lessThan":"0.4.6","versionType":"custom"}]}],"references":["https://securitylab.github.com/advisories/GHSL-2021-108-python-mechanize-mechanize/","https://github.com/python-mechanize/mechanize/blob/3acb1836f3fd8edc5a758a417dd46b53832ae3b5/mechanize/_urllib2_fork.py#L878-L879","https://github.com/python-mechanize/mechanize/releases/tag/v0.4.6","https://github.com/python-mechanize/mechanize/commit/dd05334448e9f39814bab044d2eaa5ef69b410d6","https://lists.debian.org/debian-lts-announce/2023/06/msg00022.html","https://lists.debian.org/debian-lts-announce/2025/12/msg00028.html"],"weaknesses":["CWE-1333"],"ingestedAt":"2026-10-29T19:48:33.225Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2021/32xxx/CVE-2021-32837.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2021-32837","state":"PUBLISHED","datePublished":"2023-01-17T00:00:00.000Z","dateUpdated":"2025-12-22T01:32:19.985Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2021-05-12T00:00:00.000Z"},"containers":{"cna":{"title":"mechanize vulnerable to ReDoS","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"python-mechanize","product":"mechanize","versions":[{"version":"0.4.6","status":"affected","lessThan":"0.4.6","versionType":"custom"}]}],"references":[{"url":"https://securitylab.github.com/advisories/GHSL-2021-108-python-mechanize-mechanize/"},{"url":"https://github.com/python-mechanize/mechanize/blob/3acb1836f3fd8edc5a758a417dd46b53832ae3b5/mechanize/_urllib2_fork.py#L878-L879"},{"url":"https://github.com/python-mechanize/mechanize/releases/tag/v0.4.6"},{"url":"https://github.com/python-mechanize/mechanize/commit/dd05334448e9f39814bab044d2eaa5ef69b410d6"},{"url":"https://lists.debian.org/debian-lts-announce/2023/06/msg00022.html","name":"[debian-lts-announce] 20230620 [SECURITY] [DLA 3460-1] python-mechanize security update","tags":["mailing-list"]}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"HIGH","baseScore":7.5,"baseSeverity":"HIGH"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-1333","type":"CWE","lang":"en","description":"CWE-1333 Inefficient Regular Expression Complexity"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2023-06-20T00:00:00.000Z"},"x_generator":{"engine":"Vulnogram 0.0.9"},"source":{"defect":["GHSL-2021-108"],"advisory":"GHSL-2021-108","discovery":"UNKNOWN"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://securitylab.github.com/advisories/GHSL-2021-108-python-mechanize-mechanize/","tags":["x_transferred"]},{"url":"https://github.com/python-mechanize/mechanize/blob/3acb1836f3fd8edc5a758a417dd46b53832ae3b5/mechanize/_urllib2_fork.py#L878-L879","tags":["x_transferred"]},{"url":"https://github.com/python-mechanize/mechanize/releases/tag/v0.4.6","tags":["x_transferred"]},{"url":"https://github.com/python-mechanize/mechanize/commit/dd05334448e9f39814bab044d2eaa5ef69b410d6","tags":["x_transferred"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/06/msg00022.html","name":"[debian-lts-announce] 20230620 [SECURITY] [DLA 3460-1] python-mechanize security update","tags":["mailing-list","x_transferred"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/12/msg00028.html"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2025-12-22T01:32:19.985Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-03-10T21:02:11.874134Z","id":"CVE-2021-32837","options":[{"Exploitation":"poc"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-03-10T21:22:55.702Z"}}]}}}