CVE-2017-14064: Canonical Ubuntu Linux

Critical severity, CVSS 9.8. EPSS: 9.4% chance of exploitation in the next 30 days.

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.

Affected products

  • Canonical Ubuntu Linux: version 14.04 only; version 16.04 only; version 17.10 only
  • Debian Debian Linux: version 8.0 only; version 9.0 only
  • Red Hat Enterprise Linux Desktop: version 7.0 only
  • Red Hat Enterprise Linux Server: version 7.0 only
  • Red Hat Enterprise Linux Server Aus: version 7.4 only; version 7.6 only
  • Red Hat Enterprise Linux Server Eus: version 7.4 only; version 7.5 only; version 7.6 only
  • Red Hat Enterprise Linux Server Tus: version 7.4 only; version 7.6 only
  • Red Hat Enterprise Linux Workstation: version 7.0 only
  • Ruby-Lang Ruby: up to and including 2.2.7; version 2.3.0 only; version 2.3.1 only; version 2.3.2 only; version 2.3.3 only; version 2.3.4 only; …

Published 2017-08-31. Last modified 2026-06-17.