Heap-based Buffer Overflow Affecting rubygem-io-console package, versions *


Severity

Recommended
medium

Based on Red Hat Enterprise Linux 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-RHEL7-RUBYGEMIOCONSOLE-1346127
  • published26 Jul 2021
  • disclosed14 Jun 2016

Introduced: 14 Jun 2016

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

How to fix?

There is no fixed version for RHEL:7 rubygem-io-console.

NVD Description

Note: Versions mentioned in the description apply only to the upstream rubygem-io-console package and not the rubygem-io-console package as distributed by RHEL. See How to fix? for RHEL:7 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.