CVE Vulnerabilities

CVE-2019-16254

Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')

Published: Nov 26, 2019 | Modified: Apr 30, 2023
CVSS 3.x
5.3
MEDIUM
Source:
NVD
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
CVSS 2.x
5 MEDIUM
AV:N/AC:L/Au:N/C:N/I:P/A:N
RedHat/V2
RedHat/V3
Ubuntu

Ruby through 2.4.7, 2.5.x through 2.5.6, and 2.6.x through 2.6.4 allows HTTP Response Splitting. If a program using WEBrick inserts untrusted input into the response header, an attacker can exploit it to insert a newline character to split a header, and inject malicious content to deceive clients. NOTE: this issue exists because of an incomplete fix for CVE-2017-17742, which addressed the CRLF vector, but did not address an isolated CR or an isolated LF.

Weakness

The product constructs all or part of a command, data structure, or record using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify how it is parsed or interpreted when it is sent to a downstream component.

Affected Software

Name Vendor Start Version End Version
Ruby Ruby-lang * 2.3.0 (including)
Ruby Ruby-lang 2.4.0 (including) 2.4.7 (including)
Ruby Ruby-lang 2.5.0 (including) 2.5.6 (including)
Ruby Ruby-lang 2.6.0 (including) 2.6.4 (including)

Potential Mitigations

References