Bug 2161855 (CVE-2021-32837) - CVE-2021-32837 mechanize: Regular Expression Denial of Service
Summary: CVE-2021-32837 mechanize: Regular Expression Denial of Service
Keywords:
Status: CLOSED UPSTREAM
Alias: CVE-2021-32837
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2161856
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-01-18 05:16 UTC by Avinash Hanwate
Modified: 2023-01-21 12:52 UTC (History)
0 users

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-01-21 12:52:08 UTC
Embargoed:


Attachments (Terms of Use)

Description Avinash Hanwate 2023-01-18 05:16:00 UTC
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.

https://securitylab.github.com/advisories/GHSL-2021-108-python-mechanize-mechanize/
https://github.com/python-mechanize/mechanize/commit/dd05334448e9f39814bab044d2eaa5ef69b410d6
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

Comment 1 Avinash Hanwate 2023-01-18 05:16:19 UTC
Created python-mechanize tracking bugs for this issue:

Affects: fedora-all [bug 2161856]

Comment 2 Product Security DevOps Team 2023-01-21 12:52:07 UTC
This CVE Bugzilla entry is for community support informational purposes only as it does not affect a package in a commercially supported Red Hat product. Refer to the dependent bugs for status of those individual community products.


Note You need to log in before you can comment on or make changes to this bug.