Vulnerability · Published Feb 28, 2020 · Assigned by GitHub_M
CVE-2020-5247HTTP Response Splitting in Puma
Medium 6.5
In plain English
A medium-severity security flaw in Puma from puma. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.5% (higher than 85% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
In Puma (RubyGem) before 4.3.2 and before 3.12.3, 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. This vulnerability is known as HTTP Response Splitting. While not an attack in itself, 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. This has been fixed in versions 4.3.2 and 3.12.3 by checking all headers for line endings and rejecting headers with those characters.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | puma | 3.12.4-1 | DEBIAN-CVE-2020-5247 |
| Debian:13 | puma | 3.12.4-1 | DEBIAN-CVE-2020-5247 |
| Debian:14 | puma | 3.12.4-1 | DEBIAN-CVE-2020-5247 |
| RubyGems | puma | 3.12.4 | GHSA-84j7-475p-hp8v |
| RubyGems | puma | 4.3.3 | GHSA-84j7-475p-hp8v |
Affected products (as reported)
Weakness: CWE-113 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:L
References
- https://github.com/puma/puma/security/advisories/GHSA-84j7-475p-hp8v x_refsource_CONFIRM
- https://owasp.org/www-community/attacks/HTTP_Response_Splitting x_refsource_MISC
- https://www.ruby-lang.org/en/news/2019/10/01/http-response-splitting-in-webrick-cve-2019-16254 x_refsource_MISC
- FEDORA-2020-a3f26a9387 vendor-advisory, x_refsource_FEDORA
- FEDORA-2020-fd87f90634 vendor-advisory, x_refsource_FEDORA
- FEDORA-2020-08092b4c97 vendor-advisory, x_refsource_FEDORA
- [debian-lts-announce] 20220525 [SECURITY] [DLA 3023-1] puma security update mailing-list, x_refsource_MLIST