HTTP response splitting in Ruby - CVE-2017-17742

 

HTTP response splitting in Ruby - CVE-2017-17742

Published: April 5, 2018


Vulnerability identifier: #VU11537
CSH Severity: Low
CVSS v4: 5.1 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2017-17742
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 weakness exists due to improper handling of HTTP requests. If a script accepts an external input and outputs it without modification as a part of HTTP responses, a remote attacker can use newline characters to trick the victim that the HTTP response header is stopped at there and inject fake HTTP responses after the newline characters to show malicious contents to the victim.

Affected software

Ruby
Debian Linux
Amazon Linux AMI
Red Hat Enterprise Linux for x86_64
Red Hat Enterprise Linux for IBM System z (Structure A)
Red Hat Enterprise Linux Workstation
Red Hat Enterprise Linux for ARM 64
Red Hat Enterprise Linux for Power 9
Red Hat Enterprise Linux Server
Red Hat Enterprise Linux for Scientific Computing
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux Desktop
Red Hat Enterprise Linux Server - AUS
Red Hat Enterprise Linux Server - TUS
Red Hat Enterprise Linux EUS Compute Node
Red Hat Enterprise Linux for Power, little endian - Extended Update Support
Red Hat Enterprise Linux for Power, big endian - Extended Update Support
Red Hat Enterprise Linux for IBM z Systems - Extended Update Support
Red Hat Enterprise Linux for x86_64 - Extended Update Support
macOS
Slackware Linux
Ubuntu
Opensuse
Fedora
EMC Integrated Data Protection Appliance
ruby (Red Hat package)
ruby (Alpine package)
Red Hat Enterprise Linux Server for x86_64 - Update Services for SAP Solutions
Red Hat Enterprise Linux Server for Power LE - Update Services for SAP Solutions
libruby2.0 (Ubuntu package)
ruby2.0 (Ubuntu package)
ruby
Dell EMC Data Protection Search

How to mitigate CVE-2017-17742

Update to versions 2.2.10, 2.3.7, 2.4.4 or 2.5.1.

EMC Integrated Data Protection Appliance - update to 2.7.1
ruby (Red Hat package) - addressed in versions 2.0.0.648-36.el7_4, 2.0.0.648-36.el7_5, 2.0.0.648-37.el7_6
ruby (Alpine package) - update to 2.3.7-r0
Dell EMC Data Protection Search - update to 19.6.0
libruby2.0 (Ubuntu package) - update to 2.0.0.484-1ubuntu2.13+esm1
ruby2.0 (Ubuntu package) - update to 2.0.0.484-1ubuntu2.13+esm1
ruby - addressed in versions 2.4.4-88.fc26, 2.4.4-88.fc27, 2.4.4-89.fc27, 2.5.1-92.fc28

External References

Related Security Bulletins