CVEvulnerability

CVE-2017-14064

9.8 CRITICAL Published 2017-08-31 Modified 2026-06-17 Official page ↗
Status
Modified
Published
2017-08-31
Last modified
2026-06-17
Assigner
[email protected]
CVSS 3.0 ([email protected])
9.8 CRITICAL — CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS 2.0 ([email protected])
7.5 HIGH — AV:N/AC:L/Au:N/C:P/I:P/A:P
Weaknesses
CWE-119

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.

Affected configurations

• ruby-lang ruby (<= 2.2.7) • ruby-lang ruby 2.3.0 • ruby-lang ruby 2.3.1 • ruby-lang ruby 2.3.2 • ruby-lang ruby 2.3.3 • ruby-lang ruby 2.3.4 • ruby-lang ruby 2.4.0 • ruby-lang ruby 2.4.1 • debian debian linux 8.0 • debian debian linux 9.0 • canonical ubuntu linux 14.04 • canonical ubuntu linux 16.04 • canonical ubuntu linux 17.10 • 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 • redhat enterprise linux server eus 7.5 • redhat enterprise linux server eus 7.6 • redhat enterprise linux server tus 7.4 • redhat enterprise linux server tus 7.6 • redhat enterprise linux workstation 7.0

Related

Weakness · CWE (1)

  • CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer weakness

References