{"id":"CVE-2022-30122","aliases":["GHSA-hxqx-xwvh-44m2"],"url":"https://o3.security/vulnerability/CVE-2022-30122","summary":"Denial of Service Vulnerability in Rack Multipart Parsing","details":"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.\n\nVersions Affected:  >= 1.2\nNot affected:       < 1.2\nFixed Versions:     2.0.9.1, 2.1.4.1, 2.2.3.1\n\n## Impact\nCarefully crafted multipart POST requests can cause Rack's multipart parser to take much longer than expected, leading to a possible denial of service vulnerability.\n\nImpacted code will use Rack's multipart parser to parse multipart posts.  This includes directly using the multipart parser like this:\n\n```\nparams = Rack::Multipart.parse_multipart(env)\n```\n\nBut it also includes reading POST data from a Rack request object like this:\n\n```\np request.POST # read POST data\np request.params # reads both query params and POST data\n```\n\nAll users running an affected release should either upgrade or use one of the workarounds immediately.\n\n## Workarounds\nThere are no feasible workarounds for this issue.\n","published":"2022-12-05T00:00:00Z","modified":"2026-08-12T03:51:21.994256334Z","cvss":{"score":7.5,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"RubyGems","name":"rack","fixedVersion":"2.0.9.1"},{"ecosystem":"RubyGems","name":"rack","fixedVersion":"2.1.4.1"},{"ecosystem":"RubyGems","name":"rack","fixedVersion":"2.2.3.1"}],"fix":null,"references":[{"type":"WEB","url":"https://discuss.rubyonrails.org/t/cve-2022-30122-denial-of-service-vulnerability-in-rack-multipart-parsing/80729"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/30xxx/CVE-2022-30122.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-30122"},{"type":"ADVISORY","url":"https://security.gentoo.org/glsa/202310-18"},{"type":"ADVISORY","url":"https://security.netapp.com/advisory/ntap-20231208-0012/"},{"type":"ADVISORY","url":"https://www.debian.org/security/2023/dsa-5530"},{"type":"PACKAGE","url":"https://github.com/rack/rack"},{"type":"WEB","url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rack/CVE-2022-30122.yml"},{"type":"WEB","url":"https://groups.google.com/g/ruby-security-ann/c/L2Axto442qk"},{"type":"WEB","url":"https://security.netapp.com/advisory/ntap-20231208-0012"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:21.994256334Z"}}