CVE-2017-14064

9.8 CRITICAL
Published: August 31, 2017 Modified: May 13, 2026
View on 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.

AI Explanation

Get an AI-powered plain-language explanation of this vulnerability and remediation steps.

Login to generate AI explanation

CVSS v3.x Details

0.0 Low Medium High Critical 10.0
Vector String
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

References to Advisories, Solutions, and Tools

Patch Vendor Advisory Exploit Third Party Advisory
http://www.securityfocus.com/bid/100890
Source: cve@mitre.org
Third Party Advisory VDB Entry
http://www.securitytracker.com/id/1039363
Source: cve@mitre.org
Third Party Advisory VDB Entry
http://www.securitytracker.com/id/1042004
Source: cve@mitre.org
Third Party Advisory VDB Entry
https://access.redhat.com/errata/RHSA-2017:3485
Source: cve@mitre.org
Third Party Advisory
https://access.redhat.com/errata/RHSA-2018:0378
Source: cve@mitre.org
Third Party Advisory
https://access.redhat.com/errata/RHSA-2018:0583
Source: cve@mitre.org
Third Party Advisory
https://access.redhat.com/errata/RHSA-2018:0585
Source: cve@mitre.org
Third Party Advisory
https://bugs.ruby-lang.org/issues/13853
Source: cve@mitre.org
Issue Tracking Patch Vendor Advisory
https://github.com/flori/json/commit/8f782fd8e181d9cfe9387ded43a5ca9692266b85
Source: cve@mitre.org
Issue Tracking Patch Third Party Advisory
https://hackerone.com/reports/209949
Source: cve@mitre.org
Exploit Third Party Advisory
https://lists.debian.org/debian-lts-announce/2018/07/msg00012.html
Source: cve@mitre.org
Mailing List Third Party Advisory
https://security.gentoo.org/glsa/201710-18
Source: cve@mitre.org
Third Party Advisory
https://usn.ubuntu.com/3685-1/
Source: cve@mitre.org
Third Party Advisory
https://www.debian.org/security/2017/dsa-3966
Source: cve@mitre.org
Third Party Advisory
http://www.securityfocus.com/bid/100890
Source: af854a3a-2127-422b-91ae-364da2661108
Third Party Advisory VDB Entry
http://www.securitytracker.com/id/1039363
Source: af854a3a-2127-422b-91ae-364da2661108
Third Party Advisory VDB Entry
http://www.securitytracker.com/id/1042004
Source: af854a3a-2127-422b-91ae-364da2661108
Third Party Advisory VDB Entry
https://access.redhat.com/errata/RHSA-2017:3485
Source: af854a3a-2127-422b-91ae-364da2661108
Third Party Advisory
https://access.redhat.com/errata/RHSA-2018:0378
Source: af854a3a-2127-422b-91ae-364da2661108
Third Party Advisory
https://access.redhat.com/errata/RHSA-2018:0583
Source: af854a3a-2127-422b-91ae-364da2661108
Third Party Advisory
https://access.redhat.com/errata/RHSA-2018:0585
Source: af854a3a-2127-422b-91ae-364da2661108
Third Party Advisory
https://bugs.ruby-lang.org/issues/13853
Source: af854a3a-2127-422b-91ae-364da2661108
Issue Tracking Patch Vendor Advisory
https://github.com/flori/json/commit/8f782fd8e181d9cfe9387ded43a5ca9692266b85
Source: af854a3a-2127-422b-91ae-364da2661108
Issue Tracking Patch Third Party Advisory
https://hackerone.com/reports/209949
Source: af854a3a-2127-422b-91ae-364da2661108
Exploit Third Party Advisory
https://lists.debian.org/debian-lts-announce/2018/07/msg00012.html
Source: af854a3a-2127-422b-91ae-364da2661108
Mailing List Third Party Advisory
https://security.gentoo.org/glsa/201710-18
Source: af854a3a-2127-422b-91ae-364da2661108
Third Party Advisory
https://usn.ubuntu.com/3685-1/
Source: af854a3a-2127-422b-91ae-364da2661108
Third Party Advisory
https://www.debian.org/security/2017/dsa-3966
Source: af854a3a-2127-422b-91ae-364da2661108
Third Party Advisory
https://www.ruby-lang.org/en/news/2017/09/14/ruby-2-2-8-released/
Source: af854a3a-2127-422b-91ae-364da2661108
Vendor Advisory
https://www.ruby-lang.org/en/news/2017/09/14/ruby-2-3-5-released/
Source: af854a3a-2127-422b-91ae-364da2661108
Vendor Advisory

32 reference(s) from NVD

Quick Stats

CVSS v3 Score
9.8 / 10.0
EPSS (Exploit Probability)
9.4%
95th percentile
Exploitation Status
Not in CISA KEV

Weaknesses (CWE)

Affected Vendors

ruby-lang canonical debian redhat