7.5high
mechanize vulnerable to ReDoS
- Severity
- 7.5high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 28.7% (higher than 98% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-g3pv-pj5f-3hfqPYSEC-2023-25
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| python-mechanize mechanize | from 0.4.6 before 0.4.6 | CVE List |
| mechanize (PyPI) | before 0.4.6, before dd05334448e9f39814bab044d2eaa5ef69b410d6 | GitHub Advisory Database, PyPA Advisory Database |
| mechanize_project mechanize | before 0.4.6 | NVD |
All scores
| GitHub_M | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | high CVSS:4.0 | 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 |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Classification
SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.
What each source says
CVE List
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.
NVD (es)
mechanize, una librería para interactuar automáticamente con servidores web HTTP, contiene una expresión regular que es vulnerable a la denegación de servicio de expresión regular (ReDoS) antes de la versión 0.4.6. Si un servidor web responde de forma maliciosa, mechanize podría fallar. La versión 0.4.6 tiene un parche para este problema.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-32837 changed 2025-12-22 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-g3pv-pj5f-3hfq changed 2025-12-22 | CC-BY-4.0 |
| NVD | CVE-2021-32837 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2023-25 changed 2026-06-10 | CC-BY-4.0 |