SecurityContext

CVE-2021-32837: Mechanize - Regular Expression Denial of Service

  • Cve: CVE-2021-32837
  • Name: Mechanize - Regular Expression Denial of Service
  • 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.
  • Impact: Attackers can cause mechanize to crash, leading to denial of service and potential disruption of services.
  • Remediation: Update to version 0.4.6 or later.
  • Vulnerability impact: denial_of_service
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 7.5
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Epss score: 0.28661
  • Epss percentile: 0.98168
  • Assignee: [email protected]
  • Published at: 2023-01-17T22:15:10Z
  • Age in days: 1407
  • Modified at: 2026-06-17T03:53:43Z
  • Patch available: yes
  • Public exploits total: 2
  • References total: 6
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-32837
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: vulnerability type, requirements, hackerone

Cwe

IdName
CWE-1333Inefficient Regular Expression Complexity

Public exploits

UrlSourceAdded date
https://github.com/python-mechanize/mechanize/blob/3acb1836f3fd8edc5a758a417dd46b53832ae3b5/mechanize/_urllib2_fork.py#L878-L879nvd2023-01-17
https://securitylab.github.com/advisories/GHSL-2021-108-python-mechanize-mechanize/nvd2023-01-17

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/python-mechanize/mechanize/commit/dd05334448e9f39814bab044d2eaa5ef69b410d6Patch, Third Party Advisory
https://github.com/python-mechanize/mechanize/blob/3acb1836f3fd8edc5a758a417dd46b53832ae3b5/mechanize/_urllib2_fork.py#L878-L879Exploit, Third Party Advisory
https://securitylab.github.com/advisories/GHSL-2021-108-python-mechanize-mechanize/Exploit, Third Party Advisory
https://github.com/python-mechanize/mechanize/releases/tag/v0.4.6Third Party Advisory
https://lists.debian.org/debian-lts-announce/2023/06/msg00022.html
https://lists.debian.org/debian-lts-announce/2025/12/msg00028.html

Products

ProductAffectedPlatform boundSourcesUrl
mechanize_project:mechanize< 0.4.6nonvd/v1/products/mechanize_project/mechanize

Projects

RepositoryLink kindsIndexedUrl
python-mechanize/mechanizecommit, package, releasesyes/v1/repositories/python-mechanize/mechanize

Index

  • Repositories: 3
  • Repositories high signal: 2
  • Packages: 1

Exploitation

  • Public exploit: yes
  • Public exploit count: 2
  • Public exploit first date: 2023-01-17
  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts