CVE-2016-2337 Code injection in Ruby

Critical 9.8 Published Updated

A type confusion vulnerability in Ruby's TclTkIp class allows attackers to execute arbitrary code by passing unexpected object types.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2016-2337?

CVE-2016-2337 is a critical code injection vulnerability in Ruby-Lang Ruby, published on 6 Jan 2017. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

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.

Which versions are affected by CVE-2016-2337?

It affects 1 product.

Products include Ruby-Lang Ruby.

How do I fix CVE-2016-2337?

Apply the vendor's patch.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2016-2337 being exploited?

There is no known exploitation of CVE-2016-2337 in the wild and no public exploit code.

All Ruby-Lang Ruby vulnerabilities

Sources

Also known as GHSA-f58m-77qc-8gjv, UBUNTU-CVE-2016-2337.

Is CVE-2016-2337 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free