Vulnerability · Published Sep 19, 2024 · Assigned by GitHub_M

CVE-2024-45614Header normalization allows for client to clobber proxy set headers in Puma

Medium 5.4

In plain English

A medium-severity authorization bypass via user-controlled key in puma from puma. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 51% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.4Medium
Exploit odds (30 days)0.6%top 49.1% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack tooling1Public PoC

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12puma5.6.5-3+deb12u1DEBIAN-CVE-2024-45614
Debian:13puma6.4.3-1DEBIAN-CVE-2024-45614
Debian:14puma6.4.3-1DEBIAN-CVE-2024-45614
RubyGemspuma5.6.9GHSA-9hf4-67fc-4vf4
RubyGemspuma6.4.3GHSA-9hf4-67fc-4vf4
Ubuntu:24.04:LTSpuma6.4.2-4ubuntu4.3USN-7031-1
Ubuntu:24.04:LTSpuma6.4.2-4ubuntu4.3UBUNTU-CVE-2024-45614

Affected products (as reported)

VendorProductVersions
puma puma >= 6.0.0, < 6.4.3< 5.6.9

Weakness: CWE-639 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N

References