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.
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTNIST
9.8 CRITICAL
NETWORK
LOW
NONE
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
mitreCNA
---
---
CVEADP
---
---
Base Score
CVSS 3.x
EPSS Score
Percentile: 84%
VendorProductVersion
ruby-langruby
𝑥
≤ 2.2.7
ruby-langruby
2.3.0
ruby-langruby
2.3.0:preview1
ruby-langruby
2.3.0:preview2
ruby-langruby
2.3.1
ruby-langruby
2.3.2
ruby-langruby
2.3.3
ruby-langruby
2.3.4
ruby-langruby
2.4.0
ruby-langruby
2.4.0:preview1
ruby-langruby
2.4.0:preview2
ruby-langruby
2.4.0:preview3
ruby-langruby
2.4.0:rc1
ruby-langruby
2.4.1
debiandebian_linux
8.0
debiandebian_linux
9.0
canonicalubuntu_linux
14.04
canonicalubuntu_linux
16.04
canonicalubuntu_linux
17.10
redhatenterprise_linux_desktop
7.0
redhatenterprise_linux_server
7.0
redhatenterprise_linux_server_aus
7.4
redhatenterprise_linux_server_aus
7.6
redhatenterprise_linux_server_eus
7.4
redhatenterprise_linux_server_eus
7.5
redhatenterprise_linux_server_eus
7.6
redhatenterprise_linux_server_tus
7.4
redhatenterprise_linux_server_tus
7.6
redhatenterprise_linux_workstation
7.0
𝑥
= Vulnerable software versions
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
ruby1.9.1
bionic
dne
artful
dne
zesty
dne
xenial
dne
trusty
Fixed 1.9.3.484-2ubuntu1.5
released
ruby2.0
bionic
dne
artful
dne
zesty
dne
xenial
dne
trusty
Fixed 2.0.0.484-1ubuntu2.10
released
ruby2.3
bionic
dne
artful
Fixed 2.3.3-1ubuntu1.2
released
zesty
ignored
xenial
Fixed 2.3.1-2~16.04.5
released
trusty
dne
References