CVE-2021-32837

NameCVE-2021-32837
Descriptionmechanize, 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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDLA-3460-1

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
python-mechanize (PTS)bullseye1:0.4.5-2vulnerable
bookworm1:0.4.8+pypi-5fixed
sid, trixie1:0.4.10+ds-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
python-mechanizesourcebuster1:0.2.5-3+deb10u1DLA-3460-1
python-mechanizesource(unstable)1:0.4.7-1

Notes

[bullseye] - python-mechanize <no-dsa> (Minor issue)
https://securitylab.github.com/advisories/GHSL-2021-108-python-mechanize-mechanize/
https://github.com/python-mechanize/mechanize/commit/dd05334448e9f39814bab044d2eaa5ef69b410d6 (v0.4.6)

Search for package or bug name: Reporting problems