CVE-2017-14064

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.

Severity
CRITICAL
CVSS v3
9.8
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H · source nvd
Exploit chance (EPSS)
9.445%
chance of exploitation in the next 30 days
higher than 95.5% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
Yes
Exploit references (NVD and CNA): 1
Metasploit modules: 0
Nuclei templates: 0

Weakness

Timeline

  1. 2017-08-31Published by the CNA17:00 UTC

The timeline shows what already happened. To be told when this CVE changes next, watch it from the API.

Affected products

Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.

ProductVulnerable versionsFixed in
ruby-lang rubythrough 2.2.7no fix listed2.3.0no fix listed2.3.1no fix listed2.3.2no fix listed2.3.3no fix listed(+3 more)not listednot listednot listednot listednot listed
canonical ubuntu_linux14.04no fix listed16.04no fix listed17.10no fix listednot listednot listednot listed
debian debian_linux8.0no fix listed9.0no fix listednot listednot listed
redhat enterprise_linux_desktop7.0no fix listednot listed
redhat enterprise_linux_server7.0no fix listednot listed
redhat enterprise_linux_server_aus7.4no fix listed7.6no fix listednot listednot listed
redhat enterprise_linux_server_eus7.4no fix listed7.5no fix listed7.6no fix listednot listednot listednot listed
redhat enterprise_linux_server_tus7.4no fix listed7.6no fix listednot listednot listed
redhat enterprise_linux_workstation7.0no fix listednot listed

Products and versions as NVD and the vendor that published the CVE list them.

References

Get more CVE data from the API.

Free without a key or signup. Pro adds monitoring and higher limits: pricing.

Sources