CVE-2017-14064
CRITICALRuby < 2.2.7, 2.3.x < 2.3.4, 2.4.x < 2.4.1 - Memory Exposure via JSON.generate
Title source: llmDescription
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.
References (16)
Core 16
Core References
Third Party Advisory vendor-advisory
x_refsource_ubuntu
https://usn.ubuntu.com/3685-1/
Third Party Advisory vendor-advisory
x_refsource_redhat
https://access.redhat.com/errata/RHSA-2018:0585
Third Party Advisory vendor-advisory
x_refsource_debian
https://www.debian.org/security/2017/dsa-3966
Vendor Advisory x_refsource_confirm
https://www.ruby-lang.org/en/news/2017/09/14/ruby-2-3-5-released/
Third Party Advisory vendor-advisory
x_refsource_redhat
https://access.redhat.com/errata/RHSA-2018:0378
Exploit, Third Party Advisory x_refsource_misc
https://hackerone.com/reports/209949
Third Party Advisory, VDB Entry vdb-entry
x_refsource_sectrack
http://www.securitytracker.com/id/1042004
Vendor Advisory x_refsource_confirm
https://www.ruby-lang.org/en/news/2017/09/14/ruby-2-2-8-released/
Third Party Advisory, VDB Entry vdb-entry
x_refsource_sectrack
http://www.securitytracker.com/id/1039363
Third Party Advisory vendor-advisory
x_refsource_redhat
https://access.redhat.com/errata/RHSA-2017:3485
Mailing List, Third Party Advisory mailing-list
x_refsource_mlist
https://lists.debian.org/debian-lts-announce/2018/07/msg00012.html
Third Party Advisory vendor-advisory
x_refsource_redhat
https://access.redhat.com/errata/RHSA-2018:0583
Issue Tracking, Patch, Vendor Advisory x_refsource_misc
https://bugs.ruby-lang.org/issues/13853
Issue Tracking, Patch, Third Party Advisory x_refsource_misc
https://github.com/flori/json/commit/8f782fd8e181d9cfe9387ded43a5ca9692266b85
Third Party Advisory, VDB Entry vdb-entry
x_refsource_bid
http://www.securityfocus.com/bid/100890
Third Party Advisory vendor-advisory
x_refsource_gentoo
https://security.gentoo.org/glsa/201710-18
Scores
CVSS v3
9.8
EPSS
0.0945
EPSS Percentile
94.8%
Attack Vector
NETWORK
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Details
CWE
CWE-119
Status
published
Products (23)
canonical/ubuntu_linux
14.04
canonical/ubuntu_linux
16.04
canonical/ubuntu_linux
17.10
debian/debian_linux
8.0
debian/debian_linux
9.0
redhat/enterprise_linux_desktop
7.0
redhat/enterprise_linux_server
7.0
redhat/enterprise_linux_server_aus
7.4
redhat/enterprise_linux_server_aus
7.6
redhat/enterprise_linux_server_eus
7.4
... and 13 more
Published
Aug 31, 2017
Tracked Since
Feb 18, 2026