CVE-2022-30122: High severity rack-project rack vulnerability

Published May 27, 2022
·
Updated

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

14 affected componentsFixes available
redhat/rubygem-rack<0:2.2.4-1.el7
0:2.2.4-1.el7
redhat/tfm-rubygem-rack<0:2.2.3.1-1.el7
0:2.2.3.1-1.el7
redhat/rubygem-rack<0:2.2.3.1-1.el8
0:2.2.3.1-1.el8
rubygems/rack>=2.2<=2.2.3.0
2.2.3.1
rubygems/rack>=2.1<=2.1.4.0
2.1.4.1
rubygems/rack>=1.2<=2.0.9.0
2.0.9.1
redhat/rubygem-rack<2.0.9.1
2.0.9.1
redhat/rubygem-rack<2.1.4.1
2.1.4.1
redhat/rubygem-rack<2.2.3.1
2.2.3.1
Rack Project Rack>=1.2<2.0.9.1
Rack Project Rack>=2.1.0<2.1.4.1
Rack Project Rack>=2.2.0<2.2.3.1
Debian Debian Linux=11.0
debian/ruby-rack
2.1.4-3+deb11u22.1.4-3+deb11u32.2.6.4-1+deb12u12.2.13-1~deb12u13.1.12-1

Event History

May 27, 2022
CVE Published
12:00 AM
Advisory Published
04:36 PM
Dec 5, 2022
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
DescriptionWeakness
Jan 12, 2024
Data Sourced
via Launchpad·12:08 AM
Description
Sep 28, 2024
Data Sourced
via Ubuntu·01:51 AM
RemedyDescriptionSeverityAffected Software
Mar 27, 2025
Data Sourced
via Debian·04:41 AM
DescriptionAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2022-30122?

CVE-2022-30122 is a denial of service vulnerability in the multipart parsing component of Rack.

2

Which versions of Rack are affected by CVE-2022-30122?

Versions >= 1.2 of Rack are affected by CVE-2022-30122.

3

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.

4

What is the severity of CVE-2022-30122?

CVE-2022-30122 has a severity rating of 7.5 (High).

5

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).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203