CVE-2017-14064

Advisory lineage Upstream: 0 Downstream: 17
Modified
Published: 31 Aug 2017, 17:00
Last modified:05 Aug 2024, 19:13

Vulnerability Summary

Overall Risk (default)
high
70/100
CVSS Score
9.8 CRITICAL
v3.0 (nvd)
EPSS Score
1.91% LOW
2% probability +0.70%
KEV
Not listed
Ransomware
No reports
Public exploits
1 found
Dark Web
Not detected

Timeline

31 Aug 2017, 17:00
Published
Vulnerability first disclosed
05 Aug 2024, 19:13
Last Modified
Vulnerability information updated

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.

CVSS Metrics

  • v3.0CRITICALScore: 9.8CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • v2.0HIGHScore: 7.5AV:N/AC:L/Au:N/C:P/I:P/A:P

EPSS Trends

Current EPSS score: 1.91% Percentile: 84%

Techniques & Countermeasures

  • CWE-119Improper Restriction of Operations within the Bounds of a Memory Buffer

    The product performs operations on a memory buffer, but it reads from or writes to a memory location outside the buffer's intended boundary. This may result in read or write operations on unexpected memory locations that could be linked to other variables, data structures, or internal program data.

Affected Systems

  • canonicalubuntu_linux

    14.04 | 16.04 | 17.10

  • debiandebian_linux

    8.0 | 9.0

  • redhatenterprise_linux_desktop

    7.0

  • redhatenterprise_linux_server

    7.0

  • redhatenterprise_linux_server_aus

    7.4 | 7.6

  • redhatenterprise_linux_server_eus

    7.4 | 7.5 | 7.6

  • redhatenterprise_linux_server_tus

    7.4 | 7.6

  • redhatenterprise_linux_workstation

    7.0

  • ruby-langruby

    ≤ 2.2.7 | 2.3.0 | 2.3.0:preview1 | 2.3.0:preview2 | 2.3.1 | 2.3.2 | 2.3.3 | 2.3.4 | 2.4.0 | 2.4.0:preview1 | 2.4.0:preview2 | 2.4.0:preview3 | 2.4.0:rc1 | 2.4.1

References (16)