Ruby/puma/6.0.1


Puma is a simple, fast, multi-threaded, and highly parallel HTTP 1.1 server for Ruby/Rack applications. Puma is intended for use in both development and production environments. It's great for highly parallel Ruby implementations such as JRuby and TruffleRuby as well as as providing process worker support to support CRuby well.

https://rubygems.org/gems/puma
BSD-3-Clause

10 Security Vulnerabilities

Puma PROXY Protocol v1 Accepts Repeated Protocol Headers on Persistent Connections

Published date: 2026-06-09T00:09:44Z
CVE: CVE-2026-47737
Links:

Impact

Puma is vulnerable to source IP spoofing when set_remote_address proxy_protocol: :v1 is enabled and persistent connections are used.

PROXY protocol v1 is a connection-level protocol. Support was added to Puma in v5.5.0. A proxy sends one PROXY header at the beginning of a TCP connection, before any HTTP data. Puma incorrectly re-parsed PROXY protocol headers after each keep-alive request on the same connection. An attacker able to send HTTP requests through a trusted proxy could therefore inject a second PROXY header between HTTP requests. Puma would treat the injected header as authoritative for the next request and overwrite REMOTE_ADDR.

This can mislead applications or middleware that use REMOTE_ADDR for security decisions, rate limiting, auditing, or allow/deny lists.

Only deployments that explicitly enable PROXY protocol v1 are affected, and will have set:

set_remote_address proxy_protocol: :v1

Puma's default configuration is not affected. Deployments that do not use persistent connections to Puma are also not expected to be affected by this issue.

Patches

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

Users can also disable persistent connections to Puma, for example:

enable_keep_alives false

References

Affected versions: ["7.2.0", "7.1.0", "7.0.4", "7.0.3", "7.0.2", "7.0.1", "7.0.0", "7.0.0.pre1", "6.6.1", "6.6.0", "6.5.0", "6.4.3", "6.4.2", "6.4.1", "6.4.0", "6.3.1", "6.3.0", "6.2.2", "6.2.1", "6.2.0", "6.1.1", "6.1.0", "6.0.2", "6.0.1", "6.0.0", "5.6.9", "5.6.8", "5.6.7", "5.6.6", "5.6.5", "5.6.4", "5.6.2", "5.6.1", "5.6.0", "5.5.2", "5.5.1", "5.5.0", "8.0.1", "8.0.0"]
Secure versions: [7.2.1, 8.0.2]
Recommendation: Update to version 8.0.2.

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

Published date: 2024-09-20T14:40:16Z
CVE: CVE-2024-45614
Links:

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

