CVE-2021-32837
mechanize vulnerable to ReDoS
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- None
- Integrity
- None
- Availability
- High
Exploit likelihood
What each source reports
CVE List Score used
7.5
mechanize vulnerable to ReDoS
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.
- Record
CVE-2021-32837- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-1333
- Updated
- 2026-11-02
EUVDEUVD-2023-0144
7.5
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.
- Record
EUVD-2023-0144- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-g3pv-pj5f-3hfq
8.7
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.
- Record
GHSA-g3pv-pj5f-3hfq- CVSS 4.0
- 8.7 High
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 - CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-1333
- Updated
- 2026-11-02
NVD
7.5
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.
- Record
CVE-2021-32837- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-1333
- Updated
- 2026-11-02
OSV
7.5
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.
- Record
CVE-2021-32837- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVDEBIAN-CVE-2021-32837
7.5
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.
- Record
DEBIAN-CVE-2021-32837- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
Show 7 moreShow less
OSVGHSA-g3pv-pj5f-3hfq
8.7
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.
- Record
GHSA-g3pv-pj5f-3hfq- CVSS 4.0
- 8.7 High
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 - CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-1333
- Updated
- 2026-11-02
OSVUBUNTU-CVE-2021-32837
7.5
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.
- Record
UBUNTU-CVE-2021-32837- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVMGASA-2023-0036 No score
Updated python-mechanize packages fix security vulnerability
Denial of service via crafted regular expression (CVE-2021-32837) Fixed mechanize not found during build.
- Record
MGASA-2023-0036- Updated
- 2026-11-02
OSVopenSUSE-SU-2023:0030-1 No score
Security update for python-mechanize
This update for python-mechanize fixes the following issues:
Update to version 0.4.8:
- CVE-2021-32837: Fixed a denial of service via regular expression (boo#1207242).
- Fixed mechanize not found during build (boo#1202003).
- Record
openSUSE-SU-2023:0030-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:12621-1 No score
python310-mechanize-0.4.8-4.1 on GA media
These are all security issues fixed in the python310-mechanize-0.4.8-4.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:12621-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2025:15098-1 No score
python311-mechanize-0.4.10-1.4 on GA media
These are all security issues fixed in the python311-mechanize-0.4.10-1.4 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2025:15098-1- Updated
- 2026-11-02
OSVPYSEC-2023-25 No score
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.
- Record
PYSEC-2023-25- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
mechanizePyPI |
before 0.4.6 | 0.4.6 |
python-mechanizeDebian:12 |
before 1:0.4.7-1 | 1:0.4.7-1 |
python-mechanizeDebian:13 |
before 1:0.4.7-1 | 1:0.4.7-1 |
python-mechanizeDebian:14 |
before 1:0.4.7-1 | 1:0.4.7-1 |
python-mechanizeDebian:10 |
before 1:0.2.5-3+deb10u1, plus listed versions 1:0.2.5-3 |
1:0.2.5-3+deb10u1 |
python-mechanizeDebian:11 |
before 1:0.4.5-2+deb11u1, plus listed versions 1:0.4.5-2 |
1:0.4.5-2+deb11u1 |
mechanizePyPI |
before 0.4.6, plus listed versions 0.0.10a0.0.11a0.0.1a0.0.8a0.0.9a Show 31 moreShow less0.1.0a0.1.100.1.110.1.1a0.1.2b0.1.4b0.1.5b0.1.6b0.1.7b0.1.80.1.90.2.00.2.10.2.20.2.30.2.40.2.50.3.00.3.10.3.20.3.30.3.40.3.50.3.60.3.70.4.00.4.10.4.20.4.30.4.40.4.5 |
0.4.6 |
python-mechanizeMageia:8 |
before 0.4.6-1.mga8 | 0.4.6-1.mga8 |
mechanizePyPI |
before 0.4.6, plus listed versions 0.0.10a0.0.11a0.0.1a0.0.8a0.0.9a Show 45 moreShow less0.1.0a0.1.100.1.110.1.1a0.1.2b0.1.4b0.1.5b0.1.6b0.1.7b0.1.80.1.90.2.00.2.10.2.20.2.30.2.40.2.50.3.00.3.10.3.20.3.30.3.40.3.50.3.60.3.70.4.00.4.10.4.20.4.30.4.40.4.5v0.4.5v0.4.4v0.4.3v0.4.2v0.4.1v0.4.0v0.3.7v0.3.6v0.3.5v0.3.4v0.3.3v0.3.2v0.3.1v0.3.0 |
0.4.6 |
python-mechanizeUbuntu:16.04:LTS |
All versions, plus listed versions 1:0.2.5-3 |
None known |
Show 5 moreShow less
| Package | Affected | Fixed |
|---|---|---|
python-mechanizeUbuntu:18.04:LTS |
All versions, plus listed versions 1:0.2.5-3 |
None known |
python-mechanizeUbuntu:20.04:LTS |
All versions, plus listed versions 1:0.2.5-31:0.4.3-21:0.4.5-11:0.4.5-2 |
None known |
python-mechanizeSUSE:Package Hub 15 SP4 |
before 0.4.8-bp154.2.3.1 | 0.4.8-bp154.2.3.1 |
python-mechanizeopenSUSE:Leap 15.4 |
before 0.4.8-bp154.2.3.1 | 0.4.8-bp154.2.3.1 |
python-mechanizeopenSUSE:Tumbleweed |
before 0.4.10-1.4 | 0.4.10-1.4 |
History
| Recorded | Changed | Sources |
|---|---|---|
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2021-32837 is a high vulnerability (CVSS 7.5) in Mechanize Project Mechanize, published January 17, 2023. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 28.7%, the 98th percentile. Fixed in mechanize 0.4.6.
References
securitylab.github.com/advisories/GHSL-2021-108-python-mechanize-mechanize
github.com/python-mechanize/mechanize/blob/3acb1836f3fd8edc5a758a417dd46b53832ae3b5/mechanize/_urllib2_fork.py
github.com/python-mechanize/mechanize/releases/tag/v0.4.6
github.com/python-mechanize/mechanize/commit/dd05334448e9f39814bab044d2eaa5ef69b410d6
lists.debian.org/debian-lts-announce/2023/06/msg00022.html
lists.debian.org/debian-lts-announce/2025/12/msg00028.html
Show 14 moreShow less
nvd.nist.gov/vuln/detail/CVE-2021-32837
github.com/pypa/advisory-database/tree/main/vulns/mechanize/PYSEC-2023-25.yaml
github.com/advisories/GHSA-g3pv-pj5f-3hfq
security-tracker.debian.org/tracker/CVE-2021-32837
github.com/python-mechanize/mechanize
advisories.mageia.org/MGASA-2023-0036.html
bugs.mageia.org/show_bug.cgi?id=31450
lists.opensuse.org/archives/list/[email protected]/thread/UJMENNGUMOIJQDKIMSMKR4ZGHVXN6F4U
ubuntu.com/security/CVE-2021-32837
cve.org/CVERecord?id=CVE-2021-32837
bugzilla.suse.com/1202003
bugzilla.suse.com/1207242
suse.com/security/cve/CVE-2021-32837
lists.opensuse.org/archives/list/[email protected]/thread/ALVMKGJWEWB5TB7PXYN2YHAGDNLAFVMJ