Loading...
Skip to main content

CVE-2024-45614

MEDIUM

Puma's header normalization allows for client to clobber proxy set headers

Published September 20, 2024Updated February 4, 2026Source: osv

Summary

### Impact 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 trusting headers set by their proxy may be affected. Attackers may be able to downgrade connections to HTTP (non-SSL) or redirect responses, which could cause confidentiality leaks if combined with a separate MITM attack. ### Patches 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. ### Workarounds Nginx has a [underscores_in_headers](https://nginx.org/en/docs/http/ngx_http_core_module.html#underscores_in_headers) configuration variable to discard these headers at the proxy level. Any users that are implicitly trusting the proxy defined headers for security or availability should immediately cease doing so until upgraded to the fixed versions.

Remediation

Upgrade to the fixed version using your package manager.

Bundler
Update puma to 6.4.3 or later
gem install puma -v 6.4.3
Bundler
Update puma to 5.6.9 or later
gem install puma -v 5.6.9

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (2)

PackageEcosystemAffectedFixed In
puma
rubygems
6.0.0, 6.0.1, 6.0.2, 6.1.0 (+9 more)6.4.3
puma
rubygems
0.8.0, 0.8.1, 0.8.2, 0.9.0 (+150 more)5.6.9

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 5.4 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N

Frequently Asked Questions

What is CVE-2024-45614?
Puma's header normalization allows for client to clobber proxy set headers This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 5.4/10).
How do I check if my project is affected by CVE-2024-45614?
CVE-2024-45614 affects puma. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2024-45614 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
5.4

Exploitation requires specific conditions or has limited impact. Remediate within weeks.

Also Known As

GHSA-9hf4-67fc-4vf4

Related CVEs

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies