CVE-2021-32837
published 2023-01-17CVE-2021-32837: mechanize, a library for automatically interacting with HTTP web servers, contains a regular expression that is vulnerable to regular expression denial of…
PriorityP351high7.5CVSS 3.1
AVNACLPRNUINSUCNINAH
EPSS
28.66%
97.9th percentile
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
4 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | python-mechanize | < python-mechanize 1:0.4.7-1 (bookworm) | python-mechanize 1:0.4.7-1 (bookworm) |
| mechanize_project | mechanize | < 0.4.6 | 0.4.6 |
| mechanize_project | mechanize | >= 0 < 0.4.6 | 0.4.6 |
| python-mechanize | mechanize | >= 0.4.6 < 0.4.6 | 0.4.6 |
CVSS provenance
nvdv3.17.5HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
osv7.5HIGH
vendor_debian7.5HIGH
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
OSV
mechanize Regular Expression Denial of Service vulnerability
osv·2023-01-18
CVE-2021-32837 [HIGH] mechanize Regular Expression Denial of Service vulnerability
mechanize Regular Expression Denial of Service vulnerability
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.
GHSA
mechanize Regular Expression Denial of Service vulnerability
ghsa·2023-01-18
CVE-2021-32837 [HIGH] CWE-1333 mechanize Regular Expression Denial of Service vulnerability
mechanize Regular Expression Denial of Service vulnerability
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.
OSV
CVE-2021-32837: mechanize, a library for automatically interacting with HTTP web servers, contains a regular expression that is vulnerable to regular expression denia
osv·2023-01-17·CVSS 7.5
CVE-2021-32837 [HIGH] CVE-2021-32837: mechanize, a library for automatically interacting with HTTP web servers, contains a regular expression that is vulnerable to regular expression denia
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.
Debian
CVE-2021-32837: python-mechanize - mechanize, a library for automatically interacting with HTTP web servers, contai...
vendor_debian·2021·CVSS 7.5
CVE-2021-32837 [HIGH] CVE-2021-32837: python-mechanize - mechanize, a library for automatically interacting with HTTP web servers, contai...
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.
Scope: local
bookworm: resolved (fixed in 1:0.4.7-1)
bullseye: resolved (fixed in 1:0.4.5-2+deb11u1)
forky: resolved (fixed in 1:0.4.7-1)
sid: resolved (fixed in 1:0.4.7-1)
trixie: resolved (fixed in 1:0.4.7-1)
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
https://github.com/python-mechanize/mechanize/blob/3acb1836f3fd8edc5a758a417dd46b53832ae3b5/mechanize/_urllib2_fork.py#L878-L879https://github.com/python-mechanize/mechanize/commit/dd05334448e9f39814bab044d2eaa5ef69b410d6https://github.com/python-mechanize/mechanize/releases/tag/v0.4.6https://lists.debian.org/debian-lts-announce/2023/06/msg00022.htmlhttps://securitylab.github.com/advisories/GHSL-2021-108-python-mechanize-mechanize/https://github.com/python-mechanize/mechanize/blob/3acb1836f3fd8edc5a758a417dd46b53832ae3b5/mechanize/_urllib2_fork.py#L878-L879https://github.com/python-mechanize/mechanize/commit/dd05334448e9f39814bab044d2eaa5ef69b410d6https://github.com/python-mechanize/mechanize/releases/tag/v0.4.6https://lists.debian.org/debian-lts-announce/2023/06/msg00022.htmlhttps://lists.debian.org/debian-lts-announce/2025/12/msg00028.htmlhttps://securitylab.github.com/advisories/GHSL-2021-108-python-mechanize-mechanize/
2023-01-17
Published