CVE-2017-14064
ruby: Arbitrary heap exposure during a JSON.generate call
Overview
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: OX vulnerability database
Severity
9.8 · CRITICAL
CVSS 3.0 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness: CWE-119
Affected packages · 0
No registry package. This ID affects operating system packages only.
Operating systems · 63 fixes
Oracle Linux 1 release · 9 packages
| Release | Package | Fixed in |
|---|---|---|
| 7 | rubygem-io-console | 0.4.2-33.el7_4 |
| 7 | rubygem-rake | 0.9.6-33.el7_4 |
| 7 | rubygem-bigdecimal | 1.2.0-33.el7_4 |
| 7 | rubygem-json | 1.7.7-33.el7_4 |
| 7 | rubygem-psych | 2.0.0-33.el7_4 |
| 7 | ruby +5 | 2.0.0.648-33.el7_4 |
3 more rows
Red Hat 1 release · 48 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 7 | rh-ruby23-rubygem-net-telnet | 0:0.1.1-67.el7 | RHSA-2018:0585 |
| 7 | rh-ruby24-rubygem-net-telnet | 0:0.1.1-86.el7 | RHSA-2017:3485 |
| 7 | rh-ruby24-rubygem-xmlrpc | 0:0.2.1-86.el7 | RHSA-2017:3485 |
| 7 | rh-ruby22-rubygem-power-assert | 0:0.2.2-19.el7 | RHSA-2018:0583 |
| 7 | rh-ruby23-rubygem-power-assert | 0:0.2.6-67.el7 | RHSA-2018:0585 |
| 7 | rh-ruby24-rubygem-power-assert | 0:0.4.1-86.el7 | RHSA-2017:3485 |
42 more rows
SUSE Linux Enterprise 1 release · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 12.5 | libruby2-1-2-1 +3 | 2.1.9-19.3.2 | SUSE-SU-2020:1570-1 |
alpine 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 3.22 | ruby | 2.4.2-r0 |
| 3.23 | ruby | 2.4.2-r0 |
| 3.24 | ruby | 2.4.2-r0 |
| edge | ruby | 2.4.2-r0 |
debian 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 9 | ruby2-3 | 2.3.3-1+deb9u1 |
References
- www.securityfocus.com http://www.securityfocus.com/bid/100890
- www.securitytracker.com http://www.securitytracker.com/id/1039363
- www.securitytracker.com http://www.securitytracker.com/id/1042004
- access.redhat.com https://access.redhat.com/errata/RHSA-2017:3485
- access.redhat.com https://access.redhat.com/errata/RHSA-2018:0378
- access.redhat.com https://access.redhat.com/errata/RHSA-2018:0583
- access.redhat.com https://access.redhat.com/errata/RHSA-2018:0585
- access.redhat.com https://access.redhat.com/security/cve/CVE-2017-14064
- bugs.ruby-lang.org https://bugs.ruby-lang.org/issues/13853
- github.com https://github.com/flori/json/commit/8f782fd8e181d9cfe9387ded43a5ca9692266b85
Show all 25 references
- hackerone.com https://hackerone.com/reports/209949
- linux.oracle.com https://linux.oracle.com/cve/CVE-2017-14064.html
- linux.oracle.com https://linux.oracle.com/errata/ELSA-2018-0378.html
- lists.debian.org https://lists.debian.org/debian-lts-announce/2018/07/msg00012.html
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2017-14064
- security.gentoo.org https://security.gentoo.org/glsa/201710-18
- ubuntu.com https://ubuntu.com/security/notices/USN-3439-1
- ubuntu.com https://ubuntu.com/security/notices/USN-3528-1
- ubuntu.com https://ubuntu.com/security/notices/USN-3685-1
- usn.ubuntu.com https://usn.ubuntu.com/3685-1/
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2017-14064
- www.debian.org https://www.debian.org/security/2017/dsa-3966
- www.ruby-lang.org https://www.ruby-lang.org/en/news/2017/09/14/json-heap-exposure-cve-2017-14064/
- www.ruby-lang.org https://www.ruby-lang.org/en/news/2017/09/14/ruby-2-2-8-released/
- www.ruby-lang.org https://www.ruby-lang.org/en/news/2017/09/14/ruby-2-3-5-released/
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.