Back to CVE catalog
CVE-2016-2339

Heap overflow in Ruby's Fiddle::Function.new

Ruby Ruby

At a glance

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.

Source description · CVE List / CNA

System impact

Attack complexityLow
ConfidentialityHigh
IntegrityHigh
AvailabilityHigh

CVSS summary v3.0

9.8Critical
Published:
Updated:
EPSS:
5.144%
Exploited in attacks:
Not confirmed
Ransomware campaigns:
Not confirmed
Attack vector:
Network

Affected software

Vendor, product and affected version ranges.

Vendor, product and affected versions
Vendor:RubyRubyAffected versions:
2.3.0 devShow full version range for Ruby
2.2.2
Vendor:ruby-langrubyAffected versions:
2.2.2Show full version range for ruby
2.3.0
Vendor:redhatruby
Environments (1)
  • cpe:/o:redhat:enterprise_linux:7
Affected versions:
Range not specifiedShow full version range for ruby
  • Other versions are affected by default; consult the source for exceptions.
Vendor:redhatruby-devel
Environments (1)
  • cpe:/o:redhat:enterprise_linux:7
Affected versions:
Range not specifiedShow full version range for ruby-devel
  • Other versions are affected by default; consult the source for exceptions.
Vendor:redhatruby-doc
Environments (1)
  • cpe:/o:redhat:enterprise_linux:7
Affected versions:
Range not specifiedShow full version range for ruby-doc
  • Other versions are affected by default; consult the source for exceptions.
Vendor:redhatruby-irb
Environments (1)
  • cpe:/o:redhat:enterprise_linux:7
Affected versions:
Range not specifiedShow full version range for ruby-irb
  • Other versions are affected by default; consult the source for exceptions.
Vendor:redhatruby-libs
Environments (1)
  • cpe:/o:redhat:enterprise_linux:7
Affected versions:
Range not specifiedShow full version range for ruby-libs
  • Other versions are affected by default; consult the source for exceptions.
Vendor:redhatruby-tcltk
Environments (1)
  • cpe:/o:redhat:enterprise_linux:7
Affected versions:
Range not specifiedShow full version range for ruby-tcltk
  • Other versions are affected by default; consult the source for exceptions.
Vendor:redhatrubygem-bigdecimal
Environments (1)
  • cpe:/o:redhat:enterprise_linux:7
Affected versions:
Range not specifiedShow full version range for rubygem-bigdecimal
  • Other versions are affected by default; consult the source for exceptions.
Vendor:redhatrubygem-io-console
Environments (1)
  • cpe:/o:redhat:enterprise_linux:7
Affected versions:
Range not specifiedShow full version range for rubygem-io-console
  • Other versions are affected by default; consult the source for exceptions.

1–10 of 36 · Page 1 of 4

CVSS scores and metrics8
[email protected] · NVD (Primary)Primary9.8 / 10CriticalCVSS 3.0Details
Attack complexity
Low
Confidentiality
High
Integrity
High
Availability
High
Attack vector
Network
Privileges required
Not required
User interaction
Not required
Scope
Unchanged

Source vector

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVE-2016-2339 · OSV (source-vector)9.8 / 10CriticalCVSS 3.0Details
Attack complexity
Low
Confidentiality
High
Integrity
High
Availability
High
Attack vector
Network
Privileges required
Not required
User interaction
Not required
Scope
Unchanged

Source vector

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
nvd · Wazuh CTI (cna)9.8 / 10CriticalCVSS 3.0Details
Attack complexity
Low
Confidentiality
High
Integrity
High
Availability
High
Attack vector
Network
Privileges required
Not required
User interaction
Not required
Scope
Unchanged

Source vector

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
redhat · Wazuh CTI (adp)7.0 / 10HighCVSS 3.0Details
Attack complexity
High
Confidentiality
High
Integrity
High
Availability
High
Attack vector
Local
Privileges required
Low
User interaction
Not required
Scope
Unchanged

Source vector

CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
canonical · Wazuh CTI (adp)9.8 / 10CriticalCVSS 3.0Details
Attack complexity
Low
Confidentiality
High
Integrity
High
Availability
High
Attack vector
Network
Privileges required
Not required
User interaction
Not required
Scope
Unchanged

Source vector

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Red Hat · Red Hat VEX (adp)7.0 / 10HighCVSS 3.0Details
Attack complexity
High
Confidentiality
High
Integrity
High
Availability
High
Attack vector
Local
Privileges required
Low
User interaction
Not required
Scope
Unchanged

Source vector

CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
[email protected] · NVD (Primary)7.5 / 10HighCVSS 2.0Details
Attack complexity
Low
Confidentiality
Partial
Integrity
Partial
Availability
Partial
Attack vector
Network
Authentication
Not required

Source vector

AV:N/AC:L/Au:N/C:P/I:P/A:P
nvd · Wazuh CTI (cna)7.5 / 10HighCVSS 2.0Details
Attack complexity
Low
Confidentiality
Partial
Integrity
Partial
Availability
Partial
Attack vector
Network
Authentication
Not required

Source vector

AV:N/AC:L/Au:N/C:P/I:P/A:P

CVSS measures severity; EPSS estimates exploitation probability. Lack of confirmed attacks does not mean lack of risk.

Sources and advisories25

This product uses the NVD API but is not endorsed or certified by the NVD. CVE® records © The MITRE Corporation, reproduced under the CVE Terms of Use. Data sources and licences