Command injection in Ruby - CVE-2017-17790

 

Command injection in Ruby - CVE-2017-17790

Published: March 6, 2018


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

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary command on the target system.

The weakness exists in the lazy_initialize function due to command injection. A remote attacker can send a specially crafted request, inject and execute arbitrary commands.

Affected software

Ruby
Debian Linux
Amazon Linux AMI
Red Hat Enterprise Linux Server
Red Hat Enterprise Linux Workstation
Red Hat Enterprise Linux Desktop
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for Scientific Computing
Red Hat Enterprise Linux EUS Compute Node
Red Hat Enterprise Linux for Power
Ubuntu
Fedora
EMC Integrated Data Protection Appliance
Dell EMC Data Protection Search
rh-ruby22-ruby (Red Hat package)
rh-ruby23-ruby (Red Hat package)
ruby
rh-ruby24-ruby (Red Hat package)

How to mitigate CVE-2017-17790

Install update from vendor's website.

EMC Integrated Data Protection Appliance - update to 2.7.1
Dell EMC Data Protection Search - update to 19.6.0
rh-ruby22-ruby (Red Hat package) - addressed in versions 2.2.9-19.el6, 2.2.9-19.el7
rh-ruby23-ruby (Red Hat package) - addressed in versions 2.3.6-67.el6, 2.3.6-67.el7
ruby - addressed in versions 2.4.3-87.fc26, 2.4.3-87.fc27
rh-ruby24-ruby (Red Hat package) - addressed in versions 2.4.3-90.el6, 2.4.3-90.el7

External References

Related Security Bulletins