All vulnerabilities

Servers and applications

CVE-2017-14064

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 9.8
Published
31 Aug 2017
Last changed
17 Jun 2026
Added to UpHeron
21 Oct 2026
Sources
NVD

Affected software

SoftwareAffected versions
RubyServers and applications · cpe:a:ruby-lang:ruby
  • Version 2.4.1
  • Version 2.4.0
  • Version 2.4.0-rc1
  • Version 2.4.0-preview3
All 14 release lines
  • Every version up to 2.2.7
  • Version 2.3.0-preview1
  • Version 2.3.0-preview2
  • Version 2.3.0
  • Version 2.3.1
  • Version 2.3.2
  • Version 2.3.3
  • Version 2.3.4
  • Version 2.4.0-preview1
  • Version 2.4.0-preview2
  • Version 2.4.0-preview3
  • Version 2.4.0-rc1
  • Version 2.4.0
  • Version 2.4.1

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2017-14064
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2017-14064