Security restrictions bypass in Ruby - CVE-2018-16396
Published: November 6, 2018
Vulnerability identifier: #VU15725
CSH Severity: Low
CVSS v4: 8.2 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2018-16396
CWE-ID: CWE-20
Exploitation vector: Remote access
Exploit availability:
No public exploit available
Vulnerability details
The vulnerability allows a remote attacker to bypass security restrictions on the target system.
The weakness exists due to the tainted flags are not propagated with the
The weakness exists due to the tainted flags are not propagated with the
B, b, H, and h directives. A remote attacker can supply inputs by Array#pack and/or String#unpack with these directives and checks the reliability with tainted flags and cause the check to be wrong to bypass security restrictions and conduct further attacks.Affected software
Ruby
Debian Linux
Amazon Linux AMI
Red Hat Enterprise Linux for x86_64
Red Hat Enterprise Linux Server
Red Hat Enterprise Linux for IBM System z (Structure A)
Red Hat Enterprise Linux for Power 9
Red Hat Enterprise Linux for ARM 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 - TUS
Red Hat Enterprise Linux for Power, little endian - Extended Update Support
Red Hat Enterprise Linux for x86_64 - Extended Update Support
Red Hat Enterprise Linux Server - AUS
Red Hat Enterprise Linux for IBM z Systems - Extended Update Support
Red Hat Enterprise Linux for Power, big endian - Extended Update Support
Red Hat Enterprise Linux EUS Compute Node
Ubuntu
Opensuse
Fedora
ruby (Red Hat 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
ruby (Alpine package)
ruby1.9.1 (Ubuntu package)
libruby1.9.1 (Ubuntu package)
ruby1.9.3 (Ubuntu package)
ruby2.0 (Ubuntu package)
libruby2.0 (Ubuntu package)
libruby2.3 (Ubuntu package)
ruby2.3 (Ubuntu package)
libruby2.5 (Ubuntu package)
ruby2.5 (Ubuntu package)
ruby
EMC Integrated Data Protection Appliance
Dell EMC Data Protection Search
Debian Linux
Amazon Linux AMI
Red Hat Enterprise Linux for x86_64
Red Hat Enterprise Linux Server
Red Hat Enterprise Linux for IBM System z (Structure A)
Red Hat Enterprise Linux for Power 9
Red Hat Enterprise Linux for ARM 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 - TUS
Red Hat Enterprise Linux for Power, little endian - Extended Update Support
Red Hat Enterprise Linux for x86_64 - Extended Update Support
Red Hat Enterprise Linux Server - AUS
Red Hat Enterprise Linux for IBM z Systems - Extended Update Support
Red Hat Enterprise Linux for Power, big endian - Extended Update Support
Red Hat Enterprise Linux EUS Compute Node
Ubuntu
Opensuse
Fedora
ruby (Red Hat 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
ruby (Alpine package)
ruby1.9.1 (Ubuntu package)
libruby1.9.1 (Ubuntu package)
ruby1.9.3 (Ubuntu package)
ruby2.0 (Ubuntu package)
libruby2.0 (Ubuntu package)
libruby2.3 (Ubuntu package)
ruby2.3 (Ubuntu package)
libruby2.5 (Ubuntu package)
ruby2.5 (Ubuntu package)
ruby
EMC Integrated Data Protection Appliance
Dell EMC Data Protection Search
How to mitigate CVE-2018-16396
The vulnerability has been fixed in the versions 2.3.8, 2.4.5, 2.5.2.
Ruby - addressed in versions 2.3.8, 2.4.5, 2.5.2
ruby (Red Hat package) - addressed in versions 2.0.0.648-37.el7_4, 2.0.0.648-38.el7_6
EMC Integrated Data Protection Appliance - update to 2.7.1
Dell EMC Data Protection Search - update to 19.6.0
ruby (Alpine package) - update to 2.3.8-r0
ruby1.9.1 (Ubuntu package) - update to 1.9.3.484-2ubuntu1.13
libruby1.9.1 (Ubuntu package) - update to 1.9.3.484-2ubuntu1.13
ruby1.9.3 (Ubuntu package) - update to 1.9.3.484-2ubuntu1.13
ruby2.0 (Ubuntu package) - update to 2.0.0.484-1ubuntu2.11
libruby2.0 (Ubuntu package) - update to 2.0.0.484-1ubuntu2.11
libruby2.3 (Ubuntu package) - update to 2.3.1-2~16.04.11
ruby2.3 (Ubuntu package) - update to 2.3.1-2~16.04.11
libruby2.5 (Ubuntu package) - addressed in versions 2.5.1-1ubuntu1.1, 2.5.1-5ubuntu4.1
ruby2.5 (Ubuntu package) - addressed in versions 2.5.1-1ubuntu1.1, 2.5.1-5ubuntu4.1
ruby - addressed in versions 2.4.5-90.fc27, 2.5.3-94.fc28, 2.5.3-99.fc29
ruby (Red Hat package) - addressed in versions 2.0.0.648-37.el7_4, 2.0.0.648-38.el7_6
EMC Integrated Data Protection Appliance - update to 2.7.1
Dell EMC Data Protection Search - update to 19.6.0
ruby (Alpine package) - update to 2.3.8-r0
ruby1.9.1 (Ubuntu package) - update to 1.9.3.484-2ubuntu1.13
libruby1.9.1 (Ubuntu package) - update to 1.9.3.484-2ubuntu1.13
ruby1.9.3 (Ubuntu package) - update to 1.9.3.484-2ubuntu1.13
ruby2.0 (Ubuntu package) - update to 2.0.0.484-1ubuntu2.11
libruby2.0 (Ubuntu package) - update to 2.0.0.484-1ubuntu2.11
libruby2.3 (Ubuntu package) - update to 2.3.1-2~16.04.11
ruby2.3 (Ubuntu package) - update to 2.3.1-2~16.04.11
libruby2.5 (Ubuntu package) - addressed in versions 2.5.1-1ubuntu1.1, 2.5.1-5ubuntu4.1
ruby2.5 (Ubuntu package) - addressed in versions 2.5.1-1ubuntu1.1, 2.5.1-5ubuntu4.1
ruby - addressed in versions 2.4.5-90.fc27, 2.5.3-94.fc28, 2.5.3-99.fc29
External References
Related Security Bulletins
- Debian update for ruby2.3
- Red Hat update for ruby
- Red Hat update for ruby
- Red Hat update for ruby
- Amazon Linux AMI update for ruby23
- Red Hat update for ruby
- OpenSUSE Linux update for ruby-bundled-gems-rpmhelper, ruby2.5
- Red Hat Enterprise Linux 7 update for ruby
- Red Hat Enterprise Linux 7 update for ruby
- Amazon Linux AMI update for ruby20
- Security restrictions bypass in ruby (Alpine package)
- Multiple vulnerabilities in Dell EMC Integrated Data Protection Appliance
- Multiple vulnerabilities in Dell EMC Data Protection Search
- Fedora 29 update for ruby
- Fedora 28 update for ruby
- Fedora 27 update for ruby
- Ubuntu update for ruby1.9.1, ruby2.0, ruby2.3 and more