#VU87010 Incorrect Regular Expression in Rack - CVE-2024-25126


Vulnerability identifier: #VU87010

Vulnerability risk: Medium

CVSSv4.0: 6.6 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:U/U:Green]

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: 0.4, 0.9 - 0.9.1, 1.0 - 1.0.1, 1.1 - 1.1.6, 1.2 - 1.2.8, 1.3 - 1.3.10, 1.4 - 1.4.7, 1.5 - 1.5.5, 1.6 - 1.6.13, 2.0 - 2.0.9.4, 2.1.0 - 2.1.4.4, 2.2.0 - 2.2.8, 3.0.0 - 3.0.9


External links
https://github.com/rack/rack/security/advisories/GHSA-22f2-v57c-j9cx
https://github.com/rack/rack/commit/6efb2ceea003c4b195815a614e00438cbd543462
https://github.com/rack/rack/commit/d9c163a443b8cadf4711d84bd2c58cb9ef89cf49
https://discuss.rubyonrails.org/t/denial-of-service-vulnerability-in-rack-content-type-parsing/84941
https://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