Vulnerability · Published Mar 2, 2020 · Assigned by GitHub_M
CVE-2020-5249HTTP Response Splitting (Early Hints) 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 1.6% (higher than 75% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
In Puma (RubyGem) before 4.3.3 and 3.12.4, if an application using Puma allows untrusted input in an early-hints header, an attacker can use a carriage return character 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-2020-5247, which fixed this vulnerability but only for regular responses. This has been fixed in 4.3.3 and 3.12.4.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | puma | 3.12.4-1 | DEBIAN-CVE-2020-5249 |
| Debian:13 | puma | 3.12.4-1 | DEBIAN-CVE-2020-5249 |
| Debian:14 | puma | 3.12.4-1 | DEBIAN-CVE-2020-5249 |
| RubyGems | puma | 3.12.4 | GHSA-33vf-4xgg-9r58 |
| RubyGems | puma | 4.3.3 | GHSA-33vf-4xgg-9r58 |
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://owasp.org/www-community/attacks/HTTP_Response_Splitting x_refsource_MISC
- https://github.com/puma/puma/security/advisories/GHSA-33vf-4xgg-9r58 x_refsource_CONFIRM
- https://github.com/puma/puma/security/advisories/GHSA-84j7-475p-hp8v x_refsource_MISC
- https://github.com/puma/puma/commit/c22712fc93284a45a93f9ad7023888f3a65524f3 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