Affected versions: ["6.4.2", "6.4.1", "6.4.0", "6.3.1", "6.3.0", "6.2.2", "6.2.1", "6.2.0", "6.1.1", "6.1.0", "6.0.2", "6.0.1", "6.0.0", "5.6.8", "5.6.7", "5.6.6", "5.6.5", "5.6.4", "5.6.2", "5.6.1", "5.6.0", "5.5.2", "5.5.1", "5.5.0", "5.4.0", "5.3.2", "5.3.1", "5.3.0", "5.2.2", "5.2.1", "5.2.0", "5.1.1", "5.1.0", "5.0.4", "5.0.3", "5.0.2", "5.0.1", "5.0.0", "5.0.0.beta2", "5.0.0.beta1", "4.3.12", "4.3.11", "4.3.10", "4.3.9", "4.3.8", "4.3.7", "4.3.6", "4.3.5", "4.3.4", "4.3.3", "4.3.1", "4.3.0", "4.2.1", "4.2.0", "4.1.1", "4.1.0", "4.0.1", "4.0.0", "3.12.6", "3.12.5", "3.12.4", "3.12.2", "3.12.1", "3.12.0", "3.11.4", "3.11.3", "3.11.2", "3.11.1", "3.11.0", "3.10.0", "3.9.1", "3.9.0", "3.8.2", "3.8.1", "3.8.0", "3.7.1", "3.7.0", "3.6.2", "3.6.1", "3.6.0", "3.5.2", "3.5.1", "3.5.0", "3.4.0", "3.3.0", "3.2.0", "3.1.1", "3.1.0", "3.0.2", "3.0.1", "3.0.0", "3.0.0.rc1", "2.16.0", "2.15.3", "2.15.2", "2.15.1", "2.15.0", "2.14.0", "2.13.4", "2.13.3", "2.13.2", "2.13.1", "2.13.0", "2.12.3", "2.12.2", "2.12.1", "2.12.0", "2.11.3", "2.11.2", "2.11.1", "2.11.0", "2.10.2", "2.10.1", "2.10.0", "2.9.2", "2.9.1", "2.9.0", "2.8.2", "2.8.1", "2.8.0", "2.7.1", "2.7.0", "2.6.0", "2.5.1", "2.5.0", "2.4.1", "2.4.0", "2.3.2", "2.3.1", "2.3.0", "2.2.2", "2.2.1", "2.2.0", "2.1.1", "2.1.0", "2.0.1", "2.0.0", "2.0.0.b7", "2.0.0.b6", "2.0.0.b5", "2.0.0.b4", "2.0.0.b3", "2.0.0.b2", "2.0.0.b1", "1.6.3", "1.6.2", "1.6.1", "1.6.0", "1.5.0", "1.4.0", "1.3.1", "1.3.0", "1.2.2", "1.2.1", "1.2.0", "1.1.1", "1.1.0", "1.0.0", "0.9.5", "0.9.4", "0.9.3", "0.9.2", "0.9.1", "0.9.0", "0.8.2", "0.8.1", "0.8.0"]
Secure versions: [7.2.1, 8.0.2]
Recommendation: Update to version 8.0.2.

Puma HTTP Request/Response Smuggling vulnerability

Published date: 2024-01-08T15:56:48Z
CVE: CVE-2024-21647
Links:

Impact

Prior to versions 6.4.2 and 5.6.8, puma exhibited dangerous behavior when parsing chunked transfer encoding bodies.

Fixed versions limit the size of chunk extensions. Without this limit, an attacker could cause unbounded resource (CPU, network bandwidth) consumption.

Patches

The vulnerability has been fixed in 6.4.2 and 5.6.8.

Workarounds

No known workarounds.

References

Affected versions: ["5.6.7", "5.6.6", "5.6.5", "5.6.4", "5.6.2", "5.6.1", "5.6.0", "5.5.2", "5.5.1", "5.5.0", "5.4.0", "5.3.2", "5.3.1", "5.3.0", "5.2.2", "5.2.1", "5.2.0", "5.1.1", "5.1.0", "5.0.4", "5.0.3", "5.0.2", "5.0.1", "5.0.0", "5.0.0.beta2", "5.0.0.beta1", "4.3.12", "4.3.11", "4.3.10", "4.3.9", "4.3.8", "4.3.7", "4.3.6", "4.3.5", "4.3.4", "4.3.3", "4.3.1", "4.3.0", "4.2.1", "4.2.0", "4.1.1", "4.1.0", "4.0.1", "4.0.0", "3.12.6", "3.12.5", "3.12.4", "3.12.2", "3.12.1", "3.12.0", "3.11.4", "3.11.3", "3.11.2", "3.11.1", "3.11.0", "3.10.0", "3.9.1", "3.9.0", "3.8.2", "3.8.1", "3.8.0", "3.7.1", "3.7.0", "3.6.2", "3.6.1", "3.6.0", "3.5.2", "3.5.1", "3.5.0", "3.4.0", "3.3.0", "3.2.0", "3.1.1", "3.1.0", "3.0.2", "3.0.1", "3.0.0", "3.0.0.rc1", "2.16.0", "2.15.3", "2.15.2", "2.15.1", "2.15.0", "2.14.0", "2.13.4", "2.13.3", "2.13.2", "2.13.1", "2.13.0", "2.12.3", "2.12.2", "2.12.1", "2.12.0", "2.11.3", "2.11.2", "2.11.1", "2.11.0", "2.10.2", "2.10.1", "2.10.0", "2.9.2", "2.9.1", "2.9.0", "2.8.2", "2.8.1", "2.8.0", "2.7.1", "2.7.0", "2.6.0", "2.5.1", "2.5.0", "2.4.1", "2.4.0", "2.3.2", "2.3.1", "2.3.0", "2.2.2", "2.2.1", "2.2.0", "2.1.1", "2.1.0", "2.0.1", "2.0.0", "2.0.0.b7", "2.0.0.b6", "2.0.0.b5", "2.0.0.b4", "2.0.0.b3", "2.0.0.b2", "2.0.0.b1", "1.6.3", "1.6.2", "1.6.1", "1.6.0", "1.5.0", "1.4.0", "1.3.1", "1.3.0", "1.2.2", "1.2.1", "1.2.0", "1.1.1", "1.1.0", "1.0.0", "0.9.5", "0.9.4", "0.9.3", "0.9.2", "0.9.1", "0.9.0", "0.8.2", "0.8.1", "0.8.0", "6.4.1", "6.4.0", "6.3.1", "6.3.0", "6.2.2", "6.2.1", "6.2.0", "6.1.1", "6.1.0", "6.0.2", "6.0.1", "6.0.0"]
Secure versions: [7.2.1, 8.0.2]
Recommendation: Update to version 8.0.2.

