CVE-2017-14064
CRITICAL severity · CVSS 9.8 · Memory corruption
9.8CVSS CRITICAL
Summary
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.
Impact & exploitability
Attack vectorNetwork
Attack complexityLow
Privileges requiredNone
User interactionNone
Confidentiality impactHigh
Integrity impactHigh
Availability impactHigh
Exploit probability (EPSS)2%
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Recommendation
Apply the vendor fix promptly. Open any affected product above for its exact safe version.
Official patch: https://bugs.ruby-lang.org/issues/13853 ↗
Additional information
- NVD record
- https://bugs.ruby-lang.org/issues/13853Patch
- http://www.securityfocus.com/bid/100890Advisory
- http://www.securitytracker.com/id/1039363Advisory
- http://www.securitytracker.com/id/1042004Advisory
- https://access.redhat.com/errata/RHSA-2017:3485Advisory
- https://access.redhat.com/errata/RHSA-2018:0378Advisory
- https://access.redhat.com/errata/RHSA-2018:0583Advisory
- https://access.redhat.com/errata/RHSA-2018:0585Advisory