Bug 1816181 (CVE-2020-5249) - CVE-2020-5249 rubygem-puma: attacker is able to use carriage return character to insert malicious content (HTTP Response Splitting), this could lead to XSS
Summary: CVE-2020-5249 rubygem-puma: attacker is able to use carriage return character...
Keywords:
Status: CLOSED WONTFIX
Alias: CVE-2020-5249
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1816182 1816665 1817856 1819660
Blocks: 1816188
TreeView+ depends on / blocked
 
Reported: 2020-03-23 13:58 UTC by Marian Rehak
Modified: 2021-11-08 13:35 UTC (History)
16 users (show)

Fixed In Version: puma 4.3.3, puma 3.12.4
Doc Type: If docs needed, set a value
Doc Text:
A flaw was discovered in rubygem-puma, where it did not properly forbid untrusted input in an early-hints header. This flaw allows an attacker with the ability to tamper with HTTP headers to insert a carriage return character to end the header and then insert malicious content, allowing an HTTP response splitting, which exposes the risk of attacks such as cross-site scripting.
Clone Of:
Environment:
Last Closed: 2021-11-08 13:35:03 UTC


Attachments (Terms of Use)

Description Marian Rehak 2020-03-23 13:58:00 UTC
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. 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).

Upstream Advisory:

https://github.com/puma/puma/security/advisories/GHSA-33vf-4xgg-9r58

Comment 1 Marian Rehak 2020-03-23 13:58:51 UTC
Created rubygem-puma tracking bugs for this issue:

Affects: fedora-all [bug 1816182]

Comment 2 Hardik Vyas 2020-03-24 11:16:27 UTC
External References:

https://github.com/puma/puma/security/advisories/GHSA-33vf-4xgg-9r58

Comment 7 Yadnyawalk Tale 2020-03-27 05:13:04 UTC
Statement:

This issue affects the version of rubygem-puma shipped with Red Hat Gluster Storage 3, as it does not prevent HTTP Response splitting via CR in early hints.

Red Hat CloudForms uses affected RubyGem Puma, however, it is not vulnerable since it does not have custom code enabling early hints, HTTP/2 support or way to return 103 response. A future update may fix affected RubyGem.

Comment 9 Yadnyawalk Tale 2020-03-27 07:06:22 UTC
CVSS difference explanation: 

Red Hat uses Pume in products, however, we are immune from this vulnerability since most of our products do not use early hint configuration and thus attack complexity is "High" for Red Hat least which make this difference.


Note You need to log in before you can comment on or make changes to this bug.