#VU87010 Incorrect Regular Expression in Rack


Published: 2024-03-04

Vulnerability identifier: #VU87010

Vulnerability risk: Medium

CVSSv3.1: 6.5 [CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:U/RL:O/RC:C]

CVE-ID: CVE-2024-25126

CWE-ID: CWE-185

Exploitation vector: Network

Exploit availability: No

Vulnerable software:
Rack
Web applications / Modules and components for CMS

Vendor: Rack

Description

The vulnerability allows a remote attacker to perform a denial of service (DoS) attack.

The vulnerability exists due to insufficient input validation when processing regular expressions in content type parsing (2nd degree polynomial). A remote attacker can pass specially crafted data to the application and perform regular expression denial of service (ReDos) attack.

Mitigation
Install update from vendor's website.

Vulnerable software versions

Rack: 2.1.0 - 2.1.4.4, 2.0 - 2.0.9.4, 3.0.0 - 3.0.9, 2.2.0 - 2.2.8, 1.6 - 1.6.13, 1.5 - 1.5.5, 1.4 - 1.4.7, 1.3 - 1.3.10, 1.2 - 1.2.8, 1.1 - 1.1.6, 1.0 - 1.0.1, 0.9 - 0.9.1


External links
http://github.com/rack/rack/security/advisories/GHSA-22f2-v57c-j9cx
http://github.com/rack/rack/commit/6efb2ceea003c4b195815a614e00438cbd543462
http://github.com/rack/rack/commit/d9c163a443b8cadf4711d84bd2c58cb9ef89cf49
http://discuss.rubyonrails.org/t/denial-of-service-vulnerability-in-rack-content-type-parsing/84941
http://github.com/rubysec/ruby-advisory-db/blob/master/gems/rack/CVE-2024-25126.yml


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.


Latest bulletins with this vulnerability