Puma PROXY Protocol v1 Parser Allows Remote Memory Exhaustion

Published date: 2026-06-08T23:55:44Z
CVE: CVE-2026-47736
Links:

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: :v1

Patches

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

Affected versions: ["7.2.0", "7.1.0", "7.0.4", "7.0.3", "7.0.2", "7.0.1", "7.0.0", "7.0.0.pre1", "6.6.1", "6.6.0", "6.5.0", "6.4.3", "6.4.2", "6.4.1", "6.4.0", "6.3.1", "6.3.0", "6.2.2", "6.2.1", "6.2.0", "6.1.1", "6.1.0", "6.0.2", "6.0.1", "6.0.0", "5.6.9", "5.6.8", "5.6.7", "5.6.6", "5.6.5", "5.6.4", "5.6.2", "5.6.1", "5.6.0", "5.5.2", "5.5.1", "5.5.0", "8.0.1", "8.0.0"]
Secure versions: [7.2.1, 8.0.2]
Recommendation: Update to version 8.0.2.

Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling') in puma

Published date: 2023-08-18
CVE: 2023-40175
CVSS V3: 6.5
Links:

Impact

Prior to version 6.3.1, puma exhibited incorrect behavior when parsing chunked transfer encoding bodies and zero-length Content-Length headers in a way that allowed HTTP request smuggling.

The following vulnerabilities are addressed by this advisory: - Incorrect parsing of trailing fields in chunked transfer encoding bodies - Parsing of blank/zero-length Content-Length headers\r\n

Patches

The vulnerability has been fixed in 6.3.1 and 5.6.7.

Workarounds

No known workarounds.

References

HTTP Request Smuggling

