CVE-2021-32837
published high CVSS 3.1 · 7.5mechanize vulnerable to ReDoS
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| python-mechanize | — | mechanize0.4.6 to < 0.4.6 | Affected | Not stated | GitHub_M |
| Debian | bullseye | python-mechanize | Advisory build | 1:0.4.5-2+deb11u1 | DLA-4418-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | python3-mechanizenoarch | Advisory build | 0.4.8-bp154.2.3.1 | OPENSUSE-SU-2023:0030-1 |
| Ubuntu | bionic | python-clientform | Advisory build | 1:0.2.5-3ubuntu0.18.04.1~esm1 | USN-9123-1 |
| Debian | buster | python-mechanize | Advisory build | 1:0.2.5-3+deb10u1 | DLA-3460-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-mechanizeaarch64 | Advisory build | 0.4.8-4.1 | OPENSUSE-SU-2024:12621-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-mechanizeppc64le | Advisory build | 0.4.8-4.1 | OPENSUSE-SU-2024:12621-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-mechanizes390x | Advisory build | 0.4.8-4.1 | OPENSUSE-SU-2024:12621-1 |
Show 26 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-mechanizex86_64 | Advisory build | 0.4.8-4.1 | OPENSUSE-SU-2024:12621-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-mechanizeaarch64 | Advisory build | 0.4.10-1.4 | OPENSUSE-SU-2025:15098-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-mechanizeppc64le | Advisory build | 0.4.10-1.4 | OPENSUSE-SU-2025:15098-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-mechanizes390x | Advisory build | 0.4.10-1.4 | OPENSUSE-SU-2025:15098-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-mechanizex86_64 | Advisory build | 0.4.10-1.4 | OPENSUSE-SU-2025:15098-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-mechanizeaarch64 | Advisory build | 0.4.10-1.4 | OPENSUSE-SU-2025:15098-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-mechanizeppc64le | Advisory build | 0.4.10-1.4 | OPENSUSE-SU-2025:15098-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-mechanizes390x | Advisory build | 0.4.10-1.4 | OPENSUSE-SU-2025:15098-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-mechanizex86_64 | Advisory build | 0.4.10-1.4 | OPENSUSE-SU-2025:15098-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-mechanizeaarch64 | Advisory build | 0.4.10-1.4 | OPENSUSE-SU-2025:15098-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-mechanizeppc64le | Advisory build | 0.4.10-1.4 | OPENSUSE-SU-2025:15098-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-mechanizes390x | Advisory build | 0.4.10-1.4 | OPENSUSE-SU-2025:15098-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-mechanizex86_64 | Advisory build | 0.4.10-1.4 | OPENSUSE-SU-2025:15098-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python38-mechanizeaarch64 | Advisory build | 0.4.8-4.1 | OPENSUSE-SU-2024:12621-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python38-mechanizeppc64le | Advisory build | 0.4.8-4.1 | OPENSUSE-SU-2024:12621-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python38-mechanizes390x | Advisory build | 0.4.8-4.1 | OPENSUSE-SU-2024:12621-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python38-mechanizex86_64 | Advisory build | 0.4.8-4.1 | OPENSUSE-SU-2024:12621-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python39-mechanizeaarch64 | Advisory build | 0.4.8-4.1 | OPENSUSE-SU-2024:12621-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python39-mechanizeppc64le | Advisory build | 0.4.8-4.1 | OPENSUSE-SU-2024:12621-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python39-mechanizes390x | Advisory build | 0.4.8-4.1 | OPENSUSE-SU-2024:12621-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python39-mechanizex86_64 | Advisory build | 0.4.8-4.1 | OPENSUSE-SU-2024:12621-1 |
| Ubuntu | bionic | python-mechanize | Advisory build | 1:0.2.5-3ubuntu0.18.04.1~esm1 | USN-9123-1 |
| Ubuntu | focal | python-mechanize | Advisory build | 1:0.4.5-2ubuntu0.1~esm1 | USN-9123-1 |
| Ubuntu | focal | python3-mechanize | Advisory build | 1:0.4.5-2ubuntu0.1~esm1 | USN-9123-1 |
| Ubuntu | xenial | python-clientform | Advisory build | 1:0.2.5-3ubuntu0.16.04.1~esm1 | USN-9123-1 |
| Ubuntu | xenial | python-mechanize | Advisory build | 1:0.2.5-3ubuntu0.16.04.1~esm1 | USN-9123-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.5 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| python-mechanize | mechanize | 0.4.6 to < 0.4.6 (affected · custom) | GitHub_M · cna |
Weaknesses
1- CWE-1333 CWE-1333 Inefficient Regular Expression Complexity
References
6- https://github.com/python-mechanize/mechanize/blob/3acb1836f3fd8edc5a758a417dd46b53832ae3b5/mechanize/_urllib2_fork.py#L878-L879
- https://github.com/python-mechanize/mechanize/commit/dd05334448e9f39814bab044d2eaa5ef69b410d6
- https://github.com/python-mechanize/mechanize/releases/tag/v0.4.6
- [debian-lts-announce] 20230620 [SECURITY] [DLA 3460-1] python-mechanize security update https://lists.debian.org/debian-lts-announce/2023/06/msg00022.html
- https://lists.debian.org/debian-lts-announce/2025/12/msg00028.html
- https://securitylab.github.com/advisories/GHSL-2021-108-python-mechanize-mechanize/
Provider assertions
3GitHub_M · cna
mechanize vulnerable to ReDoS
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 9194b3068471275570b7ce04177ceda8faba8f8a2d6f4c8b71df1d1c2b239952
- Ingested
- 23 Sep 2026, 07:54:30 UTC
- Source record
- Official CVE record