CVE-2024-45614: Puma - Host Header Injection
- Cve: CVE-2024-45614
- Name: Puma - Host Header Injection
- Description: 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.
- Impact: Attackers can manipulate client IP and proxy-related headers, potentially bypassing security checks relying on these headers.
- Remediation: Upgrade to version 6.4.3 or 5.6.9, and configure your proxy to discard headers with underscores as a mitigation.
- Vulnerability type: host_header_injection
- Vulnerability impact: information_disclosure
- Requirement type: none
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 5.4
- Cvss vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N
- Epss score: 0.0064
- Epss percentile: 0.51408
- Assignee: [email protected]
- Published at: 2024-09-19T23:15:11Z
- Age in days: 796
- Modified at: 2026-06-17T07:54:34Z
- Patch available: yes
- Public exploits total: 1
- References total: 3
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2024-45614
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-639 | Authorization Bypass Through User-Controlled Key |
| CWE-444 | Inconsistent Interpretation of HTTP Requests |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/ooooooo-q/puma_header_normalization-CVE-2024-45614 | poc-in-github | 2024-09-28 |
References
Same in every row:
- Source: nvd
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| puma:puma | >= 6.0.0, < 6.4.3; < 5.6.9 | no | nvd | /v1/products/puma/puma |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| puma/puma | commit, fix, package, security_advisory | yes | /v1/repositories/puma/puma |
Index
- Repositories: 82
- Repositories high signal: 18
- Packages: 1
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2024-09-28
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts