{"api_version":"1","generated_at":"2026-07-24T17:33:16+00:00","cve":"CVE-2021-32837","urls":{"html":"https://cve.report/CVE-2021-32837","api":"https://cve.report/api/cve/CVE-2021-32837.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-32837","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-32837"},"summary":{"title":"CVE-2021-32837","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.","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2023-01-17 22:15:00","updated_at":"2023-06-20 17:15:00"},"problem_types":["CWE-1333"],"metrics":[],"references":[{"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","refsource":"MLIST","tags":[],"title":"[SECURITY] [DLA 3460-1] python-mechanize security update","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://securitylab.github.com/advisories/GHSL-2021-108-python-mechanize-mechanize/","name":"https://securitylab.github.com/advisories/GHSL-2021-108-python-mechanize-mechanize/","refsource":"CONFIRM","tags":[],"title":"GHSL-2021-108: ReDoS (Regular Expression Denial of Service) in mechanize - CVE-2021-32837 | GitHub Security Lab","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/python-mechanize/mechanize/releases/tag/v0.4.6","name":"https://github.com/python-mechanize/mechanize/releases/tag/v0.4.6","refsource":"MISC","tags":[],"title":"Release v0.4.6 · python-mechanize/mechanize · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/python-mechanize/mechanize/blob/3acb1836f3fd8edc5a758a417dd46b53832ae3b5/mechanize/_urllib2_fork.py#L878-L879","name":"https://github.com/python-mechanize/mechanize/blob/3acb1836f3fd8edc5a758a417dd46b53832ae3b5/mechanize/_urllib2_fork.py#L878-L879","refsource":"MISC","tags":[],"title":"mechanize/_urllib2_fork.py at 3acb1836f3fd8edc5a758a417dd46b53832ae3b5 · python-mechanize/mechanize · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/python-mechanize/mechanize/commit/dd05334448e9f39814bab044d2eaa5ef69b410d6","name":"https://github.com/python-mechanize/mechanize/commit/dd05334448e9f39814bab044d2eaa5ef69b410d6","refsource":"MISC","tags":[],"title":"Use the current upstream (python3.9) authreq header parsing regex · python-mechanize/mechanize@dd05334 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-32837","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-32837","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2021","cve_id":"32837","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"mechanize_project","cpe5":"mechanize","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"python","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2021-32837","qid":"182113","title":"Debian Security Update for python-mechanize (CVE-2021-32837)"},{"cve":"CVE-2021-32837","qid":"6000109","title":"Debian Security Update for python-mechanize (DLA 3460-1)"}]},"source_records":{"cve_program":{"data_type":"CVE","data_format":"MITRE","data_version":"4.0","generator":{"engine":"Vulnogram 0.0.9"},"CVE_data_meta":{"ID":"CVE-2021-32837","ASSIGNER":"security-advisories@github.com","DATE_PUBLIC":"","TITLE":"mechanize vulnerable to ReDoS","AKA":"","STATE":"PUBLIC"},"source":{"defect":["GHSL-2021-108"],"advisory":"GHSL-2021-108","discovery":"UNKNOWN"},"affects":{"vendor":{"vendor_data":[{"vendor_name":"python-mechanize","product":{"product_data":[{"product_name":"mechanize","version":{"version_data":[{"version_name":"0.4.6","version_affected":"<","version_value":"0.4.6","platform":""}]}}]}}]}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-1333 Inefficient Regular Expression Complexity"}]}]},"description":{"description_data":[{"lang":"eng","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."}]},"references":{"reference_data":[{"refsource":"CONFIRM","url":"https://securitylab.github.com/advisories/GHSL-2021-108-python-mechanize-mechanize/","name":"https://securitylab.github.com/advisories/GHSL-2021-108-python-mechanize-mechanize/"},{"refsource":"MISC","url":"https://github.com/python-mechanize/mechanize/blob/3acb1836f3fd8edc5a758a417dd46b53832ae3b5/mechanize/_urllib2_fork.py#L878-L879","name":"https://github.com/python-mechanize/mechanize/blob/3acb1836f3fd8edc5a758a417dd46b53832ae3b5/mechanize/_urllib2_fork.py#L878-L879"},{"refsource":"MISC","url":"https://github.com/python-mechanize/mechanize/releases/tag/v0.4.6","name":"https://github.com/python-mechanize/mechanize/releases/tag/v0.4.6"},{"refsource":"MISC","url":"https://github.com/python-mechanize/mechanize/commit/dd05334448e9f39814bab044d2eaa5ef69b410d6","name":"https://github.com/python-mechanize/mechanize/commit/dd05334448e9f39814bab044d2eaa5ef69b410d6"},{"refsource":"MLIST","name":"[debian-lts-announce] 20230620 [SECURITY] [DLA 3460-1] python-mechanize security update","url":"https://lists.debian.org/debian-lts-announce/2023/06/msg00022.html"}]},"configuration":[],"impact":{"cvss":{"version":"3.1","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"HIGH","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","baseScore":7.5,"baseSeverity":"HIGH"}},"exploit":[],"work_around":[],"solution":[],"credit":[]},"nvd":{"publishedDate":"2023-01-17 22:15:00","lastModifiedDate":"2023-06-20 17:15:00","problem_types":["CWE-1333"],"metrics":{"baseMetricV3":{"cvssV3":{"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"},"exploitabilityScore":3.9,"impactScore":3.6}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:mechanize_project:mechanize:*:*:*:*:*:python:*:*","versionEndExcluding":"0.4.6","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2021","CveId":"32837","Ordinal":"208225","Title":"CVE-2021-32837","CVE":"CVE-2021-32837","Year":"2021"},"notes":[{"CveYear":"2021","CveId":"32837","Ordinal":"1","NoteData":"** RESERVED ** This candidate has been reserved by an organization or individual that will use it when announcing a new security problem. When the candidate has been publicized, the details for this candidate will be provided.","Type":"Description","Title":null}]}}}