Out-of-Bounds Affecting ruby2.0 package, versions <2.0.0.484-1ubuntu2.4


Severity

Recommended
low

Based on Ubuntu security rating.

Threat Intelligence

EPSS
1.39% (87th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UBUNTU1404-RUBY20-281609
  • published6 Jan 2017
  • disclosed6 Jan 2017

Introduced: 6 Jan 2017

CVE-2016-2339  (opens in a new tab)
CWE-119  (opens in a new tab)

How to fix?

Upgrade Ubuntu:14.04 ruby2.0 to version 2.0.0.484-1ubuntu2.4 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream ruby2.0 package and not the ruby2.0 package as distributed by Ubuntu. See How to fix? for Ubuntu:14.04 relevant fixed versions and status.

An exploitable heap overflow vulnerability exists in the Fiddle::Function.new "initialize" function functionality of Ruby. In Fiddle::Function.new "initialize" heap buffer "arg_types" allocation is made based on args array length. Specially constructed object passed as element of args array can increase this array size after mentioned allocation and cause heap overflow.