CVE-2021-32837
Mechanize Project Mechanize 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.
Affected products
Mechanize. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Mechanize Project Mechanize runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- securitylab.github.com/advisories/GHSL-2021-108-python-mechanize-mechanize/ · Exploit
- nvd.nist.gov/vuln/detail/CVE-2021-32837
- github.com/python-mechanize/mechanize/commit/dd05334448e9f39814bab044d2eaa5ef69b410d6
- github.com/python-mechanize/mechanize/blob/3acb1836f3fd8edc5a758a417dd46b53832ae3b5/mechan
- github.com/python-mechanize/mechanize/releases/tag/v0.4.6
- lists.debian.org/debian-lts-announce/2023/06/msg00022.html
- github.com/pypa/advisory-database/tree/main/vulns/mechanize/PYSEC-2023-25.yaml
- securitylab.github.com/advisories/GHSL-2021-108-python-mechanize-mechanize
- nvd.nist.gov/vuln/detail/CVE-2021-32837
- cve.org/CVERecord?id=CVE-2021-32837
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.