CVE-2017-14064

CVSS v3.0 9.8 (Critical)
98% Progress
CVSS v2.0 7.5 (High)
75% Progress
EPSS 0.60 % (79th)
0.60% Progress
Affected Products 9
Advisories 14

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.

Weaknesses
CWE-119
Improper Restriction of Operations within the Bounds of a Memory Buffer
CVE Status
PUBLISHED
CNA
MITRE
Published Date
2017-08-31 17:29:00
(7 years ago)
Updated Date
2019-05-13 18:48:46
(5 years ago)

Affected Products

Loading...
Loading...
Loading...

Configuration #1

    CPE23 From Up To
  Ruby-lang Ruby 2.2.7 and prior versions cpe:2.3:a:ruby-lang:ruby <= 2.2.7
  Ruby-lang Ruby 2.3.0 cpe:2.3:a:ruby-lang:ruby:2.3.0
  Ruby-lang Ruby 2.3.0 Preview1 cpe:2.3:a:ruby-lang:ruby:2.3.0:preview1
  Ruby-lang Ruby 2.3.0 Preview2 cpe:2.3:a:ruby-lang:ruby:2.3.0:preview2
  Ruby-lang Ruby 2.3.1 cpe:2.3:a:ruby-lang:ruby:2.3.1
  Ruby-lang Ruby 2.3.2 cpe:2.3:a:ruby-lang:ruby:2.3.2
  Ruby-lang Ruby 2.3.3 cpe:2.3:a:ruby-lang:ruby:2.3.3
  Ruby-lang Ruby 2.3.4 cpe:2.3:a:ruby-lang:ruby:2.3.4
  Ruby-lang Ruby 2.4.0 cpe:2.3:a:ruby-lang:ruby:2.4.0
  Ruby-lang Ruby 2.4.0 Preview1 cpe:2.3:a:ruby-lang:ruby:2.4.0:preview1
  Ruby-lang Ruby 2.4.0 Preview2 cpe:2.3:a:ruby-lang:ruby:2.4.0:preview2
  Ruby-lang Ruby 2.4.0 Preview3 cpe:2.3:a:ruby-lang:ruby:2.4.0:preview3
  Ruby-lang Ruby 2.4.0 Rc1 cpe:2.3:a:ruby-lang:ruby:2.4.0:rc1
  Ruby-lang Ruby 2.4.1 cpe:2.3:a:ruby-lang:ruby:2.4.1

Configuration #2

    CPE23 From Up To
  Debian Linux 8.0 cpe:2.3:o:debian:debian_linux:8.0
  Debian Linux 9.0 cpe:2.3:o:debian:debian_linux:9.0

Configuration #3

    CPE23 From Up To
  Canonical Ubuntu Linux 14.04 cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:lts
  Canonical Ubuntu Linux 16.04 cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts
  Canonical Ubuntu Linux 17.10 cpe:2.3:o:canonical:ubuntu_linux:17.10

Configuration #4

    CPE23 From Up To
  Redhat Enterprise Linux Desktop 7.0 cpe:2.3:o:redhat:enterprise_linux_desktop:7.0
  Redhat Enterprise Linux Server 7.0 cpe:2.3:o:redhat:enterprise_linux_server:7.0
  Redhat Enterprise Linux Server Aus 7.4 cpe:2.3:o:redhat:enterprise_linux_server_aus:7.4
  Redhat Enterprise Linux Server Aus 7.6 cpe:2.3:o:redhat:enterprise_linux_server_aus:7.6
  Redhat Enterprise Linux Server Eus 7.4 cpe:2.3:o:redhat:enterprise_linux_server_eus:7.4
  Redhat Enterprise Linux Server Eus 7.5 cpe:2.3:o:redhat:enterprise_linux_server_eus:7.5
  Redhat Enterprise Linux Server Eus 7.6 cpe:2.3:o:redhat:enterprise_linux_server_eus:7.6
  Redhat Enterprise Linux Server Tus 7.4 cpe:2.3:o:redhat:enterprise_linux_server_tus:7.4
  Redhat Enterprise Linux Server Tus 7.6 cpe:2.3:o:redhat:enterprise_linux_server_tus:7.6
  Redhat Enterprise Linux Workstation 7.0 cpe:2.3:o:redhat:enterprise_linux_workstation:7.0
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...