CVE-2021-41136 Inconsistent Interpretation of HTTP Requests ('HTTP Request Smuggling') in puma
- Published
- Updated
- Exploit status
- Proof-of-concept only
- Technology
- UbuntuDebian
Description
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.
Upgrade path
8 packages: 7 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/puma(Debian 12) | < 5.5.2-1 | 5.5.2-1 | Fixed |
| debian/puma(Debian 13) | < 5.5.2-1 | 5.5.2-1 | Fixed |
| debian/puma(Debian 14) | < 5.5.2-1 | 5.5.2-1 | Fixed |
| puma | <= 4.3.8; = < 4.3.9; = >= 5.0.0, < 5.5.1; >= 5.0.0, <= 5.5.0 | after 4.3.8, 5.5.0 | Fixed |
| rubygems puma(RubyGems) | < 4.3.9; = 0.8.0; = 0.8.1; = 0.8.2 +136 more | 4.3.9, 5.5.1 | Fixed |
| ubuntu/puma(Ubuntu 20.04) | < 3.12.4-1ubuntu2; = 3.12.0-2ubuntu1; = 3.12.0-4ubuntu1 | 3.12.4-1ubuntu2 | Fixed |
| ubuntu/puma(Ubuntu 22.04) | < 5.5.2-2ubuntu2; = 4.3.6-1ubuntu4 | 5.5.2-2ubuntu2 | Fixed |
| debian linux | = 10.0; = 11.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| rubygems puma(RubyGems) | >= 5.0.0, < 5.5.1 | 5.5.1 |
| rubygems puma(RubyGems) | = 5.0.0 | No fix listed |
| rubygems puma(RubyGems) | = 5.0.1 | No fix listed |
| rubygems puma(RubyGems) | = 5.0.2 | No fix listed |
| rubygems puma(RubyGems) | = 5.0.3 | No fix listed |
| rubygems puma(RubyGems) | = 5.0.4 | No fix listed |
| rubygems puma(RubyGems) | = 5.1.0 | No fix listed |
| rubygems puma(RubyGems) | = 5.1.1 | No fix listed |
| rubygems puma(RubyGems) | = 5.2.0 | No fix listed |
| rubygems puma(RubyGems) | = 5.2.1 | No fix listed |
| rubygems puma(RubyGems) | = 5.2.2 | No fix listed |
| rubygems puma(RubyGems) | = 5.3.0 | No fix listed |
| rubygems puma(RubyGems) | = 5.3.1 | No fix listed |
| rubygems puma(RubyGems) | = 5.3.2 | No fix listed |
| rubygems puma(RubyGems) | = 5.4.0 | No fix listed |
| rubygems puma(RubyGems) | = 5.5.0 | No fix listed |
| rubygems puma(RubyGems) | < 4.3.9 | 4.3.9 |
| rubygems puma(RubyGems) | = 0.8.0 | No fix listed |
| rubygems puma(RubyGems) | = 0.8.1 | No fix listed |
| rubygems puma(RubyGems) | = 0.8.2 | No fix listed |
| rubygems puma(RubyGems) | = 0.9.0 | No fix listed |
| rubygems puma(RubyGems) | = 0.9.1 | No fix listed |
| rubygems puma(RubyGems) | = 0.9.2 | No fix listed |
| rubygems puma(RubyGems) | = 0.9.3 | No fix listed |
| rubygems puma(RubyGems) | = 0.9.4 | No fix listed |
Show 129 more
| Product | Affected versions | Fixed in |
|---|---|---|
| rubygems puma(RubyGems) | = 0.9.5 | No fix listed |
| rubygems puma(RubyGems) | = 1.0.0 | No fix listed |
| rubygems puma(RubyGems) | = 1.1.0 | No fix listed |
| rubygems puma(RubyGems) | = 1.1.1 | No fix listed |
| rubygems puma(RubyGems) | = 1.2.0 | No fix listed |
| rubygems puma(RubyGems) | = 1.2.1 | No fix listed |
| rubygems puma(RubyGems) | = 1.2.2 | No fix listed |
| rubygems puma(RubyGems) | = 1.3.0 | No fix listed |
| rubygems puma(RubyGems) | = 1.3.1 | No fix listed |
| rubygems puma(RubyGems) | = 1.4.0 | No fix listed |
| rubygems puma(RubyGems) | = 1.5.0 | No fix listed |
| rubygems puma(RubyGems) | = 1.6.0 | No fix listed |
| rubygems puma(RubyGems) | = 1.6.1 | No fix listed |
| rubygems puma(RubyGems) | = 1.6.2 | No fix listed |
| rubygems puma(RubyGems) | = 1.6.3 | No fix listed |
| rubygems puma(RubyGems) | = 2.0.0 | No fix listed |
| rubygems puma(RubyGems) | = 2.0.0.b1 | No fix listed |
| rubygems puma(RubyGems) | = 2.0.0.b2 | No fix listed |
| rubygems puma(RubyGems) | = 2.0.0.b3 | No fix listed |
| rubygems puma(RubyGems) | = 2.0.0.b4 | No fix listed |
| rubygems puma(RubyGems) | = 2.0.0.b5 | No fix listed |
| rubygems puma(RubyGems) | = 2.0.0.b6 | No fix listed |
| rubygems puma(RubyGems) | = 2.0.0.b7 | No fix listed |
| rubygems puma(RubyGems) | = 2.0.1 | No fix listed |
| rubygems puma(RubyGems) | = 2.1.0 | No fix listed |
| rubygems puma(RubyGems) | = 2.1.1 | No fix listed |
| rubygems puma(RubyGems) | = 2.10.0 | No fix listed |
| rubygems puma(RubyGems) | = 2.10.1 | No fix listed |
| rubygems puma(RubyGems) | = 2.10.2 | No fix listed |
| rubygems puma(RubyGems) | = 2.11.0 | No fix listed |
| rubygems puma(RubyGems) | = 2.11.1 | No fix listed |
| rubygems puma(RubyGems) | = 2.11.2 | No fix listed |
| rubygems puma(RubyGems) | = 2.11.3 | No fix listed |
| rubygems puma(RubyGems) | = 2.12.0 | No fix listed |
| rubygems puma(RubyGems) | = 2.12.1 | No fix listed |
| rubygems puma(RubyGems) | = 2.12.2 | No fix listed |
| rubygems puma(RubyGems) | = 2.12.3 | No fix listed |
| rubygems puma(RubyGems) | = 2.13.0 | No fix listed |
| rubygems puma(RubyGems) | = 2.13.1 | No fix listed |
| rubygems puma(RubyGems) | = 2.13.2 | No fix listed |
| rubygems puma(RubyGems) | = 2.13.3 | No fix listed |
| rubygems puma(RubyGems) | = 2.13.4 | No fix listed |
| rubygems puma(RubyGems) | = 2.14.0 | No fix listed |
| rubygems puma(RubyGems) | = 2.15.0 | No fix listed |
| rubygems puma(RubyGems) | = 2.15.1 | No fix listed |
| rubygems puma(RubyGems) | = 2.15.2 | No fix listed |
| rubygems puma(RubyGems) | = 2.15.3 | No fix listed |
| rubygems puma(RubyGems) | = 2.16.0 | No fix listed |
| rubygems puma(RubyGems) | = 2.2.0 | No fix listed |
| rubygems puma(RubyGems) | = 2.2.1 | No fix listed |
| rubygems puma(RubyGems) | = 2.2.2 | No fix listed |
| rubygems puma(RubyGems) | = 2.3.0 | No fix listed |
| rubygems puma(RubyGems) | = 2.3.1 | No fix listed |
| rubygems puma(RubyGems) | = 2.3.2 | No fix listed |
| rubygems puma(RubyGems) | = 2.4.0 | No fix listed |
| rubygems puma(RubyGems) | = 2.4.1 | No fix listed |
| rubygems puma(RubyGems) | = 2.5.0 | No fix listed |
| rubygems puma(RubyGems) | = 2.5.1 | No fix listed |
| rubygems puma(RubyGems) | = 2.6.0 | No fix listed |
| rubygems puma(RubyGems) | = 2.7.0 | No fix listed |
| rubygems puma(RubyGems) | = 2.7.1 | No fix listed |
| rubygems puma(RubyGems) | = 2.8.0 | No fix listed |
| rubygems puma(RubyGems) | = 2.8.1 | No fix listed |
| rubygems puma(RubyGems) | = 2.8.2 | No fix listed |
| rubygems puma(RubyGems) | = 2.9.0 | No fix listed |
| rubygems puma(RubyGems) | = 2.9.1 | No fix listed |
| rubygems puma(RubyGems) | = 2.9.2 | No fix listed |
| rubygems puma(RubyGems) | = 3.0.0 | No fix listed |
| rubygems puma(RubyGems) | = 3.0.0.rc1 | No fix listed |
| rubygems puma(RubyGems) | = 3.0.1 | No fix listed |
| rubygems puma(RubyGems) | = 3.0.2 | No fix listed |
| rubygems puma(RubyGems) | = 3.1.0 | No fix listed |
| rubygems puma(RubyGems) | = 3.1.1 | No fix listed |
| rubygems puma(RubyGems) | = 3.10.0 | No fix listed |
| rubygems puma(RubyGems) | = 3.11.0 | No fix listed |
| rubygems puma(RubyGems) | = 3.11.1 | No fix listed |
| rubygems puma(RubyGems) | = 3.11.2 | No fix listed |
| rubygems puma(RubyGems) | = 3.11.3 | No fix listed |
| rubygems puma(RubyGems) | = 3.11.4 | No fix listed |
| rubygems puma(RubyGems) | = 3.12.0 | No fix listed |
| rubygems puma(RubyGems) | = 3.12.1 | No fix listed |
| rubygems puma(RubyGems) | = 3.12.2 | No fix listed |
| rubygems puma(RubyGems) | = 3.12.4 | No fix listed |
| rubygems puma(RubyGems) | = 3.12.5 | No fix listed |
| rubygems puma(RubyGems) | = 3.12.6 | No fix listed |
| rubygems puma(RubyGems) | = 3.2.0 | No fix listed |
| rubygems puma(RubyGems) | = 3.3.0 | No fix listed |
| rubygems puma(RubyGems) | = 3.4.0 | No fix listed |
| rubygems puma(RubyGems) | = 3.5.0 | No fix listed |
| rubygems puma(RubyGems) | = 3.5.1 | No fix listed |
| rubygems puma(RubyGems) | = 3.5.2 | No fix listed |
| rubygems puma(RubyGems) | = 3.6.0 | No fix listed |
| rubygems puma(RubyGems) | = 3.6.1 | No fix listed |
| rubygems puma(RubyGems) | = 3.6.2 | No fix listed |
| rubygems puma(RubyGems) | = 3.7.0 | No fix listed |
| rubygems puma(RubyGems) | = 3.7.1 | No fix listed |
| rubygems puma(RubyGems) | = 3.8.0 | No fix listed |
| rubygems puma(RubyGems) | = 3.8.1 | No fix listed |
| rubygems puma(RubyGems) | = 3.8.2 | No fix listed |
| rubygems puma(RubyGems) | = 3.9.0 | No fix listed |
| rubygems puma(RubyGems) | = 3.9.1 | No fix listed |
| rubygems puma(RubyGems) | = 4.0.0 | No fix listed |
| rubygems puma(RubyGems) | = 4.0.1 | No fix listed |
| rubygems puma(RubyGems) | = 4.1.0 | No fix listed |
| rubygems puma(RubyGems) | = 4.1.1 | No fix listed |
| rubygems puma(RubyGems) | = 4.2.0 | No fix listed |
| rubygems puma(RubyGems) | = 4.2.1 | No fix listed |
| rubygems puma(RubyGems) | = 4.3.0 | No fix listed |
| rubygems puma(RubyGems) | = 4.3.1 | No fix listed |
| rubygems puma(RubyGems) | = 4.3.3 | No fix listed |
| rubygems puma(RubyGems) | = 4.3.4 | No fix listed |
| rubygems puma(RubyGems) | = 4.3.5 | No fix listed |
| rubygems puma(RubyGems) | = 4.3.6 | No fix listed |
| rubygems puma(RubyGems) | = 4.3.7 | No fix listed |
| rubygems puma(RubyGems) | = 4.3.8 | No fix listed |
| debian/puma(Debian:12) | < 5.5.2-1 | 5.5.2-1 |
| debian/puma(Debian:13) | < 5.5.2-1 | 5.5.2-1 |
| debian/puma(Debian:14) | < 5.5.2-1 | 5.5.2-1 |
| puma | <= 4.3.8 | No fix listed |
| puma | >= 5.0.0, <= 5.5.0 | No fix listed |
| debian linux | = 10.0 | No fix listed |
| debian linux | = 11.0 | No fix listed |
| puma | = >= 5.0.0, < 5.5.1 | No fix listed |
| puma | = < 4.3.9 | No fix listed |
| ubuntu/puma(Ubuntu:20.04) | < 3.12.4-1ubuntu2 | 3.12.4-1ubuntu2 |
| ubuntu/puma(Ubuntu:20.04) | = 3.12.0-2ubuntu1 | No fix listed |
| ubuntu/puma(Ubuntu:20.04) | = 3.12.0-4ubuntu1 | No fix listed |
| ubuntu/puma(Ubuntu:22.04) | < 5.5.2-2ubuntu2 | 5.5.2-2ubuntu2 |
| ubuntu/puma(Ubuntu:22.04) | = 4.3.6-1ubuntu4 | No fix listed |
References
- https://github.com/puma/puma/security/advisories/GHSA-48w2-rm65-62xx issue-tracking third-party-advisory vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/puma/puma/commit/436c71807f00e07070902a03f79fd3e130eb6b18 patch
- https://github.com/puma/puma/commit/acdc3ae571dfae0e045cf09a295280127db65c7f issue-tracking patch third-party-advisory
- https://github.com/puma/puma/commit/fb6ad8f8013ab5cdbb2f444cbfabd0b4fde71139 patch
- github.com product
- github.com
- github.com
- github.com exploit
- [debian-lts-announce] 20220827 [SECURITY] [DLA 3083-1] puma security update mailing-list third-party-advisory
- GLSA-202208-28 third-party-advisory vendor-advisory
- DSA-5146 third-party-advisory vendor-advisory
- Debian Security Tracker CVE-2021-41136 vendor-advisory
- github.com
- ubuntu.com issue-tracking
- www.cve.org issue-tracking