HTTP Response Splitting Affecting puma package, versions >=4.0.0, <4.3.2<3.12.3


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.68% (81st 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-RUBY-PUMA-559020
  • published28 Feb 2020
  • disclosed28 Feb 2020
  • creditUnknown

Introduced: 28 Feb 2020

CVE-2020-5247  (opens in a new tab)
CWE-113  (opens in a new tab)

How to fix?

Upgrade puma to version 4.3.2, 3.12.3 or higher.

Overview

puma is a simple, fast, threaded, and highly concurrent HTTP 1.1 server for Ruby/Rack applications. Puma is intended for use in both development and production environments. It's great for highly concurrent Ruby implementations such as Rubinius and JRuby as well as as providing process worker support to support CRuby well.

Affected versions of this package are vulnerable to HTTP Response Splitting. If an application using Puma allows untrusted input in a response header, an attacker can use newline characters (i.e. CR, LF or/r, /n) to end the header and inject malicious content, such as additional headers or an entirely new response body.

Response splitting is a vector for several other attacks, such as cross-site scripting (XSS). This is related to CVE-2019-16254, which fixed this vulnerability for the WEBrick Ruby web server.

CVSS Scores

version 3.1