Affected versions: ["2.11.2", "2.8.0", "1.1.1", "4.3.4", "3.0.2", "2.9.0", "5.0.1", "3.12.2", "3.12.1", "2.16.0", "1.3.0", "2.15.3", "2.13.1", "5.0.0.beta2", "5.0.0.beta1", "4.3.0", "4.2.0", "3.11.4", "3.11.3", "3.9.1", "2.15.0", "2.12.2", "2.11.3", "3.9.0", "2.7.1", "2.5.0", "2.0.0.b1", "0.8.0", "3.12.4", "2.13.0", "2.1.0", "3.12.5", "3.5.1", "3.3.0", "3.0.1", "2.9.2", "2.4.0", "1.2.1", "0.8.1", "5.0.3", "5.0.0", "4.1.0", "3.5.0", "3.2.0", "2.9.1", "2.1.1", "1.6.1", "3.0.0", "2.10.0", "2.6.0", "2.0.0.b7", "1.6.3", "4.0.0", "3.5.2", "2.13.3", "2.0.0.b6", "2.0.0.b4", "2.0.0.b2", "4.1.1", "0.9.2", "4.3.5", "3.12.6", "2.3.1", "3.8.2", "3.1.1", "2.11.1", "2.4.1", "2.5.1", "2.0.0", "2.12.3", "1.2.2", "3.11.1", "3.8.0", "3.4.0", "2.10.2", "5.0.4", "3.11.0", "3.8.1", "3.6.0", "3.1.0", "3.6.1", "2.15.1", "2.12.1", "2.11.0", "1.1.0", "0.9.5", "3.7.1", "4.3.6", "3.7.0", "2.8.2", "1.4.0", "1.3.1", "1.6.0", "0.9.0", "3.10.0", "2.2.1", "2.0.0.b3", "0.9.1", "3.12.0", "3.11.2", "2.13.4", "2.3.0", "2.0.1", "2.0.0.b5", "1.2.0", "5.0.2", "3.6.2", "3.0.0.rc1", "2.15.2", "2.13.2", "2.10.1", "2.8.1", "2.2.0", "1.6.2", "0.9.3", "2.3.2", "4.3.1", "4.2.1", "4.0.1", "2.14.0", "0.8.2", "4.3.3", "2.12.0", "2.2.2", "1.0.0", "0.9.4", "2.7.0", "1.5.0", "5.1.0", "4.3.7", "5.1.1", "5.2.0", "5.2.1", "5.2.2", "5.3.0", "4.3.8", "5.3.1", "5.3.2", "5.4.0", "5.5.0", "4.3.9", "5.5.1", "5.5.2", "4.3.10", "4.3.11", "4.3.12", "6.0.0", "6.0.1", "6.0.2", "6.1.0", "6.1.1", "6.2.1", "6.2.0", "6.2.2", "6.3.0"]
Secure versions: [7.2.1, 8.0.2]
Recommendation: Update to version 8.0.2.

Puma HTTP Request/Response Smuggling vulnerability

Published date: 2024-01-08
CVE: 2024-21647
CVSS V3: 5.9
Links:

Impact

Prior to versions 6.4.2 and 5.6.8, puma exhibited incorrect behavior when parsing chunked transfer encoding bodies in a way that allowed HTTP request smuggling.

Fixed versions limit the size of chunk extensions. Without this limit, an attacker could cause unbounded resource (CPU, network bandwidth) consumption.

Patches

The vulnerability has been fixed in 6.4.2 and 5.6.8.

Workarounds

No known workarounds.

References

Affected versions: ["2.11.2", "2.8.0", "1.1.1", "4.3.4", "3.0.2", "2.9.0", "5.0.1", "3.12.2", "3.12.1", "2.16.0", "1.3.0", "2.15.3", "2.13.1", "5.0.0.beta2", "5.0.0.beta1", "4.3.0", "4.2.0", "3.11.4", "3.11.3", "3.9.1", "2.15.0", "2.12.2", "2.11.3", "3.9.0", "2.7.1", "2.5.0", "2.0.0.b1", "0.8.0", "3.12.4", "2.13.0", "2.1.0", "3.12.5", "3.5.1", "3.3.0", "3.0.1", "2.9.2", "2.4.0", "1.2.1", "0.8.1", "5.0.3", "5.0.0", "4.1.0", "3.5.0", "3.2.0", "2.9.1", "2.1.1", "1.6.1", "3.0.0", "2.10.0", "2.6.0", "2.0.0.b7", "1.6.3", "4.0.0", "3.5.2", "2.13.3", "2.0.0.b6", "2.0.0.b4", "2.0.0.b2", "4.1.1", "0.9.2", "4.3.5", "3.12.6", "2.3.1", "3.8.2", "3.1.1", "2.11.1", "2.4.1", "2.5.1", "2.0.0", "2.12.3", "1.2.2", "3.11.1", "3.8.0", "3.4.0", "2.10.2", "5.0.4", "3.11.0", "3.8.1", "3.6.0", "3.1.0", "3.6.1", "2.15.1", "2.12.1", "2.11.0", "1.1.0", "0.9.5", "3.7.1", "4.3.6", "3.7.0", "2.8.2", "1.4.0", "1.3.1", "1.6.0", "0.9.0", "3.10.0", "2.2.1", "2.0.0.b3", "0.9.1", "3.12.0", "3.11.2", "2.13.4", "2.3.0", "2.0.1", "2.0.0.b5", "1.2.0", "5.0.2", "3.6.2", "3.0.0.rc1", "2.15.2", "2.13.2", "2.10.1", "2.8.1", "2.2.0", "1.6.2", "0.9.3", "2.3.2", "4.3.1", "4.2.1", "4.0.1", "2.14.0", "0.8.2", "4.3.3", "2.12.0", "2.2.2", "1.0.0", "0.9.4", "2.7.0", "1.5.0", "5.1.0", "4.3.7", "5.1.1", "5.2.0", "5.2.1", "5.2.2", "5.3.0", "4.3.8", "5.3.1", "5.3.2", "5.4.0", "5.5.0", "4.3.9", "5.5.1", "5.5.2", "4.3.10", "4.3.11", "4.3.12", "6.0.0", "6.0.1", "6.0.2", "6.1.0", "6.1.1", "6.2.1", "6.2.0", "6.2.2", "6.3.0", "6.3.1", "6.4.0", "6.4.1"]
Secure versions: [7.2.1, 8.0.2]
Recommendation: Update to version 8.0.2.

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

