Back
CVE-2017-14064
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…
Critical9.8EPSS 9.4%
- Published
- Updated
- Reserved
- Assigned by
- mitre
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.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 3.0 | Critical9.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 9.4% · top 4.6% of all CVEs (4 Nov 2026)
Loading the EPSS history…
The list uses the assigner's score when there is one, then CISA's, then NVD's: Critical 9.8.
Weakness
Affected products
n/a
- affected n/a
References (16)
- USN-3685-1 (opens in a new tab)vendor-advisoryx_refsource_UBUNTUx_transferred
- RHSA-2018:0585 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- DSA-3966 (opens in a new tab)vendor-advisoryx_refsource_DEBIANx_transferred
- https://www.ruby-lang.org/en/news/2017/09/14/ruby-2-3-5-released/ (opens in a new tab)x_refsource_CONFIRMx_transferred
- RHSA-2018:0378 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- https://hackerone.com/reports/209949 (opens in a new tab)x_refsource_MISCx_transferred
- 1042004 (opens in a new tab)vdb-entryx_refsource_SECTRACKx_transferred
- https://www.ruby-lang.org/en/news/2017/09/14/ruby-2-2-8-released/ (opens in a new tab)x_refsource_CONFIRMx_transferred
- 1039363 (opens in a new tab)vdb-entryx_refsource_SECTRACKx_transferred
- RHSA-2017:3485 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- [debian-lts-announce] 20180714 [SECURITY] [DLA 1421-1] ruby2.1 security update (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- RHSA-2018:0583 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- https://bugs.ruby-lang.org/issues/13853 (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/flori/json/commit/8f782fd8e181d9cfe9387ded43a5ca9692266b85 (opens in a new tab)x_refsource_MISCx_transferred
- 100890 (opens in a new tab)vdb-entryx_refsource_BIDx_transferred
- GLSA-201710-18 (opens in a new tab)vendor-advisoryx_refsource_GENTOOx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2017-14064)Record last updated .