CVE-2024-26146
Possible Denial of Service Vulnerability in Rack Header Parsing
Reported by github_m · Published February 28, 2024
rack is fixed in 3.0.9.1, 2.2.8.1, 2.1.4.4 and 1 more (RubyGems)
Rack is a modular Ruby web server interface. Carefully crafted headers can cause header parsing in Rack to take longer than expected resulting in a possible denial of service issue. Accept and Forwarded headers are impacted. Ruby 3.2 has mitigations for this problem, so Rack applications using Ruby 3.2 or newer are unaffected. This vulnerability is fixed in 2.0.9.4, 2.1.4.4, 2.2.8.1, and 3.0.9.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, 2.1.4.4, 2.0.9.4 |
| kube-fluentd-operator | Wolfi | 1.18.2-r3 |
| ruby3.2-rack-2.2 | Chainguard | 2.2.8.1-r0 |
| logstash | Wolfi | 8.12.2-r2 |
| pcs | Amazon Linux | 0.9.169-3.amzn2.3.0.3 |
| rack | rack | 2.2.8.1, 2.1.4.4, 2.0.9.4 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| rack | rack | >= 3.0.0, < 3.0.9.1, >= 2.2.0, < 2.2.8.1, >= 2.1.0, < 2.1.4.4 |
| wolfi | kube-fluentd-operator | 0 |
| chainguard | ruby3.2-rack-2.2 | 0 |
| wolfi | logstash | 0 |
| amazon:2 | pcs | 0 |
| rack | rack | 2.2.0, 0, 2.1.0 |
| chainguard | ruby3.2-rack | 0 |
| wolfi | ruby3.2-rack | 0 |
| chainguard | logstash | 0 |
| amazon:2 | pcs-snmp | 0 |
| wolfi | ruby3.2-rack-2.2 | 0 |
| chainguard | logstash-jre-bcfips | 0 |
| rack_project | rack | 2.2.0, 2.1.0, 0 |
| chainguard | kube-fluentd-operator | 0 |
| RubyGems | rack | 3.0.0, 2.2.0, 2.1.0 |
Timeline
- Feb 28, 2024 CVE Published
- Feb 29, 2024 EPSS Score (30 in total, the first dated here)
- May 24, 2024 PoC Published
- Oct 4, 2024 Coalition ESS Score (24 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-26146
vulnetix vdb fixes CVE-2024-26146
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-26146/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-54rr-7fvw-6x8f x_refsource_CONFIRM
- https://github.com/rack/rack/commit/30b8e39a578b25d4bdcc082c1c52c6f164b59716 x_refsource_MISC
- https://github.com/rack/rack/commit/6c5d90bdcec0949f7ba06db62fb740dab394b582 x_refsource_MISC
- https://github.com/rack/rack/commit/a227cd793778c7c3a827d32808058571569cda6f x_refsource_MISC
- https://github.com/rack/rack/commit/e4c117749ba24a66f8ec5a08eddf68deeb425ccd x_refsource_MISC
- https://discuss.rubyonrails.org/t/possible-denial-of-service-vulnerability-in-rack-header-parsing/84942 x_refsource_MISC
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rack/CVE-2024-26146.yml x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2024-26146 advisory
- https://github.com/advisories/GHSA-54rr-7fvw-6x8f advisory
- https://github.com/rack/rack url