CVE-2024-26146Possible Denial of Service Vulnerability in Rack Header Parsing
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.
What to do
Fixed builds are available from AlmaLinux, Debian, Red Hat, Rocky Linux, RubyGems, Ubuntu: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 24.04 | ruby-rack | Fixed | 2.2.7-1ubuntu0.1 | UBUNTU-CVE-2024-26146 |
| Ubuntu 22.04 | ruby-rack | Fix pending | 2.1.4-5ubuntu1.1 (Ubuntu Pro) | UBUNTU-CVE-2024-26146 |
| Ubuntu 20.04 | ruby-rack | Fix pending | 2.0.7-2ubuntu0.1+esm5 (Ubuntu Pro) | UBUNTU-CVE-2024-26146 |
| Ubuntu 18.04 | ruby-rack | Fix pending | 1.6.4-4ubuntu0.2+esm6 (Ubuntu Pro) | UBUNTU-CVE-2024-26146 |
| Ubuntu 16.04 | ruby-rack | Fix pending | 1.6.4-3ubuntu0.2+esm6 (Ubuntu Pro) | UBUNTU-CVE-2024-26146 |
| Ubuntu 14.04 | ruby-rack | Fix pending | 1.5.2-3+deb8u3ubuntu1~esm8 (Ubuntu Pro) | UBUNTU-CVE-2024-26146 |
| Debian 14 | ruby-rack | Fixed | 2.2.7-1.1 | DEBIAN-CVE-2024-26146 |
| Debian 13 | ruby-rack | Fixed | 2.2.7-1.1 | DEBIAN-CVE-2024-26146 |
| Debian 12 | ruby-rack | Fixed | 2.2.6.4-1+deb12u1 | DEBIAN-CVE-2024-26146 |
| Red Hat Enterprise Linux 9 | pcs | Fixed | 0:0.11.7-2.el9_4 | RHSA-2024:2113 |
| Red Hat Enterprise Linux 9 | pcs-snmp | Fixed | 0:0.11.7-2.el9_4 | RHSA-2024:2113 |
| Red Hat Enterprise Linux 8 | pcs | Fixed | 0:0.10.18-2.el8_10 | RHSA-2024:2953 |
| Red Hat Enterprise Linux 8 | pcs-snmp | Fixed | 0:0.10.18-2.el8_10 | RHSA-2024:2953 |
| Red Hat Enterprise Linux 7 | pcs | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | pcs-snmp | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | python-clufter | Will not fix Out of support scope | ||
| AlmaLinux 9 | pcs | Fixed | 0.11.7-2.el9_4 | ALSA-2024:2113 |
| AlmaLinux 9 | pcs-snmp | Fixed | 0.11.7-2.el9_4 | ALSA-2024:2113 |
| AlmaLinux 8 | pcs | Fixed | 0.10.18-2.el8_10 | ALSA-2024:2953 |
| AlmaLinux 8 | pcs-snmp | Fixed | 0.10.18-2.el8_10 | ALSA-2024:2953 |
| Rocky Linux 8 | pcs | Fixed | 0:0.10.18-2.el8_10 | RLSA-2024:2953 |
| RubyGems library | rack | Fixed | 3.0.9.1 | GHSA-54rr-7fvw-6x8f |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- rack: affected: >= 3.0.0, < 3.0.9.1, >= 2.2.0, < 2.2.8.1, >= 2.1.0, < 2.1.4.4, < 2.0.9.4
References
- https://github.com/rack/rack/security/advisories/GHSA-54rr-7fvw-6x8f
- https://github.com/rack/rack/commit/30b8e39a578b25d4bdcc082c1c52c6f164b59716
- https://github.com/rack/rack/commit/6c5d90bdcec0949f7ba06db62fb740dab394b582
- https://github.com/rack/rack/commit/a227cd793778c7c3a827d32808058571569cda6f
- https://github.com/rack/rack/commit/e4c117749ba24a66f8ec5a08eddf68deeb425ccd
- https://discuss.rubyonrails.org/t/possible-denial-of-service-vulnerability-in-rack-header-parsing/84942
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rack/CVE-2024-26146.yml
- https://lists.debian.org/debian-lts-announce/2024/04/msg00022.html
- https://security.netapp.com/advisory/ntap-20240510-0006/
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.