Published date: 2024-09-20
CVE: 2024-45614
CVSS V3: 5.4
Links:

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

Affected versions: ["2.11.2", "2.8.0", "1.1.1", "4.3.4", "3.0.2", "2.9.0", "5.0.1", "3.12.2", "3.12.1", "2.16.0", "1.3.0", "2.15.3", "2.13.1", "5.0.0.beta2", "5.0.0.beta1", "4.3.0", "4.2.0", "3.11.4", "3.11.3", "3.9.1", "2.15.0", "2.12.2", "2.11.3", "3.9.0", "2.7.1", "2.5.0", "2.0.0.b1", "0.8.0", "3.12.4", "2.13.0", "2.1.0", "3.12.5", "3.5.1", "3.3.0", "3.0.1", "2.9.2", "2.4.0", "1.2.1", "0.8.1", "5.0.3", "5.0.0", "4.1.0", "3.5.0", "3.2.0", "2.9.1", "2.1.1", "1.6.1", "3.0.0", "2.10.0", "2.6.0", "2.0.0.b7", "1.6.3", "4.0.0", "3.5.2", "2.13.3", "2.0.0.b6", "2.0.0.b4", "2.0.0.b2", "4.1.1", "0.9.2", "4.3.5", "3.12.6", "2.3.1", "3.8.2", "3.1.1", "2.11.1", "2.4.1", "2.5.1", "2.0.0", "2.12.3", "1.2.2", "3.11.1", "3.8.0", "3.4.0", "2.10.2", "5.0.4", "3.11.0", "3.8.1", "3.6.0", "3.1.0", "3.6.1", "2.15.1", "2.12.1", "2.11.0", "1.1.0", "0.9.5", "3.7.1", "4.3.6", "3.7.0", "2.8.2", "1.4.0", "1.3.1", "1.6.0", "0.9.0", "3.10.0", "2.2.1", "2.0.0.b3", "0.9.1", "3.12.0", "3.11.2", "2.13.4", "2.3.0", "2.0.1", "2.0.0.b5", "1.2.0", "5.0.2", "3.6.2", "3.0.0.rc1", "2.15.2", "2.13.2", "2.10.1", "2.8.1", "2.2.0", "1.6.2", "0.9.3", "2.3.2", "4.3.1", "4.2.1", "4.0.1", "2.14.0", "0.8.2", "4.3.3", "2.12.0", "2.2.2", "1.0.0", "0.9.4", "2.7.0", "1.5.0", "5.1.0", "4.3.7", "5.1.1", "5.2.0", "5.2.1", "5.2.2", "5.3.0", "4.3.8", "5.3.1", "5.3.2", "5.4.0", "5.5.0", "4.3.9", "5.5.1", "5.5.2", "4.3.10", "4.3.11", "4.3.12", "6.0.0", "6.0.1", "6.0.2", "6.1.0", "6.1.1", "6.2.1", "6.2.0", "6.2.2", "6.3.0", "6.3.1", "6.4.0", "6.4.1", "6.4.2"]
Secure versions: [7.2.1, 8.0.2]
Recommendation: Update to version 8.0.2.

