RubySec

Providing security resources for the Ruby community

GHSA-4v6q-hvv7-49h9 (puma): Memory exhaustion with SSL connections

Memory exhaustion with SSL connections

Published: November 16, 2026

SECURITY IDENTIFIERS

GEM

puma

PATCHED VERSIONS

~> 7.2.3 ~> 8.0.4 >= 8.1.2

DESCRIPTION

Impact

An unauthenticated client can cause excessive memory use in a Puma process with an SSL binding, with no limit, until first_data_timeout closes the connection.

When OpenSSL hits a fatal error while reading a TLS record, Puma's MiniSSL C extension checks SSL_want_read() before SSL_get_error(), so it treats the fatal error as "need more data". Puma then keeps passing everything the client sends to OpenSSL's input buffer, which is never read again.

This is not present on unencrypted (UNIX, TCP) Puma binds. A plaintext listener closes a connection that sends more than 112 KB without a complete request.

What configurations are affected

Deployments on MRI where Puma uses ssl:// or ssl_bind:

  • ssl_bind "0.0.0.0", "9292", cert: "/path/to/cert.pem", key: "/path/to/key.pem"

The default configuration, which binds plain TCP, is not affected. JRuby uses a separate TLS implementation.

RELATED