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.
History

No history.

cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published: 2017-08-31T17:00:00

Updated: 2024-08-05T19:13:41.685Z

Reserved: 2017-08-31T00:00:00

Link: CVE-2017-14064

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Modified

Published: 2017-08-31T17:29:00.183

Modified: 2024-11-21T03:12:04.947

Link: CVE-2017-14064

cve-icon Redhat

Severity : Low

Publid Date: 2017-03-02T00:00:00Z

Links: CVE-2017-14064 - Bugzilla