CVE-2016-2339: Buffer Overflow

Published Jan 6, 2017
·
Updated

An exploitable heap overflow vulnerability exists in the Fiddle::Function.new "initialize" function functionality of Ruby. In Fiddle::Function.new "initialize" heap buffer "argtypes" 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.

Affected Software

3 affected components
debian/ruby2.1
ruby-lang Ruby=2.2.2
ruby-lang Ruby=2.3.0

Event History

Jan 6, 2017
CVE Published
via MITRE·09:00 PM
Data Sourced
via MITRE·09:00 PM
DescriptionWeakness
Data Sourced
via NVD·09:59 PM
DescriptionSeverityWeaknessAffected Software
Jan 11, 2024
Data Sourced
via Launchpad·10:16 PM
Description
Sep 16, 2024
Data Sourced
via Ubuntu·01:12 AM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2016-2339?

CVE-2016-2339 is considered a critical vulnerability due to its potential for remote code execution.

2

How do I fix CVE-2016-2339?

To fix CVE-2016-2339, upgrade Ruby to a version where the vulnerability is patched, specifically Ruby 2.4.0 or later.

3

What software versions are affected by CVE-2016-2339?

CVE-2016-2339 affects Ruby versions 2.2.2 and 2.3.0.

4

What type of attack can exploit CVE-2016-2339?

An attacker can exploit CVE-2016-2339 through specially crafted inputs sent to the Fiddle::Function.new function.

5

Is CVE-2016-2339 being actively exploited in the wild?

As of the latest updates, CVE-2016-2339 has been recognized for potential exploitation but requires specific conditions to be successful.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203