← Vulnerability feed

Vulnerability record · CVE-2017-14064 · published 31 August 2017

CVE-2017-14064: Ruby-lang ruby memory buffer overflow vulnerability

Ruby Lang · Ruby

Ruby through 2.2.7, 2.3.x through 2.3.4, and 2.4.x through 2.4.1 can expose arbitrary memory during a JSON.generate call. The issues lies in using strdup in ext/json/ext/generator/generator.c, which will stop after encountering a '\0' byte, returning a pointer to a string of length zero, which is not the length stored in space_len.

9.8 CVSS 3.0 Critical EPSS 9.4% · top 4.7% CWE-119 · Memory buffer overflow
9.8CVSS 3.0 base score, v2 7.5
9.4%EPSS exploitation probability, 30 days
NoNot in CISA KEV
9Affected product versions listed by NVD
32References, 2 tagged exploit
17 Jun 2026Last modified by NVD

Description

Ruby through 2.2.7, 2.3.x through 2.3.4, and 2.4.x through 2.4.1 can expose arbitrary memory during a JSON.generate call. The issues lies in using strdup in ext/json/ext/generator/generator.c, which will stop after encountering a '\0' byte, returning a pointer to a string of length zero, which is not the length stored in space_len.

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected products

9 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

LinkTags
http://www.securityfocus.com/bid/100890 Third Party AdvisoryVDB Entry
http://www.securitytracker.com/id/1039363 Third Party AdvisoryVDB Entry
http://www.securitytracker.com/id/1042004 Third Party AdvisoryVDB Entry
https://access.redhat.com/errata/RHSA-2017:3485 Third Party Advisory
https://access.redhat.com/errata/RHSA-2018:0378 Third Party Advisory
https://access.redhat.com/errata/RHSA-2018:0583 Third Party Advisory
https://access.redhat.com/errata/RHSA-2018:0585 Third Party Advisory
https://bugs.ruby-lang.org/issues/13853 Issue TrackingPatchVendor Advisory
https://github.com/flori/json/commit/8f782fd8e181d9cfe9387ded43a5ca9692266b85 Issue TrackingPatchThird Party Advisory
https://hackerone.com/reports/209949 ExploitThird Party Advisory
https://lists.debian.org/debian-lts-announce/2018/07/msg00012.html Mailing ListThird Party Advisory
https://security.gentoo.org/glsa/201710-18 Third Party Advisory
https://usn.ubuntu.com/3685-1/ Third Party Advisory
https://www.debian.org/security/2017/dsa-3966 Third Party Advisory
https://www.ruby-lang.org/en/news/2017/09/14/ruby-2-2-8-released/ Vendor Advisory
https://www.ruby-lang.org/en/news/2017/09/14/ruby-2-3-5-released/ Vendor Advisory
http://www.securityfocus.com/bid/100890 Third Party AdvisoryVDB Entry
http://www.securitytracker.com/id/1039363 Third Party AdvisoryVDB Entry
http://www.securitytracker.com/id/1042004 Third Party AdvisoryVDB Entry
https://access.redhat.com/errata/RHSA-2017:3485 Third Party Advisory
https://access.redhat.com/errata/RHSA-2018:0378 Third Party Advisory
https://access.redhat.com/errata/RHSA-2018:0583 Third Party Advisory
https://access.redhat.com/errata/RHSA-2018:0585 Third Party Advisory
https://bugs.ruby-lang.org/issues/13853 Issue TrackingPatchVendor Advisory
https://github.com/flori/json/commit/8f782fd8e181d9cfe9387ded43a5ca9692266b85 Issue TrackingPatchThird Party Advisory
https://hackerone.com/reports/209949 ExploitThird Party Advisory
https://lists.debian.org/debian-lts-announce/2018/07/msg00012.html Mailing ListThird Party Advisory
https://security.gentoo.org/glsa/201710-18 Third Party Advisory
https://usn.ubuntu.com/3685-1/ Third Party Advisory
https://www.debian.org/security/2017/dsa-3966 Third Party Advisory
https://www.ruby-lang.org/en/news/2017/09/14/ruby-2-2-8-released/ Vendor Advisory
https://www.ruby-lang.org/en/news/2017/09/14/ruby-2-3-5-released/ Vendor Advisory

Track CVE-2017-14064 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

10.0CVE-2025-32433Erlang/OTP SSH server missing authentication allows remote code executionErlang/OTP SSH servers before OTP-27.3.3, OTP-26.2.5.11 and OTP-25.3.2.20 mishandle SSH protocol messages, letting an unauthenticated attacker execut…KEVEPSS 99%analysed10.0CVE-2025-24201Apple WebKit out-of-bounds write allows sandbox escapeCVE-2025-24201 is an out-of-bounds write in Apple's WebKit that was addressed with improved checks. Maliciously crafted web content may break out of …KEVEPSS 3.8%analysed10.0CVE-2021-44228Apache Log4j2 JNDI lookup remote code executionApache Log4j2 versions 2.0-beta9 through 2.15.0 (excluding 2.12.2, 2.12.3, and 2.3.1) do not protect against attacker-controlled LDAP and other JNDI …KEVEPSS 100%analysed9.8CVE-2026-24061GNU Inetutils telnetd argument injection allows remote auth bypasstelnetd in GNU Inetutils through 2.7 fails to sanitize the USER environment variable, so a value such as "-f root" is passed as an argument to login …KEVEPSS 99%analysed9.8CVE-2025-39682Linux kernel TLS zero-length record handling flaw on rx_listThe Linux kernel TLS receive path mishandles zero-length records that arrive from the rx_list, breaking the assumption that a record type change cann…KEVEPSS 2.9%analysed9.8CVE-2025-24813Apache Tomcat Default Servlet path equivalence enables RCE and file disclosureApache Tomcat mishandles path equivalence for names containing an internal dot, letting a remote unauthenticated attacker write files through the Def…KEVEPSS 100%analysed9.8CVE-2024-9680Mozilla Firefox and Thunderbird use-after-free in Animation timelinesA use-after-free flaw in Animation timelines allows an attacker to execute code in the content process of Firefox and Thunderbird. Mozilla reports ex…KEVEPSS 23%analysed9.8CVE-2023-46604Apache ActiveMQ OpenWire deserialization remote code executionThe Java OpenWire protocol marshaller in Apache ActiveMQ deserializes untrusted data, letting an attacker manipulate serialized class types so the br…KEVEPSS 100%analysed

Source: NIST National Vulnerability Database (record CVE-2017-14064), CISA KEV, FIRST EPSS (scores of 2026-09-27). This page is refreshed as NVD updates the record.