Repository navigation
Two new puma advisories #1322
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Two new puma advisories #1322
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,49 @@ | ||
| --- | ||
| gem: puma | ||
| ghsa: 4v6q-hvv7-49h9 | ||
| url: https://github.com/puma/puma/security/advisories/GHSA-4v6q-hvv7-49h9 | ||
| title: Memory exhaustion with SSL connections | ||
| date: 2026-11-16 | ||
| 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. | ||
| cvss_v4: 6.9 | ||
| patched_versions: | ||
| - "~> 7.2.3" | ||
| - "~> 8.0.4" | ||
| - ">= 8.1.2" | ||
| related: | ||
| url: | ||
| - https://rubygems.org/gems/puma/versions/8.1.2 | ||
| - https://github.com/puma/puma/blob/main/History.md#812--2026-11-17 | ||
| - https://rubygems.org/gems/puma/versions/8.0.4 | ||
| - https://github.com/puma/puma/blob/main/History.md#804--2026-11-17 | ||
| - https://rubygems.org/gems/puma/versions/7.2.3 | ||
| - https://github.com/puma/puma/blob/main/History.md#723--2026-11-17 | ||
| - https://docs.openssl.org/master/man3/SSL_get_error | ||
| - https://github.com/puma/puma/security/advisories/GHSA-4v6q-hvv7-49h9 | ||
| notes: | | ||
| - No CVE from GHSA URL. | ||
| - cvss_v4 from GHSA URL. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| --- | ||
| gem: puma | ||
| platform: jruby | ||
| ghsa: rhww-p99c-hgj9 | ||
| url: https://github.com/puma/puma/security/advisories/GHSA-rhww-p99c-hgj9 | ||
| title: JRuby HTTP parser lets request headers change the request | ||
| path and query string, bypassing proxy URL rules | ||
| date: 2026-11-16 | ||
| description: | | ||
| ## Impact | ||
|
|
||
| On JRuby, an unauthenticated client can use request headers to | ||
| change Rack env keys that Puma should build only from the request | ||
| line, such as QUERY_STRING and PATH_INFO. | ||
|
|
||
| If an application behind a proxy, WAF, or other firewall that makes | ||
| decisions based on the request line, this could be abused so that | ||
| the app can receive a different path or query. Examples might include | ||
| rules like: "only certain IPs can reach /admin", "URLs must be | ||
| correctly signed", or "URLs must not match this pattern of a known attacker". | ||
|
|
||
| Examples: | ||
|
|
||
| * GET /search?q=x with Query-String: &role=admin: WAF sees the query | ||
| string as q=x, but Rack parses the params as {"q"=>"x, ", "role"=>"admin"}. | ||
|
|
||
| * GET http://example.com/public HTTP/1.1 (absolute-form) with | ||
| Request-Path: /admin: WAF or proxy sees /public, but Rack thinks | ||
| PATH_INFO is /admin. | ||
| cvss_v4: 6.3 | ||
| unaffected_versions: | ||
| - "< 8.0.0" | ||
| patched_versions: | ||
| - "~> 8.0.4" | ||
| - ">= 8.1.2" | ||
| related: | ||
| url: | ||
| - https://rubygems.org/gems/puma/versions/8.1.2-java | ||
| - https://github.com/puma/puma/blob/main/History.md#812--2026-11-17 | ||
| - https://rubygems.org/gems/puma/versions/8.0.4-java | ||
| - https://github.com/puma/puma/blob/main/History.md#804--2026-11-17 | ||
| - https://github.com/puma/puma/pull/3838 | ||
| - https://github.com/puma/puma/security/advisories/GHSA-9hf4-67fc-4vf4 | ||
| - https://github.com/puma/puma/security/advisories/GHSA-rhww-p99c-hgj9 | ||
| notes: | | ||
| - No CVE from GHSA URL. | ||
| - cvss_v4 from GHSA URL. |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.