CVE-2024-45614Header normalization allows for client to clobber proxy set headers in Puma
Puma is a Ruby/Rack web server built for parallelism. In affected versions clients could clobber values set by intermediate proxies (such as X-Forwarded-For) by providing a underscore version of the same header (X-Forwarded_For). Any users relying on proxy set variables is affected. v6.4.3/v5.6.9 now discards any headers using underscores if the non-underscore version also exists. Effectively, allowing the proxy defined headers to always win. Users are advised to upgrade. Nginx has a underscores_in_headers configuration variable to discard these headers at the proxy level as a mitigation. Any users that are implicitly trusting the proxy defined headers for security should immediately cease doing so until upgraded to the fixed versions.
What to do
Fixed builds are available from Debian, 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 | puma | Fixed | 6.4.2-4ubuntu4.3 | UBUNTU-CVE-2024-45614 |
| Ubuntu 22.04 | puma | Fix pending | 5.5.2-2ubuntu2+esm2 (Ubuntu Pro) | UBUNTU-CVE-2024-45614 |
| Ubuntu 20.04 | puma | Fix pending | 3.12.4-1ubuntu2+esm2 (Ubuntu Pro) | UBUNTU-CVE-2024-45614 |
| Debian 14 | puma | Fixed | 6.4.3-1 | DEBIAN-CVE-2024-45614 |
| Debian 13 | puma | Fixed | 6.4.3-1 | DEBIAN-CVE-2024-45614 |
| Debian 12 | puma | Fixed | 5.6.5-3+deb12u1 | DEBIAN-CVE-2024-45614 |
| Red Hat Enterprise Linux 9 | pcs | Not affected | ||
| Red Hat Enterprise Linux 9 | pcs-snmp | Not affected | ||
| Red Hat Enterprise Linux 8 | pcs | Not affected | ||
| Red Hat Enterprise Linux 8 | pcs-snmp | Not affected | ||
| RubyGems library | puma | Fixed | 5.6.9 | GHSA-9hf4-67fc-4vf4 |
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.
- puma: affected: >= 6.0.0, < 6.4.3, < 5.6.9
References
- https://github.com/puma/puma/security/advisories/GHSA-9hf4-67fc-4vf4
- https://nginx.org/en/docs/http/ngx_http_core_module.html#underscores_in_headers
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.