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.

Project Subscriptions

Vendors Products
Canonical Subscribe
Ubuntu Linux Subscribe
Debian Linux Subscribe
Enterprise Linux Subscribe
Enterprise Linux Desktop Subscribe
Enterprise Linux Server Subscribe
Enterprise Linux Server Aus Subscribe
Enterprise Linux Server Eus Subscribe
Enterprise Linux Server Tus Subscribe
Enterprise Linux Workstation Subscribe
Rhel Software Collections Subscribe
Ruby-lang Subscribe
Advisories
Source ID Title
Debian DLA Debian DLA DLA-1114-1 ruby1.9.1 security update
Debian DLA Debian DLA DLA-1421-1 ruby2.1 security update
Debian DSA Debian DSA DSA-3966-1 ruby2.3 security update
EUVD EUVD EUVD-2017-5577 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.
Ubuntu USN Ubuntu USN USN-3439-1 Ruby vulnerabilities
Ubuntu USN Ubuntu USN USN-3528-1 Ruby vulnerabilities
Ubuntu USN Ubuntu USN USN-3685-1 Ruby vulnerabilities
Fixes

Solution

No solution given by the vendor.


Workaround

No workaround given by the vendor.

History

No history.

Projects

Sign in to view the affected projects.

cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published:

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 : Deferred

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

Modified: 2025-04-20T01:37:25.860

Link: CVE-2017-14064

cve-icon Redhat

Severity : Low

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

Links: CVE-2017-14064 - Bugzilla

cve-icon OpenCVE Enrichment

No data.

Weaknesses