Out-of-bounds Read Affecting json package, versions >=2.10.0, <2.10.2


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RUBY-JSON-9402846
  • published13 Mar 2025
  • disclosed12 Mar 2025
  • creditUnknown

Introduced: 12 Mar 2025

NewCVE-2025-27788  (opens in a new tab)
CWE-125  (opens in a new tab)

How to fix?

Upgrade json to version 2.10.2 or higher.

Overview

json is a JSON implementation as a Ruby extension in C.

Affected versions of this package are vulnerable to Out-of-bounds Read in the json_string_unescape() function in parser.c. An attacker can cause a crash by supplying a JSON object containing malicious unicode escape sequences, like "\u1zzz".

CVSS Base Scores

version 4.0
version 3.1