Puma
Puma PROXY Protocol v1 Accepts Repeated Protocol Headers on Persistent Connections
Puma is a Ruby/Rack web server built for parallelism. From 5.5.0 until 7.2.1 and 8.0.2, Puma is vulnerable to source IP spoofing when set_remote_address proxy_protocol: :v1 is enabled and persistent connections are used because Puma incorrectly re-parses PROXY protocol headers after each keep-alive request on the same connection, allowing an attacker to inject a second PROXY header and overwrite REMOTE_ADDR. This issue is fixed in versions 7.2.1 and 8.0.2.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS7.5high · scored by CNA · CWE-290
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
puma puma
- >= 5.5.0, < 7.2.1
- >= 8.0.0, < 8.0.2
Fixed in 7.2.1, 8.0.2
Mitigation
Upgrade puma to 7.2.1 or 8.0.2 or later.
References
- Vendor advisory github.com/puma/puma/security/advisories/GHSA-…
- Patch github.com/puma/puma/pull/3944
- Patch github.com/puma/puma/pull/3947
4 more
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.