Input validation error in Ruby - CVE-2016-2337

 

Input validation error in Ruby - CVE-2016-2337

Published: January 6, 2017 / Updated: August 9, 2020


Vulnerability identifier: #VU39951
CSH Severity: High
CVSS v4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2016-2337
CWE-ID: CWE-20
Exploitation vector: Remote access
Exploit availability: No public exploit available

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

Ruby
Gentoo Linux

How to mitigate CVE-2016-2337

Install update from vendor's website.


External References

Related Security Bulletins