Out-of-bounds Write Affecting json package, versions >=2.18.0, <2.18.2>=2.19.0, <2.19.3


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.78% (58th percentile)

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-23746557
  • published4 Dec 2026
  • disclosed1 Dec 2026
  • creditUnknown

Introduced: 1 Dec 2026

NewCVE-2026-141523  (opens in a new tab)
CWE-787  (opens in a new tab)

How to fix?

Upgrade json to version 2.18.2, 2.19.3 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 Write in the parser process when the allow_control_characters option is enabled. An attacker can cause a heap corruption or crash the virtual machine by providing specially crafted JSON input containing a backslash followed by a control character. This is only exploitable if the allow_control_characters: true option is enabled when parsing untrusted input.

CVSS Base Scores

version 4.0
version 3.1