CVE-2017-14064

critical
Published 2017-08-31 ยท Modified 2026-05-13
CVSS v3
9.8
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4 NEW
โ€”
not yet in upstream
VIR risk
9.8

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.

Predictions

Exploit likelihood
97%
Patch ETA
โ€”

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

No mitigations published for this CVE yet.

The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ€” if you've already worked around this in production โ€” publish your fix to the community-verified tier.

โœš Propose a mitigation on Community โ†’ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here with source_tier=community-verified.

OS impact

debian Debian Affected 2 releases
VersionStatusFixed in
9.0 Affected โ€”
8.0 Affected โ€”
redhat Red Hat Affected 1 release
VersionStatusFixed in
7.0 Affected โ€”
suse SUSE Affected 1 release
VersionStatusFixed in
โ€” Affected โ€”
ubuntu Ubuntu Affected 3 releases
VersionStatusFixed in
17.10 Affected โ€”
16.04 Affected โ€”
14.04 Affected โ€”

Application impact

VendorProductVersionsFixed
ruby ruby-langruby{"endIncluding":"2.2.7"}
ruby ruby-langruby2.3.0
ruby ruby-langruby2.3.1
ruby ruby-langruby2.3.2
ruby ruby-langruby2.3.3
ruby ruby-langruby2.3.4
ruby ruby-langruby2.4.0
ruby ruby-langruby2.4.1

References

CWEs

CWE-119

Community-verified mitigations for this CVE will appear above when contributors publish them.

Verify integrity in audit chain (admin only). AS-IS.