ubuntu-cve-2021-32837
Vulnerability from osv_ubuntu
Published
2023-01-17 22:15
Modified
2025-10-24 04:50
Summary
Details
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.
Severity
7.5 (High)
7.5 (High)
N/A (UNKNOWN)
{
"affected": [
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python-clientform",
"binary_version": "1:0.2.5-3"
},
{
"binary_name": "python-mechanize",
"binary_version": "1:0.2.5-3"
}
]
},
"package": {
"ecosystem": "Ubuntu:16.04:LTS",
"name": "python-mechanize",
"purl": "pkg:deb/ubuntu/python-mechanize@1:0.2.5-3?arch=source\u0026distro=xenial"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"1:0.2.5-3"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python-clientform",
"binary_version": "1:0.2.5-3"
},
{
"binary_name": "python-mechanize",
"binary_version": "1:0.2.5-3"
}
]
},
"package": {
"ecosystem": "Ubuntu:18.04:LTS",
"name": "python-mechanize",
"purl": "pkg:deb/ubuntu/python-mechanize@1:0.2.5-3?arch=source\u0026distro=bionic"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"1:0.2.5-3"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python3-mechanize",
"binary_version": "1:0.4.5-2"
}
]
},
"package": {
"ecosystem": "Ubuntu:20.04:LTS",
"name": "python-mechanize",
"purl": "pkg:deb/ubuntu/python-mechanize@1:0.4.5-2?arch=source\u0026distro=focal"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"1:0.2.5-3",
"1:0.4.3-2",
"1:0.4.5-1",
"1:0.4.5-2"
]
}
],
"aliases": [],
"details": "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.",
"id": "UBUNTU-CVE-2021-32837",
"modified": "2025-10-24T04:50:21Z",
"published": "2023-01-17T22:15:00Z",
"references": [
{
"type": "REPORT",
"url": "https://ubuntu.com/security/CVE-2021-32837"
},
{
"type": "REPORT",
"url": "https://securitylab.github.com/advisories/GHSL-2021-108-python-mechanize-mechanize/"
},
{
"type": "REPORT",
"url": "https://github.com/python-mechanize/mechanize/blob/3acb1836f3fd8edc5a758a417dd46b53832ae3b5/mechanize/_urllib2_fork.py#L878-L879"
},
{
"type": "REPORT",
"url": "https://github.com/python-mechanize/mechanize/releases/tag/v0.4.6"
},
{
"type": "REPORT",
"url": "https://www.cve.org/CVERecord?id=CVE-2021-32837"
}
],
"related": [],
"schema_version": "1.7.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
"type": "CVSS_V3"
},
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
"type": "CVSS_V3"
},
{
"score": "medium",
"type": "Ubuntu"
}
],
"upstream": [
"CVE-2021-32837"
]
}
Loading…
Loading…
Experimental. This forecast is provided for visualization only and may change without notice. Do not use it for operational decisions.
Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…