CVE-2022-30122: High severity rack-project rack vulnerability
A denial of service flaw was found in ruby-rack. An attacker crafting multipart POST requests can cause Rack's multipart parser to take much longer than expected, leading to a denial of service.
Other sources
A possible denial of service vulnerability exists in Rack <2.0.9.1, <2.1.4.1 and <2.2.3.1 in the multipart parsing component of Rack.
Carefully crafted multipart POST requests can cause Rack's multipart parser to take much longer than expected, leading to a possible denial of service vulnerability.
Reference:
https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rack/CVE-2022-30122.yml
— Red Hat
There is a possible denial of service vulnerability in the multipart parsing component of Rack. This vulnerability has been assigned the CVE identifier CVE-2022-30122.
Versions Affected: >= 1.2 Not affected: < 1.2 Fixed Versions: 2.0.9.1, 2.1.4.1, 2.2.3.1
Impact Carefully crafted multipart POST requests can cause Rack's multipart parser to take much longer than expected, leading to a possible denial of service vulnerability.
Impacted code will use Rack's multipart parser to parse multipart posts. This includes directly using the multipart parser like this:
params = Rack::Multipart.parsemultipart(env)
But it also includes reading POST data from a Rack request object like this:
p request.POST # read POST data p request.params # reads both query params and POST data
All users running an affected release should either upgrade or use one of the workarounds immediately.
Workarounds There are no feasible workarounds for this issue.
Affected Software
Remediation
Event History
Parent advisories
This vulnerability appears in the following advisories.
Frequently Asked Questions
What is CVE-2022-30122?
CVE-2022-30122 is a denial of service vulnerability in the multipart parsing component of Rack.
Which versions of Rack are affected by CVE-2022-30122?
Versions >= 1.2 of Rack are affected by CVE-2022-30122.
How can I fix CVE-2022-30122?
To fix CVE-2022-30122, update to the fixed versions: 2.0.9.1, 2.1.4.1, or 2.2.3.1 of Rack.
What is the severity of CVE-2022-30122?
CVE-2022-30122 has a severity rating of 7.5 (High).
Where can I find more information about CVE-2022-30122?
You can find more information about CVE-2022-30122 in the references provided: [GitHub Advisory](https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rack/CVE-2022-30122.yml), [Red Hat Bugzilla](https://bugzilla.redhat.com/show_bug.cgi/show_bug.cgi?id=2099520), [Red Hat Security Advisory](https://access.redhat.com/errata/RHSA-2022:7242).