Name | CVE-2017-14064 |
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. |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, bugtraq, EDB, Metasploit, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, Mageia, GitHub code/issues, web search, more) |
References | DLA-1114-1, DSA-3966-1 |
NVD severity | high (attack range: remote) |
Debian Bugs | 873906 |
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|---|---|---|
ruby1.9.1 (PTS) | wheezy | 1.9.3.194-8.1+deb7u5 | vulnerable |
wheezy (security) | 1.9.3.194-8.1+deb7u7 | fixed | |
ruby2.1 (PTS) | jessie | 2.1.5-2+deb8u3 | vulnerable |
jessie (security) | 2.1.5-2+deb8u1 | vulnerable | |
ruby2.3 (PTS) | stretch (security), stretch | 2.3.3-1+deb9u2 | fixed |
buster, sid | 2.3.6-2 | fixed |
The information below is based on the following data on fixed versions.
Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
---|---|---|---|---|---|---|
ruby1.9.1 | source | (unstable) | (unfixed) | high | ||
ruby1.9.1 | source | wheezy | 1.9.3.194-8.1+deb7u6 | high | DLA-1114-1 | |
ruby2.1 | source | (unstable) | (unfixed) | high | ||
ruby2.3 | source | (unstable) | 2.3.3-1+deb9u1 | high | 873906 | |
ruby2.3 | source | stretch | 2.3.3-1+deb9u1 | high | DSA-3966-1 |
https://bugs.ruby-lang.org/issues/13853
https://github.com/flori/json/commit/8f782fd8e181d9cfe9387ded43a5ca9692266b85