Improper input validation in RubyGems - CVE-2017-0901
Published: August 31, 2017 / Updated: September 14, 2018
Vulnerability identifier: #VU8057
CSH Severity: Medium
CVSS v4: 8.4 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2017-0901
CWE-ID: CWE-20
Exploitation vector: Remote access
Exploit availability:
Public exploit is available
Vulnerability details
The vulnerability allows a remote attacker to overwrite arbitrary files on the target system.
The weakness exists due to insufficient validation of user-supplied input. A remote attacker can trick the victim into installing a specially crafted RubyGem and overwrite arbitrary files.
The weakness exists due to insufficient validation of user-supplied input. A remote attacker can trick the victim into installing a specially crafted RubyGem and overwrite arbitrary files.
Affected software
RubyGems
Debian Linux
Gentoo Linux
Amazon Linux AMI
Red Hat Enterprise Linux for x86_64
Red Hat Enterprise Linux for Scientific Computing
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux Desktop
Red Hat Enterprise Linux Workstation
Red Hat Enterprise Linux Server
Red Hat Enterprise Linux EUS Compute Node
Red Hat Enterprise Linux for Power
Slackware Linux
Ubuntu
Fedora
ruby (Alpine package)
prayer (Alpine package)
libruby2.0 (Ubuntu package)
ruby2.0 (Ubuntu package)
rh-ruby22-ruby (Red Hat package)
ruby
rh-ruby23-ruby (Red Hat package)
rubygems
EMC Integrated Data Protection Appliance
EasyApache
Dell EMC Data Protection Search
Debian Linux
Gentoo Linux
Amazon Linux AMI
Red Hat Enterprise Linux for x86_64
Red Hat Enterprise Linux for Scientific Computing
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux Desktop
Red Hat Enterprise Linux Workstation
Red Hat Enterprise Linux Server
Red Hat Enterprise Linux EUS Compute Node
Red Hat Enterprise Linux for Power
Slackware Linux
Ubuntu
Fedora
ruby (Alpine package)
prayer (Alpine package)
libruby2.0 (Ubuntu package)
ruby2.0 (Ubuntu package)
rh-ruby22-ruby (Red Hat package)
ruby
rh-ruby23-ruby (Red Hat package)
rubygems
EMC Integrated Data Protection Appliance
EasyApache
Dell EMC Data Protection Search
How to mitigate CVE-2017-0901
Update to version 2.6.13.
EMC Integrated Data Protection Appliance - update to 2.7.1
ruby (Alpine package) - addressed in versions 2.2.8-r0, 2.7.2-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
rh-ruby22-ruby (Red Hat package) - addressed in versions 2.2.9-19.el6, 2.2.9-19.el7
ruby - update to 2.3.4-64.fc25
rh-ruby23-ruby (Red Hat package) - addressed in versions 2.3.6-67.el6, 2.3.6-67.el7
rubygems - addressed in versions 2.6.13-100.fc26, 2.6.13-100.fc27
ruby (Alpine package) - addressed in versions 2.2.8-r0, 2.7.2-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
rh-ruby22-ruby (Red Hat package) - addressed in versions 2.2.9-19.el6, 2.2.9-19.el7
ruby - update to 2.3.4-64.fc25
rh-ruby23-ruby (Red Hat package) - addressed in versions 2.3.6-67.el6, 2.3.6-67.el7
rubygems - addressed in versions 2.6.13-100.fc26, 2.6.13-100.fc27
Links to Public Exploits and PoC-codes
External References
Related Security Bulletins
- Multiple vulnerability in Ruby RubyGems
- Debian update for ruby
- Multiple vulnerabilities in cPanel EasyApache
- Ubuntu update for Ruby
- Gentoo update for RubyGems
- Slackware Linux update for ruby
- Amazon Linux AMI update for ruby24
- Amazon Linux AMI update for ruby22, ruby23
- Red Hat update for ruby
- Ubuntu update for Ruby
- Red Hat update for ruby
- Improper input validation in ruby (Alpine package)
- Improper input validation in prayer (Alpine package)
- Multiple vulnerabilities in Dell EMC Integrated Data Protection Appliance
- Multiple vulnerabilities in Dell EMC Data Protection Search
- Ubuntu update for ruby2.0
- Red Hat Software Collections update for rh-ruby22-ruby
- Red Hat Software Collections update for rh-ruby23-ruby
- Fedora 26 update for rubygems
- Fedora 27 update for rubygems
- Fedora 25 update for ruby