CVE-2026-47736: Puma PROXY Protocol v1 Parser Allows Remote Memory Exhaustion
Impact PROXY protocol support for Puma was added in version 5.5.0. When PROXY protocol v1 support is enabled, Puma reads incoming bytes into an internal buffer. It waits for "\r\n" to determine whether a PROXY v1 line is present. If an attacker opens a TCP connection and continuously sends bytes without CRLF, Puma keeps appending to this pre-parse buffer.
Published Jun 8, 2026 · Updated Nov 2, 2026
Affected packages
puma
- Ecosystem
- RubyGems
- Affected
- >= 8.0.0, < 8.0.2
- Fixed in
- 8.0.2
- Check
bundle info puma
puma
- Ecosystem
- RubyGems
- Affected
- >= 5.5.0, < 7.2.1
- Fixed in
- 7.2.1
- Check
bundle info puma
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Impact
PROXY protocol support for Puma was added in version 5.5.0.
When PROXY protocol v1 support is enabled, Puma reads incoming bytes into an internal buffer. It waits for "\r\n" to determine whether a PROXY v1 line is present. If an attacker opens a TCP connection and continuously sends bytes without CRLF, Puma keeps appending to this pre-parse buffer.
This can cause unbounded in-process memory growth and additional CPU cost from repeatedly scanning the growing buffer for CRLF. A single, unauthenticated TCP connection can drive significant memory growth and may cause process/container OOM or degraded availability.
Only Puma servers using the following non-default config are affected:
set_remote_address proxy_protocol: :v1Patches
Users should upgrade to versions 7.2.1 or 8.0.2.
Workarounds
- Disable PROXY protocol v1 parsing if it is not required:
# remove/comment this:
# set_remote_address proxy_protocol: :v1- Restrict direct network access to Puma listeners using PROXY protocol:
- Only allow trusted load balancers/reverse proxies to connect.
- Block arbitrary client TCP access with firewall/security group rules.
Resources
Credited to Pirikara, ranjiGT.
References
- https://github.com/puma/puma/security/advisories/GHSA-qpgp-93vx-g8v8
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/puma/CVE-2026-47736.yml
- https://www.cve.org/CVERecord?id=CVE-2026-47736
- https://github.com/puma/puma/commit/439c6136d9c2275721b7864db3ee78af7c80889f
- https://github.com/puma/puma/commit/ebe9db3929ab8299d19c8f5b41e8ef4f4b22fa58
- https://github.com/puma/puma/releases/tag/v7.2.1
- https://github.com/puma/puma/releases/tag/v8.0.2
- https://nvd.nist.gov/vuln/detail/cve-2026-47736
- https://github.com/advisories/GHSA-qpgp-93vx-g8v8
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More RubyGems vulnerabilities
All RubyGems entriesCVE-2026-47737
Puma PROXY Protocol v1 Accepts Repeated Protocol Headers on Persistent Connections
high7.5Jun 9, 2026CVE-2024-45614
Puma's header normalization allows for client to clobber proxy set headers
medium5.4Sep 20, 2024CVE-2024-21647
Puma HTTP Request/Response Smuggling vulnerability
medium5.9Jan 8, 2024
