CVE-2017-14064
Published: 31 August 2017
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.
Priority
Status
Package | Release | Status |
---|---|---|
ruby1.9.1 Launchpad, Ubuntu, Debian |
upstream |
Needs triage
|
trusty |
Released
(1.9.3.484-2ubuntu1.5)
|
|
xenial |
Does not exist
|
|
zesty |
Does not exist
|
|
artful |
Does not exist
|
|
bionic |
Does not exist
|
|
Patches: upstream: https://github.com/flori/json/commit/8f782fd8e181d9cfe9387ded43a5ca9692266b85 |
||
ruby2.0 Launchpad, Ubuntu, Debian |
upstream |
Needs triage
|
trusty |
Released
(2.0.0.484-1ubuntu2.10)
|
|
xenial |
Does not exist
|
|
zesty |
Does not exist
|
|
artful |
Does not exist
|
|
bionic |
Does not exist
|
|
ruby2.3 Launchpad, Ubuntu, Debian |
upstream |
Needs triage
|
trusty |
Does not exist
|
|
xenial |
Released
(2.3.1-2~16.04.5)
|
|
zesty |
Ignored
(end of life)
|
|
artful |
Released
(2.3.3-1ubuntu1.2)
|
|
bionic |
Does not exist
|
Severity score breakdown
Parameter | Value |
---|---|
Base score | 9.8 |
Attack vector | Network |
Attack complexity | Low |
Privileges required | None |
User interaction | None |
Scope | Unchanged |
Confidentiality | High |
Integrity impact | High |
Availability impact | High |
Vector | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
References
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-14064
- https://www.ruby-lang.org/en/news/2017/09/14/json-heap-exposure-cve-2017-14064/
- https://hackerone.com/reports/209949
- https://ubuntu.com/security/notices/USN-3439-1
- https://ubuntu.com/security/notices/USN-3528-1
- https://ubuntu.com/security/notices/USN-3685-1
- NVD
- Launchpad
- Debian