Rack has possible DoS Vulnerability in Multipart MIME parsingGHSA-3h57-hmj3-gj3p
HIGHGHSA-3h57-hmj3-gj3p is a high-severity (CVSS 7.5) Uncontrolled Resource Consumption vulnerability in rack. A fix is available for rack — see the affected versions and patch details below.
Exploitation Status
No confirmed exploitation observed yet
- CISA assesses this as automatable — exploitation doesn’t require manual, per-target effort, which raises the odds of mass scanning and opportunistic attacks.
- CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.
Exploitation and automatability from CISA’s SSVC triage for GHSA-3h57-hmj3-gj3p.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
rack💎rack💎rack💎rackReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects RubyGems packages — download data is not available via public APIs for these ecosystems.
Description
There is a possible DoS vulnerability in the Multipart MIME parsing code in Rack. This vulnerability has been assigned the CVE identifier CVE-2023-27530.
Versions Affected: All. Not affected: None Fixed Versions: 3.0.4.2, 2.2.6.3, 2.1.4.3, 2.0.9.3
Impact
The Multipart MIME parsing code in Rack limits the number of file parts, but does not limit the total number of parts that can be uploaded. Carefully crafted requests can abuse this and cause multipart parsing to take longer than expected.
All users running an affected release should either upgrade or use one of the workarounds immediately.
Workarounds
A proxy can be configured to limit the POST body size which will mitigate this issue.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 💎RubyGems | rack | all versions | 2.0.9.3bundle update rack --conservative |
| 💎RubyGems | rack | ≥ 2.1.0&&< 2.1.4.3 | 2.1.4.3bundle update rack --conservative |
| 💎RubyGems | rack | ≥ 2.2.0&&< 2.2.6.3 | 2.2.6.3bundle update rack --conservative |
| 💎RubyGems | rack | ≥ 3.0.0&&< 3.0.4.2 | 3.0.4.2bundle update rack --conservative |
Affected Products
debian linuxdebianrackrackDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for rack, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update rack to 2.0.9.3 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-3h57-hmj3-gj3p is resolved across your whole dependency graph.
Workarounds
Cap what an attacker can consume: apply request size, rate and timeout limits in front of the affected component, and run it with memory and CPU limits so exhaustion degrades one worker rather than the whole service.
Fixing This On Your OS
If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.
| Product | Fixed in | Advisory |
|---|---|---|
| Red Hat Enterprise Linux 8 | pcs-0:0.10.15-4.el8_8.1 | RHSA-2023:3082 |
| Red Hat Enterprise Linux 8.4 Extended Update Support | pcs-0:0.10.8-1.el8_4.4 | RHSA-2023:1961 |
| Red Hat Enterprise Linux 8.6 Extended Update Support | pcs-0:0.10.12-6.el8_6.4 | RHSA-2023:3403 |
| Red Hat Enterprise Linux 9 | pcs-0:0.11.4-7.el9_2 | RHSA-2023:2652 |
| Red Hat Enterprise Linux 9.0 Extended Update Support | pcs-0:0.11.1-10.el9_0.4 | RHSA-2023:1981 |
| Red Hat Satellite 6.14 for RHEL 8 | rubygem-rack-0:2.2.7-1.el8sat | RHSA-2023:6818 |
Frequently Asked Questions
Is GHSA-3h57-hmj3-gj3p in your dependencies?
Find it across RubyGems, including transitive dependencies.