CVE-2024-26141
Possible DoS Vulnerability with Range Header in Rack
Reported by github_m · Published February 28, 2024
rack is fixed in 3.0.9.1 and 2.2.8.1 (RubyGems)
Rack is a modular Ruby web server interface. Carefully crafted Range headers can cause a server to respond with an unexpectedly large response. Responding with such large responses could lead to a denial of service issue. Vulnerable applications will use the `Rack::File` middleware or the `Rack::Utils.byte_ranges` methods (this includes Rails applications). The vulnerability is fixed in 3.0.9.1 and 2.2.8.1.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| rack | RubyGems | 3.0.9.1, 2.2.8.1 |
| pcs-snmp | Amazon Linux | 0.9.169-3.amzn2.3.0.3 |
| pcs | Amazon Linux | 0.9.169-3.amzn2.3.0.3 |
| ruby3.2-rack | Chainguard | 3.0.9.1-r0 |
| ruby3.2-rack-2.2 | Chainguard | 2.2.8.1-r0 |
| ruby3.2-rack | Wolfi | 3.0.9.1-r0 |
| ruby3.2-rack-2.2 | Wolfi | 2.2.8.1-r0 |
| rack | rack | 3.0.9.1, 2.2.8.1 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| rack | rack | >= 3.0.0, < 3.0.9.1, >= 1.3.0, < 2.2.8.1 |
| amazon:2 | pcs-snmp | 0 |
| amazon:2 | pcs | 0 |
| chainguard | ruby3.2-rack | 0 |
| chainguard | ruby3.2-rack-2.2 | 0 |
| wolfi | ruby3.2-rack | 0 |
| wolfi | ruby3.2-rack-2.2 | 0 |
| rack | rack | |
| RubyGems | rack | 1.3.0, 3.0.0 |
| rack | rack | 1.3.0, 3.0.0 |
| chainguard | logstash-jre-bcfips | 0 |
| wolfi | kube-fluentd-operator | 0 |
| chainguard | logstash | 0 |
| chainguard | kube-fluentd-operator | 0 |
| wolfi | logstash | 0 |
| rack_project | rack | 3.0.0, 1.3.0 |
Timeline
- Feb 28, 2024 CVE Published
- Feb 29, 2024 EPSS Score (30 in total, the first dated here)
- Sep 25, 2024 PoC Published
- Oct 4, 2024 Coalition ESS Score (21 in total, the first dated here)
- Jan 15, 2026 Security Advisory (13 in total, the first dated here)
- Aug 10, 2026 Distribution Patch (10 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-26141
vulnetix vdb fixes CVE-2024-26141
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-26141/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/rack/rack/security/advisories/GHSA-xj5v-6v4g-jfw6 x_refsource_CONFIRM
- https://github.com/rack/rack/commit/4849132bef471adb21131980df745f4bb84de2d9 x_refsource_MISC
- https://github.com/rack/rack/commit/62457686b26d33a15a254c7768c2076e8e02b48b x_refsource_MISC
- https://discuss.rubyonrails.org/t/possible-dos-vulnerability-with-range-header-in-rack/84944 x_refsource_MISC
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rack/CVE-2024-26141.yml x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2024-26141 advisory
- https://github.com/advisories/GHSA-xj5v-6v4g-jfw6 advisory
- https://github.com/rack/rack url