HTTP Response Splitting in Ruby - CVE-2019-16254

 

HTTP Response Splitting in Ruby - CVE-2019-16254

Published: November 27, 2019


Vulnerability identifier: #VU23008
CSH Severity: Medium
CVSS v4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2019-16254
CWE-ID: CWE-113
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to perform HTTP response splitting attack.

The vulnerability exists due to insufficient validation of CRLF sequences within the WEBrick in Ruby. A remote attacker can send a specially crafted request to the application and perform a spoofing attack.


Affected software

Ruby
Gentoo Linux
Amazon Linux AMI
Red Hat Enterprise Linux for ARM 64
Red Hat Enterprise Linux for x86_64
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux Server - TUS
Red Hat Enterprise Linux for IBM z Systems - Extended Update Support
Red Hat Enterprise Linux for Power, little endian - Extended Update Support
Red Hat Enterprise Linux Server - AUS
Red Hat Enterprise Linux for x86_64 - Extended Update Support
Red Hat Enterprise Linux for ARM 64 - Extended Update Support
Opensuse
Red Hat Software Collections
ruby (Alpine package)
ruby2.3 (Debian package)
ruby2.5 (Debian package)
ruby2.5 (Ubuntu package)
rh-ruby25-ruby (Red Hat package)
Red Hat Enterprise Linux Server for Power LE - Update Services for SAP Solutions
Red Hat Enterprise Linux Server for x86_64 - Update Services for SAP Solutions
rh-ruby26-ruby (Red Hat package)
EMC Integrated Data Protection Appliance
IBM Cloud Foundry Migration Runtime
Dell EMC Data Protection Search

How to mitigate CVE-2019-16254

Install updates from vendor's website.

Ruby - addressed in versions 2.4.8, 2.5.7, 2.6.5
ruby (Alpine package) - update to 2.5.7-r0
EMC Integrated Data Protection Appliance - update to 2.7.1
ruby2.3 (Debian package) - update to 2.3.3-1+deb9u7
ruby2.5 (Debian package) - update to 2.5.5-3+deb10u1
ruby2.5 (Ubuntu package) - addressed in versions 2.5.1-1ubuntu1.6, 2.5.5-1ubuntu1.1, 2.5.5-4ubuntu2.1
rh-ruby25-ruby (Red Hat package) - update to 2.5.9-9.el7
IBM Cloud Foundry Migration Runtime - update to 4.1.2
Dell EMC Data Protection Search - update to 19.6.0
rh-ruby26-ruby (Red Hat package) - update to 2.6.7-119.el7

External References

Related Security Bulletins