Vulnerability CVE-2017-14064: Information
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.
Severity: CRITICAL (9.8) Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Fixed packages
Package name | Branch | Fixed in version | Version from repository | Errata ID | Task # | State |
---|---|---|---|---|---|---|
ruby | sisyphus | 2.4.2-alt1 | 3.1.4-alt4.4 | ALT-PU-2017-2216-1 | 188251 | Fixed |
ruby | p10 | 2.4.2-alt1 | 3.1.4-alt2.p10.1 | ALT-PU-2017-2216-1 | 188251 | Fixed |
ruby | p9 | 2.4.2-alt1 | 2.5.9-alt1 | ALT-PU-2017-2216-1 | 188251 | Fixed |
ruby | p8 | 2.4.2-alt0.M80P.1 | 2.5.1-alt0.M80P.1 | ALT-PU-2017-2276-1 | 188260 | Fixed |
ruby | c10f1 | 2.4.2-alt1 | 2.7.4-alt2.2.1 | ALT-PU-2017-2216-1 | 188251 | Fixed |
ruby | c9f2 | 2.4.2-alt1 | 2.7.6-alt0.1.c9f2 | ALT-PU-2017-2216-1 | 188251 | Fixed |
ruby | c7 | 2.4.3-alt0.M70C.1 | 2.4.4-alt0.M70C.1 | ALT-PU-2018-1228-1 | 200650 | Fixed |
ruby | p11 | 2.4.2-alt1 | 3.1.4-alt4.4 | ALT-PU-2017-2216-1 | 188251 | Fixed |
References to Advisories, Solutions, and Tools
Hyperlink | Resource |
---|---|
https://hackerone.com/reports/209949 |
|
https://github.com/flori/json/commit/8f782fd8e181d9cfe9387ded43a5ca9692266b85 |
|
https://bugs.ruby-lang.org/issues/13853 |
|
1039363 |
|
https://www.ruby-lang.org/en/news/2017/09/14/ruby-2-3-5-released/ |
|
https://www.ruby-lang.org/en/news/2017/09/14/ruby-2-2-8-released/ |
|
100890 |
|
GLSA-201710-18 |
|
DSA-3966 |
|
RHSA-2017:3485 |
|
RHSA-2018:0378 |
|
RHSA-2018:0585 |
|
RHSA-2018:0583 |
|
USN-3685-1 |
|
[debian-lts-announce] 20180714 [SECURITY] [DLA 1421-1] ruby2.1 security update |
|
1042004 |
|