HTTP Request Smuggling Affecting rubygem-puma-debuginfo package, versions <0:4.3.12-1.amzn2022.0.1


Severity

Recommended
high

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
0.13% (50th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-AMZN2022-RUBYGEMPUMADEBUGINFO-2998303
  • published29 Aug 2022
  • disclosed12 Oct 2021

Introduced: 12 Oct 2021

CVE-2021-41136  (opens in a new tab)
CWE-444  (opens in a new tab)

How to fix?

Upgrade Amazon-Linux:2022 rubygem-puma-debuginfo to version 0:4.3.12-1.amzn2022.0.1 or higher.
This issue was patched in ALAS2022-2022-051.

NVD Description

Note: Versions mentioned in the description apply only to the upstream rubygem-puma-debuginfo package and not the rubygem-puma-debuginfo package as distributed by Amazon-Linux. See How to fix? for Amazon-Linux:2022 relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1