Puma PROXY Protocol v1 Parser Allows Remote Memory Exhaustion

Published date: 2026-05-27
CVE: 2026-47736
CVSS V3: 7.5
Links:

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:

setremoteaddress proxy_protocol: :v1

Workarounds

  • Disable PROXY protocol v1 parsing if it is not required:

    remove/comment this:

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

Affected versions: ["5.5.0", "5.5.1", "5.5.2", "5.6.0", "5.6.1", "5.6.2", "5.6.4", "5.6.5", "6.0.0", "6.0.1", "6.0.2", "6.1.0", "6.1.1", "6.2.1", "6.2.0", "6.2.2", "6.3.0", "5.6.6", "6.3.1", "5.6.7", "6.4.0", "6.4.1", "6.4.2", "5.6.8", "6.4.3", "5.6.9", "6.5.0", "6.6.0", "7.0.0.pre1", "6.6.1", "7.0.0", "7.0.1", "7.0.2", "7.0.3", "7.0.4", "7.1.0", "8.0.0", "8.0.1"]
Secure versions: [7.2.1, 8.0.2]
Recommendation: Update to version 8.0.2.

Puma PROXY Protocol v1 Accepts Repeated Protocol Headers on Persistent Connections

Published date: 2026-05-27
CVE: 2026-47737
CVSS V3: 7.5
Links:

Impact

Puma is vulnerable to source IP spoofing when setremoteaddress proxy_protocol: :v1 is enabled and persistent connections are used.

PROXY protocol v1 is a connection-level protocol. Support was added to Puma in v5.5.0. A proxy sends one PROXY header at the beginning of a TCP connection, before any HTTP data. Puma incorrectly re-parsed PROXY protocol headers after each keep-alive request on the same connection. An attacker able to send HTTP requests through a trusted proxy could therefore inject a second PROXY header between HTTP requests. Puma would treat the injected header as authoritative for the next request and overwrite REMOTE_ADDR.

This can mislead applications or middleware that use REMOTE_ADDR for security decisions, rate limiting, auditing, or allow/deny lists.

Only deployments that explicitly enable PROXY protocol v1 are affected, and will have set:

setremoteaddress proxy_protocol: :v1

Puma's default configuration is not affected. Deployments that do not use persistent connections to Puma are also not expected to be affected by this issue.

Workarounds

  • Disable PROXY protocol v1 parsing if it is not required:

# remove/comment this: # setremoteaddress proxy_protocol: :v1

Users can also disable persistent connections to Puma, for example:

enablekeepalives false

Affected versions: ["5.5.0", "5.5.1", "5.5.2", "5.6.0", "5.6.1", "5.6.2", "5.6.4", "5.6.5", "6.0.0", "6.0.1", "6.0.2", "6.1.0", "6.1.1", "6.2.1", "6.2.0", "6.2.2", "6.3.0", "5.6.6", "6.3.1", "5.6.7", "6.4.0", "6.4.1", "6.4.2", "5.6.8", "6.4.3", "5.6.9", "6.5.0", "6.6.0", "7.0.0.pre1", "6.6.1", "7.0.0", "7.0.1", "7.0.2", "7.0.3", "7.0.4", "7.1.0", "8.0.0", "8.0.1"]
Secure versions: [7.2.1, 8.0.2]
Recommendation: Update to version 8.0.2.

Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling') in puma

Published date: 2023-08-18
CVSS V3: 6.5
Links:

Impact

