Security restrictions bypass in RubyGems - CVE-2016-7798

 

Security restrictions bypass in RubyGems - CVE-2016-7798

Published: September 6, 2017


Vulnerability identifier: #VU8121
CSH Severity: Low
CVSS v4: 8.8 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2016-7798
CWE-ID: CWE-264
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 openssl gem for Ruby uses the same initialization vector (IV) in GCM Mode (aes-*-gcm) when the IV is set before the key. A remote attacker can bypass the encryption protection mechanism and gain access to the system.

Affected software

RubyGems
Amazon Linux AMI
Debian Linux
Ubuntu
Fedora
EMC Integrated Data Protection Appliance
Dell EMC Data Protection Search
ruby1.9.1 (Ubuntu package)
libruby1.9.1 (Ubuntu package)
ruby2.0 (Ubuntu package)
libruby2.0 (Ubuntu package)
ruby2.1 (Debian package)
ruby2.3 (Ubuntu package)
libruby2.3 (Ubuntu package)
ruby2.3 (Debian package)
ruby

How to mitigate CVE-2016-7798

Update to version 2.4.0.

EMC Integrated Data Protection Appliance - update to 2.7.1
Dell EMC Data Protection Search - update to 19.6.0
ruby1.9.1 (Ubuntu package) - update to 1.9.3.484-2ubuntu1.3
libruby1.9.1 (Ubuntu package) - update to 1.9.3.484-2ubuntu1.3
ruby2.0 (Ubuntu package) - update to 2.0.0.484-1ubuntu2.4
libruby2.0 (Ubuntu package) - update to 2.0.0.484-1ubuntu2.4
ruby2.1 (Debian package) - update to 2.1.5-2+deb8u4
ruby2.3 (Ubuntu package) - addressed in versions 2.3.1-2~16.04.2, 2.3.3-1ubuntu0.1
libruby2.3 (Ubuntu package) - addressed in versions 2.3.1-2~16.04.2, 2.3.3-1ubuntu0.1
ruby2.3 (Debian package) - update to 2.3.3-1+deb9u1
ruby - addressed in versions 2.3.3-62.fc24, 2.3.3-62.fc25

External References

Related Security Bulletins