CVE-2017-14064

ruby: Arbitrary heap exposure during a JSON.generate call

Published Aug 31, 2017 CVSS 3.0 · 9.8 Critical EPSS 9.4% KEV · Not listed
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.

Analysis

No analysis available yet

Remediation

No remediation available yet

Tracking

Sign in to view the affected projects.

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
History

No history.

Weaknesses
  • CWE-119

    Improper Restriction of Operations within the Bounds of a Memory Buffer

  • CWE-200

    Exposure of Sensitive Information to an Unauthorized Actor

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Aug 5, 2024, 7:13 PM
Reserved
Aug 31, 2017, 12:00 AM
Status
Modified
Published
Aug 31, 2017, 5:29 PM
Modified
Jun 17, 2026, 1:05 AM
Severity
Low
Public date
Mar 2, 2017, 12:00 AM