Prior to version 6.3.1, puma exhibited incorrect behavior when parsing chunked transfer encoding bodies and zero-length Content-Length headers in a way that allowed HTTP request smuggling.

The following vulnerabilities are addressed by this advisory: - Incorrect parsing of trailing fields in chunked transfer encoding bodies - Parsing of blank/zero-length Content-Length headers\r\n

Patches

The vulnerability has been fixed in 6.3.1 and 5.6.7.

Workarounds

No known workarounds.

References

HTTP Request Smuggling

Affected versions: ["5.0.4", "5.0.3", "5.0.2", "5.0.1", "5.0.0", "5.0.0.beta2", "5.0.0.beta1", "4.3.6", "4.3.5", "4.3.4", "4.3.3", "4.3.1", "4.3.0", "4.2.1", "4.2.0", "4.1.1", "4.1.0", "4.0.1", "4.0.0", "3.12.6", "3.12.5", "3.12.4", "3.12.2", "3.12.1", "3.12.0", "3.11.4", "3.11.3", "3.11.2", "3.11.1", "3.11.0", "3.10.0", "3.9.1", "3.9.0", "3.8.2", "3.8.1", "3.8.0", "3.7.1", "3.7.0", "3.6.2", "3.6.1", "3.6.0", "3.5.2", "3.5.1", "3.5.0", "3.4.0", "3.3.0", "3.2.0", "3.1.1", "3.1.0", "3.0.2", "3.0.1", "3.0.0", "3.0.0.rc1", "2.16.0", "2.15.3", "2.15.2", "2.15.1", "2.15.0", "2.14.0", "2.13.4", "2.13.3", "2.13.2", "2.13.1", "2.13.0", "2.12.3", "2.12.2", "2.12.1", "2.12.0", "2.11.3", "2.11.2", "2.11.1", "2.11.0", "2.10.2", "2.10.1", "2.10.0", "2.9.2", "2.9.1", "2.9.0", "2.8.2", "2.8.1", "2.8.0", "2.7.1", "2.7.0", "2.6.0", "2.5.1", "2.5.0", "2.4.1", "2.4.0", "2.3.2", "2.3.1", "2.3.0", "2.2.2", "2.2.1", "2.2.0", "2.1.1", "2.1.0", "2.0.1", "2.0.0", "2.0.0.b7", "2.0.0.b6", "2.0.0.b5", "2.0.0.b4", "2.0.0.b3", "2.0.0.b2", "2.0.0.b1", "1.6.3", "1.6.2", "1.6.1", "1.6.0", "1.5.0", "1.4.0", "1.3.1", "1.3.0", "1.2.2", "1.2.1", "1.2.0", "1.1.1", "1.1.0", "1.0.0", "0.9.5", "0.9.4", "0.9.3", "0.9.2", "0.9.1", "0.9.0", "0.8.2", "0.8.1", "0.8.0", "5.1.0", "4.3.7", "5.1.1", "5.2.0", "5.2.1", "5.2.2", "5.3.0", "5.3.1", "4.3.8", "5.3.2", "5.4.0", "5.5.0", "5.5.1", "4.3.9", "5.5.2", "4.3.10", "4.3.11", "4.3.12", "6.0.0", "6.0.1", "6.0.2", "6.1.0", "6.1.1", "6.2.1", "6.2.0", "6.2.2", "6.3.0"]
Secure versions: [7.2.1, 8.0.2]
Recommendation: Update to version 8.0.2.

184 Other Versions

