CVE-2021-41136
Reported by GitHub_M · Published October 12, 2021
Puma is a HTTP 1.1 server for Ruby/Rack applications. Prior to versions 5.5.1 and 4.3.9, using `puma` with a proxy which forwards HTTP header values which contain the LF character could allow HTTP request smugggling. A client could smuggle a request through a proxy, causing the proxy to send a response back to another unknown client. The only proxy which has this behavior, as far as the Puma team is aware of, is Apache Traffic Server. If the proxy uses persistent connections and the client adds another request in via HTTP pipelining, the proxy may mistake it as the first request's body. Puma, however, would see it as two requests, and when processing the second request, send back a response that the proxy does not expect. If the proxy has reused the persistent connection to Puma to send another request for a different client, the second response from the first client will be sent to the second client. This vulnerability was patched in Puma 5.5.1 and 4.3.9. As a workaround, do not use Apache Traffic Server with `puma`.
Risk Scores
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| puma | puma | >= 5.0.0, < 5.5.1, < 4.3.9 |
| puma | puma | >= 5.0.0, < 5.5.1, *, < 4.3.9 |
| AWS | connect | |
| RubyGems | puma | 0, 5.0.0, 0 |
Timeline
- Oct 12, 2021 CVE Published
- Oct 13, 2021 EPSS Score
- Dec 8, 2021 EPSS Score
- Jan 6, 2022 EPSS Score
- Feb 3, 2022 EPSS Score
- Mar 31, 2022 EPSS Score
- May 27, 2022 EPSS Score
- Jul 23, 2022 EPSS Score
- Sep 18, 2022 EPSS Score
- Nov 13, 2022 EPSS Score
- Jan 9, 2023 EPSS Score
- Mar 6, 2023 EPSS Score
References
- https://github.com/puma/puma/security/advisories/GHSA-48w2-rm65-62xx x_refsource_CONFIRM
- https://github.com/puma/puma/commit/436c71807f00e07070902a03f79fd3e130eb6b18 x_refsource_MISC
- https://github.com/puma/puma/commit/acdc3ae571dfae0e045cf09a295280127db65c7f x_refsource_MISC
- https://github.com/puma/puma/commit/fb6ad8f8013ab5cdbb2f444cbfabd0b4fde71139 x_refsource_MISC
- DSA-5146 vendor-advisory
- GLSA-202208-28 vendor-advisory
- [debian-lts-announce] 20220827 [SECURITY] [DLA 3083-1] puma security update mailing-list
- https://github.com/puma/puma url
- https://nvd.nist.gov/vuln/detail/CVE-2021-41136 advisory
- https://github.com/advisories/GHSA-48w2-rm65-62xx advisory
- https://github.com/puma/puma/releases/tag/v4.3.9 url
- https://github.com/puma/puma/releases/tag/v5.5.1 url
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/puma/CVE-2021-41136.yml advisory