CVE-2024-45614
Header normalization allows for client to clobber proxy set headers in Puma
Reported by github_m · Published September 19, 2024
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| logstash | Wolfi | 8.15.2-r1 |
| gitlab-cng-18.1 | Chainguard | 18.1.3-r2 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| puma | puma | >= 6.0.0, < 6.4.3, < 5.6.9 |
| wolfi | logstash | 0 |
| chainguard | gitlab-cng-18.1 | 0 |
| chainguard | logstash | 0 |
| RubyGems | puma | 6.0.0, 0 |
| puma | puma | 0, 6.0.0 |
| wolfi | gitlab-cng-18.2 | 0 |
| chainguard | ruby3.2-puma | 0 |
| chainguard | gitlab-cng-18.2 | 0 |
| chainguard | logstash-jre-bcfips | 0 |
| wolfi | ruby3.2-puma | 0 |
| wolfi | gitlab-cng-18.1 | 0 |
Timeline
- Sep 19, 2024 CVE Published
- Sep 20, 2024 EPSS Score (30 in total, the first dated here)
- Sep 20, 2024 PoC Published (2 in total, the first dated here)
- Oct 5, 2024 Coalition ESS Score (30 in total, the first dated here)
- Nov 3, 2025 CVE Updated
- Jan 5, 2026 Security Advisory (3 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-45614
vulnetix vdb fixes CVE-2024-45614
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-45614/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/puma/puma/security/advisories/GHSA-9hf4-67fc-4vf4 x_refsource_CONFIRM
- https://nginx.org/en/docs/http/ngx_http_core_module.html#underscores_in_headers x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2024-45614 advisory
- https://github.com/advisories/GHSA-9hf4-67fc-4vf4 advisory
- https://github.com/puma/puma/commit/cac3fd18cf29ed43719ff5d52d9cfec215f0a043 patch
- https://github.com/puma/puma/commit/f196b23be24712fb8fb16051cc124798cc84f70e patch
- https://github.com/puma/puma url
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/puma/CVE-2024-45614.yml advisory
- https://lists.debian.org/debian-lts-announce/2024/11/msg00004.html url