Version License Security Released
8.0.2 BSD-3-Clause 2026-05-26 - 23:28 about 1 month
8.0.1 BSD-3-Clause 4 2026-04-26 - 22:52 2 months
8.0.0 BSD-3-Clause 4 2026-04-09 - 00:41 3 months
7.2.1 BSD-3-Clause 2026-05-27 - 00:17 about 1 month
7.2.0 BSD-3-Clause 2 2026-01-21 - 05:50 6 months
7.1.0 BSD-3-Clause 4 2025-10-17 - 15:36 9 months
7.0.4 BSD-3-Clause 4 2025-09-23 - 15:34 10 months
7.0.3 BSD-3-Clause 4 2025-09-14 - 02:17 10 months
7.0.2 BSD-3-Clause 4 2025-09-09 - 02:57 10 months
7.0.1 BSD-3-Clause 4 2025-09-05 - 21:44 10 months
7.0.0 BSD-3-Clause 4 2025-09-03 - 18:38 10 months
7.0.0.pre1 BSD-3-Clause 4 2025-07-31 - 22:26 11 months
6.6.1 BSD-3-Clause 4 2025-07-31 - 21:06 11 months
6.6.0 BSD-3-Clause 4 2025-01-28 - 23:05 over 1 year
6.5.0 BSD-3-Clause 4 2024-11-22 - 23:52 over 1 year
6.4.3 BSD-3-Clause 4 2024-09-19 - 05:50 almost 2 years
6.4.2 BSD-3-Clause 6 2024-01-08 - 05:57 over 2 years
6.4.1 BSD-3-Clause 8 2024-01-03 - 00:05 over 2 years
6.4.0 BSD-3-Clause 8 2023-09-21 - 04:15 almost 3 years
6.3.1 BSD-3-Clause 8 2023-08-18 - 01:22 almost 3 years
6.3.0 BSD-3-Clause 10 2023-05-31 - 07:16 about 3 years
6.2.2 BSD-3-Clause 10 2023-04-17 - 22:44 about 3 years
6.2.1 BSD-3-Clause 10 2023-03-31 - 06:53 over 3 years
6.2.0 BSD-3-Clause 10 2023-03-29 - 06:55 over 3 years
6.1.1 BSD-3-Clause 10 2023-02-28 - 07:40 over 3 years
6.1.0 BSD-3-Clause 10 2023-02-12 - 04:58 over 3 years
6.0.2 BSD-3-Clause 10 2023-01-01 - 22:04 over 3 years
6.0.1 BSD-3-Clause 10 2022-12-20 - 20:21 over 3 years
6.0.0 BSD-3-Clause 10 2022-10-14 - 02:33 over 3 years
5.6.9 BSD-3-Clause 4 2024-09-19 - 05:41 almost 2 years
5.6.8 BSD-3-Clause 5 2024-01-08 - 06:09 over 2 years
5.6.7 BSD-3-Clause 6 2023-08-18 - 05:58 almost 3 years
5.6.6 BSD-3-Clause 6 2023-06-21 - 02:59 about 3 years
5.6.5 BSD-3-Clause 6 2022-08-23 - 06:04 almost 4 years
5.6.4 BSD-3-Clause 6 2022-03-30 - 16:15 over 4 years
5.6.2 BSD-3-Clause 8 2022-02-11 - 21:17 over 4 years
5.6.1 BSD-3-Clause 10 2022-01-27 - 00:40 over 4 years
5.6.0 BSD-3-Clause 10 2022-01-25 - 21:21 over 4 years
5.5.2 BSD-3-Clause 14 2021-10-12 - 23:08 over 4 years
5.5.1 BSD-3-Clause 14 2021-10-12 - 15:11 over 4 years
5.5.0 BSD-3-Clause 16 2021-09-19 - 20:09 almost 5 years
5.4.0 BSD-3-Clause 12 2021-07-29 - 14:31 almost 5 years
5.3.2 BSD-3-Clause 12 2021-05-21 - 17:17 about 5 years
5.3.1 BSD-3-Clause 12 2021-05-11 - 14:56 about 5 years
5.3.0 BSD-3-Clause 14 2021-05-07 - 15:01 about 5 years
5.2.2 BSD-3-Clause 14 2021-03-02 - 16:08 over 5 years
5.2.1 BSD-3-Clause 14 2021-02-05 - 22:28 over 5 years
5.2.0 BSD-3-Clause 14 2021-01-27 - 20:43 over 5 years
5.1.1 BSD-3-Clause 14 2020-12-10 - 15:28 over 5 years
5.1.0 BSD-3-Clause 14 2020-11-30 - 17:33 over 5 years