Vulnerability · Published Jan 17, 2023 · Assigned by GitHub_M

CVE-2021-32837mechanize vulnerable to ReDoS

High 7.5

In plain English

A high-severity regular-expression denial of service in mechanize from python-mechanize. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 28.7% (higher than 98% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.5High
Exploit odds (30 days)28.7%top 1.9% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12python-mechanize1:0.4.7-1DEBIAN-CVE-2021-32837
Debian:13python-mechanize1:0.4.7-1DEBIAN-CVE-2021-32837
Debian:14python-mechanize1:0.4.7-1DEBIAN-CVE-2021-32837
PyPImechanize0.4.6GHSA-g3pv-pj5f-3hfq
PyPImechanize0.4.6PYSEC-2023-25

Affected products (as reported)

VendorProductVersions
python-mechanize mechanize 0.4.6 – before 0.4.6

Weakness: CWE-1333 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

References