Input validation error in Ruby - CVE-2016-2337
Published: January 6, 2017 / Updated: August 9, 2020
Vulnerability details
The vulnerability allows a remote non-authenticated attacker to execute arbitrary code.
Type confusion exists in _cancel_eval Ruby's TclTkIp class method. Attacker passing different type of object than String as "retval" argument can cause arbitrary code execution. <a href="http://cwe.mitre.org/data/definitions/843.html">CWE-843: Access of Resource Using Incompatible Type ('Type Confusion')</a>
Affected software
Gentoo Linux
Ubuntu
libruby1.9.1 (Ubuntu package)
ruby1.9.1 (Ubuntu package)
libruby2.0 (Ubuntu package)
ruby2.0 (Ubuntu package)
libruby2.3 (Ubuntu package)
ruby2.3 (Ubuntu package)
How to mitigate CVE-2016-2337
ruby1.9.1 (Ubuntu package) - update to 1.9.3.484-2ubuntu1.3
libruby2.0 (Ubuntu package) - update to 2.0.0.484-1ubuntu2.4
ruby2.0 (Ubuntu package) - update to 2.0.0.484-1ubuntu2.4
libruby2.3 (Ubuntu package) - addressed in versions 2.3.1-2~16.04.2, 2.3.3-1ubuntu0.1
ruby2.3 (Ubuntu package) - addressed in versions 2.3.1-2~16.04.2, 2.3.3-1ubuntu0.1