CVE-2021-32837
Publication date 17 January 2023
Last updated 17 November 2026
Ubuntu priority
Cvss 3 Severity Score
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.
Status
| Package | Ubuntu Release | Status |
|---|---|---|
| python-mechanize | 26.10 stonking |
Not affected
|
| 26.04 LTS resolute |
Not affected
|
|
| 24.04 LTS noble |
Not affected
|
|
| 22.04 LTS jammy |
Not affected
|
|
| 20.04 LTS focal |
Fixed in 1:0.4.5-2ubuntu0.1~esm1
|
|
| 18.04 LTS bionic |
Fixed in 1:0.2.5-3ubuntu0.18.04.1~esm1
|
|
| 16.04 LTS xenial |
Fixed in 1:0.2.5-3ubuntu0.16.04.1~esm1
|
|
| 14.04 LTS trusty | Ignored end of standard support |
Get expanded security coverage with Ubuntu Pro
Reduce your average CVE exposure time from 98 days to 1 day with expanded CVE patching, ten-years security maintenance and optional support for the full stack of open-source applications. Free for personal use.
Get Ubuntu Pro 30-day free trialSeverity score breakdown
CVSS version: CVSS v3.0
Base score
7.5 · High
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
References
Related Ubuntu Security Notices (USN)
- USN-9123-1
- mechanize vulnerability
- 17 November 2026
Other references
- https://securitylab.github.com/advisories/GHSL-2021-108-python-mechanize-mechanize/
- https://github.com/python-mechanize/mechanize/blob/3acb1836f3fd8edc5a758a417dd46b53832ae3b5/mechanize/_urllib2_fork.py#L878-L879
- https://github.com/python-mechanize/mechanize/releases/tag/v0.4.6
- https://www.cve.org/CVERecord?id=CVE-2021-32837