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
5.3 LOW
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Ubuntu
MEDIUM

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)
Red Hat Enterprise Linux 8 RedHat ruby:2.5-8040020200923213910.522a0ee4 *
Red Hat Enterprise Linux 8 RedHat ruby:2.6-8040020210430142949.522a0ee4 *
Red Hat Enterprise Linux 8.1 Update Services for SAP Solutions RedHat ruby:2.6-8010020220201152941.c27ad7f8 *
Red Hat Enterprise Linux 8.2 Extended Update Support RedHat ruby:2.6-8020020220201131207.4cda2c84 *
Red Hat Software Collections for Red Hat Enterprise Linux 7 RedHat rh-ruby25-ruby-0:2.5.9-9.el7 *
Red Hat Software Collections for Red Hat Enterprise Linux 7 RedHat rh-ruby26-ruby-0:2.6.7-119.el7 *
Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUS RedHat rh-ruby25-ruby-0:2.5.9-9.el7 *
Red Hat Software Collections for Red Hat Enterprise Linux 7.7 EUS RedHat rh-ruby25-ruby-0:2.5.9-9.el7 *
Red Hat Software Collections for Red Hat Enterprise Linux 7.7 EUS RedHat rh-ruby26-ruby-0:2.6.7-119.el7 *
Jruby Ubuntu eoan *
Jruby Ubuntu trusty *
Jruby Ubuntu trusty/esm *
Ruby2.3 Ubuntu trusty *
Ruby2.3 Ubuntu xenial *
Ruby2.5 Ubuntu bionic *
Ruby2.5 Ubuntu disco *
Ruby2.5 Ubuntu eoan *
Ruby2.5 Ubuntu trusty *
Ruby2.5 Ubuntu upstream *

Potential Mitigations

References