CVE-2017-14064

Critical

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.

SeverityCritical
CVSS9.8
Exploit probability—
ProductRuby
PublishedAug 31, 2017
First seenAug 31, 2017

How to fix

Affected products

ProductAffected versionsFixed in
ruby-lang rubyv ≤ 2.2.7, 2.3.0, 2.3.1, 2.3.2, 2.3.3, 2.3.4, 2.4.0, 2.4.1—
debian debian_linux8.0, 9.0—
canonical ubuntu_linux14.04, 16.04, 17.10—
redhat enterprise_linux_desktop7.0—
redhat enterprise_linux_server7.0—
redhat enterprise_linux_server_aus7.4, 7.6—
redhat enterprise_linux_server_eus7.4, 7.5, 7.6—
redhat enterprise_linux_server_tus7.4, 7.6—
redhat enterprise_linux_workstation7.0—

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.

CVE-2017-14064 · Ruby · Dark Radar