CVE-2017-14064
Last modified
CVE-2017-14064 is a vulnerability of currently unknown severity. 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.. EPSS estimates a 9.45% chance of exploitation in the next 30 days.
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.
Metrics
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Ruby-Lang | Ruby | <= 2.2.7 |
| Ruby-Lang | Ruby | 2.3.0 |
| Ruby-Lang | Ruby | 2.3.1 |
| Ruby-Lang | Ruby | 2.3.2 |
| Ruby-Lang | Ruby | 2.3.3 |
| Ruby-Lang | Ruby | 2.3.4 |
| Ruby-Lang | Ruby | 2.4.0 |
| Ruby-Lang | Ruby | 2.4.1 |
| Debian | Debian Linux | 8.0 |
| Debian | Debian Linux | 9.0 |
| Canonical | Ubuntu Linux | 14.04 |
| Canonical | Ubuntu Linux | 16.04 |
| Canonical | Ubuntu Linux | 17.10 |
| Redhat | Enterprise Linux Desktop | 7.0 |
| Redhat | Enterprise Linux Server | 7.0 |
| Redhat | Enterprise Linux Server Aus | 7.4 |
| Redhat | Enterprise Linux Server Aus | 7.6 |
| Redhat | Enterprise Linux Server Eus | 7.4 |
| Redhat | Enterprise Linux Server Eus | 7.5 |
| Redhat | Enterprise Linux Server Eus | 7.6 |
| Redhat | Enterprise Linux Server Tus | 7.4 |
| Redhat | Enterprise Linux Server Tus | 7.6 |
| Redhat | Enterprise Linux Workstation | 7.0 |
References
- http://www.securityfocus.com/bid/100890Third Party Advisory, VDB Entry
- http://www.securitytracker.com/id/1039363Third Party Advisory, VDB Entry
- http://www.securitytracker.com/id/1042004Third Party Advisory, VDB Entry
- https://access.redhat.com/errata/RHSA-2017:3485Third Party Advisory
- https://access.redhat.com/errata/RHSA-2018:0378Third Party Advisory
- https://access.redhat.com/errata/RHSA-2018:0583Third Party Advisory
- https://access.redhat.com/errata/RHSA-2018:0585Third Party Advisory
- https://bugs.ruby-lang.org/issues/13853Issue Tracking, Patch, Vendor Advisory
- https://github.com/flori/json/commit/8f782fd8e181d9cfe9387ded43a5ca9692266b85Issue Tracking, Patch, Third Party Advisory
- https://hackerone.com/reports/209949Exploit, Third Party Advisory
- https://lists.debian.org/debian-lts-announce/2018/07/msg00012.htmlMailing List, Third Party Advisory
- https://security.gentoo.org/glsa/201710-18Third Party Advisory
- https://usn.ubuntu.com/3685-1/Third Party Advisory
- https://www.debian.org/security/2017/dsa-3966Third Party Advisory
- http://www.securityfocus.com/bid/100890Third Party Advisory, VDB Entry
- http://www.securitytracker.com/id/1039363Third Party Advisory, VDB Entry
- http://www.securitytracker.com/id/1042004Third Party Advisory, VDB Entry
- https://access.redhat.com/errata/RHSA-2017:3485Third Party Advisory
- https://access.redhat.com/errata/RHSA-2018:0378Third Party Advisory
- https://access.redhat.com/errata/RHSA-2018:0583Third Party Advisory
- https://access.redhat.com/errata/RHSA-2018:0585Third Party Advisory
- https://bugs.ruby-lang.org/issues/13853Issue Tracking, Patch, Vendor Advisory
- https://github.com/flori/json/commit/8f782fd8e181d9cfe9387ded43a5ca9692266b85Issue Tracking, Patch, Third Party Advisory
- https://hackerone.com/reports/209949Exploit, Third Party Advisory
- https://lists.debian.org/debian-lts-announce/2018/07/msg00012.htmlMailing List, Third Party Advisory
- https://security.gentoo.org/glsa/201710-18Third Party Advisory
- https://usn.ubuntu.com/3685-1/Third Party Advisory
- https://www.debian.org/security/2017/dsa-3966Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2017-14064?
How severe is CVE-2017-14064?
How do I fix CVE-2017-14064?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2017
- CVE-2017-14058In FFmpeg 2.4 and 3.3.3, the read_data function in libavform…
- CVE-2017-14059In FFmpeg 3.3.3, a DoS in cine_read_header() due to lack of …
- CVE-2017-14060In ImageMagick 7.0.6-10, a NULL Pointer Dereference issue is…
- CVE-2017-14061Integer overflow in the _isBidi function in bidi.c in Libidn…
- CVE-2017-14062Integer overflow in the decode_digit function in puny_decode…9.8
- CVE-2017-14063Async Http Client (aka async-http-client) before 2.0.35 can …
- CVE-2017-14069SQL Injection exists in NexusPHP 1.5.beta5.20120707 via the …
- CVE-2017-1407IBM Security Identity Manager Virtual Appliance 6.0 and 7.0 …8.8
- CVE-2017-14070Cross Site Scripting (XSS) exists in NexusPHP 1.5.beta5.2012…
- CVE-2017-14075This vulnerability allows local attackers to escalate privil…
- CVE-2017-14076SQL Injection exists in NexusPHP 1.5.beta5.20120707 via the …
- CVE-2017-14077HTML Injection in Securimage 3.6.4 and earlier allows remote…
Are you affected by CVE-2017-14064?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
