CVE-2017-14064

Summary

CVECVE-2017-14064
StatePUBLIC
Assigner[email protected]
Source PriorityCVE Program / NVD first with legacy fallback
Published2017-08-31 17:29:00 UTC
Updated2019-05-13 18:48:00 UTC
DescriptionRuby 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.

Risk And Classification

Problem Types: CWE-119

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Operating System Canonical Ubuntu Linux 14.04 All All All
Operating System Canonical Ubuntu Linux 16.04 All All All
Operating System Canonical Ubuntu Linux 17.10 All All All
Operating System Canonical Ubuntu Linux 14.04 All All All
Operating System Canonical Ubuntu Linux 16.04 All All All
Operating System Canonical Ubuntu Linux 17.10 All All All
Operating System Debian Debian Linux 8.0 All All All
Operating System Debian Debian Linux 9.0 All All All
Operating System Debian Debian Linux 8.0 All All All
Operating System Debian Debian Linux 9.0 All All All
Operating System Redhat Enterprise Linux Desktop 7.0 All All All
Operating System Redhat Enterprise Linux Desktop 7.0 All All All
Operating System Redhat Enterprise Linux Server 7.0 All All All
Operating System Redhat Enterprise Linux Server 7.0 All All All
Operating System Redhat Enterprise Linux Server Aus 7.4 All All All
Operating System Redhat Enterprise Linux Server Aus 7.6 All All All
Operating System Redhat Enterprise Linux Server Aus 7.4 All All All
Operating System Redhat Enterprise Linux Server Aus 7.6 All All All
Operating System Redhat Enterprise Linux Server Eus 7.4 All All All
Operating System Redhat Enterprise Linux Server Eus 7.5 All All All
Operating System Redhat Enterprise Linux Server Eus 7.6 All All All
Operating System Redhat Enterprise Linux Server Eus 7.4 All All All
Operating System Redhat Enterprise Linux Server Eus 7.5 All All All
Operating System Redhat Enterprise Linux Server Eus 7.6 All All All
Operating System Redhat Enterprise Linux Server Tus 7.4 All All All
Operating System Redhat Enterprise Linux Server Tus 7.6 All All All
Operating System Redhat Enterprise Linux Server Tus 7.4 All All All
Operating System Redhat Enterprise Linux Server Tus 7.6 All All All
Operating System Redhat Enterprise Linux Workstation 7.0 All All All
Operating System Redhat Enterprise Linux Workstation 7.0 All All All
Application Ruby-lang Ruby 2.3.0 All All All
Application Ruby-lang Ruby 2.3.0 preview1 All All
Application Ruby-lang Ruby 2.3.0 preview2 All All
Application Ruby-lang Ruby 2.3.1 All All All
Application Ruby-lang Ruby 2.3.2 All All All
Application Ruby-lang Ruby 2.3.3 All All All
Application Ruby-lang Ruby 2.3.4 All All All
Application Ruby-lang Ruby 2.4.0 All All All
Application Ruby-lang Ruby 2.4.0 preview1 All All
Application Ruby-lang Ruby 2.4.0 preview2 All All
Application Ruby-lang Ruby 2.4.0 preview3 All All
Application Ruby-lang Ruby 2.4.0 rc1 All All
Application Ruby-lang Ruby 2.4.1 All All All
Application Ruby-lang Ruby 2.3.0 All All All
Application Ruby-lang Ruby 2.3.0 preview1 All All
Application Ruby-lang Ruby 2.3.0 preview2 All All
Application Ruby-lang Ruby 2.3.1 All All All
Application Ruby-lang Ruby 2.3.2 All All All
Application Ruby-lang Ruby 2.3.3 All All All
Application Ruby-lang Ruby 2.3.4 All All All
Application Ruby-lang Ruby 2.4.0 All All All
Application Ruby-lang Ruby 2.4.0 preview1 All All
Application Ruby-lang Ruby 2.4.0 preview2 All All
Application Ruby-lang Ruby 2.4.0 preview3 All All
Application Ruby-lang Ruby 2.4.0 rc1 All All
Application Ruby-lang Ruby 2.4.1 All All All
Application Ruby-lang Ruby All All All All

References

ReferenceSourceLinkTags
Ruby 2.2.8 Released CONFIRM www.ruby-lang.org Vendor Advisory
Red Hat Customer Portal REDHAT access.redhat.com Third Party Advisory
[SECURITY] [DLA 1421-1] ruby2.1 security update MLIST lists.debian.org Mailing List, Third Party Advisory
Red Hat Customer Portal REDHAT access.redhat.com Third Party Advisory
Apple macOS/OS X Multiple Remote Code Execution, Denial of Service, and Information Disclosure Attacks and Local Privilege Escalation Attacks - SecurityTracker SECTRACK www.securitytracker.com Third Party Advisory, VDB Entry
Ruby: Multiple vulnerabilities (GLSA 201710-18) — Gentoo security GENTOO security.gentoo.org Third Party Advisory
Fix arbitrary heap exposure problem · flori/json@8f782fd · GitHub MISC github.com Issue Tracking, Patch, Third Party Advisory
Ruby Multiple Flaws Let Remote Users Inject Log Data, Deny Service, and Obtain Potentially Sensitive Information from the Heap - SecurityTracker SECTRACK www.securitytracker.com Third Party Advisory, VDB Entry
Bug #13853: Backport request r58323 - Ruby master - Ruby Issue Tracking System MISC bugs.ruby-lang.org Issue Tracking, Patch, Vendor Advisory
USN-3685-1: Ruby vulnerabilities | Ubuntu security notices UBUNTU usn.ubuntu.com Third Party Advisory
HackerOne MISC hackerone.com Exploit, Third Party Advisory
Red Hat Customer Portal REDHAT access.redhat.com Third Party Advisory
Red Hat Customer Portal REDHAT access.redhat.com Third Party Advisory
Ruby CVE-2017-14064 Arbitrary Memory Disclosure Vulnerability BID www.securityfocus.com Third Party Advisory, VDB Entry
Ruby 2.3.5 Released CONFIRM www.ruby-lang.org Vendor Advisory
Debian -- Security Information -- DSA-3966-1 ruby2.3 DEBIAN www.debian.org Third Party Advisory
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Legacy QID Mappings

  • 500608 Alpine Linux Security Update for ruby
  • 504368 Alpine Linux Security Update for ruby
  • 710368 Gentoo Linux Ruby Multiple Vulnerabilities (GLSA 201710-18)
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

CVE.report and Source URL Uptime Status status.cve.report