CWE
119
Advisory Published
Updated

CVE-2016-2339: Buffer Overflow

First published: Fri Jan 06 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 "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.

Credit: cret@cert.org

Affected SoftwareAffected VersionHow to fix
debian/ruby2.1
Ruby=2.2.2
Ruby=2.3.0

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2016-2339?

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

  • 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.

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

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

  • 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.

  • 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.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203