← back
CVE-2021-32837

mechanize vulnerable to ReDoS

CVSS 7.5 HIGHEPSS 26.7%CWE-1333
In short

A vulnerable regular expression in the mechanize library can be exploited by a malicious web server to crash the application by sending specially crafted responses. This happens because the regex takes too long to process certain input patterns, causing a denial of service.

Technical detail

The mechanize library prior to version 0.4.6 contains a ReDoS (Regular Expression Denial of Service) vulnerability in its regex pattern (CWE-1333). An attacker can craft a malicious HTTP response that triggers catastrophic backtracking in the regex engine, causing the application to hang or crash. The attack vector requires no authentication and only requires the application to process a response from a network-accessible server.

Summary generated and translated by AI from the official 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.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Want to know if your infrastructure is exposed to this?

Talk to TrueHacking →