HighGHSA-9m3q-rhmv-5q44CVE-2025-27788

Out-of-bounds Read in Ruby JSON Parser

Published 12 Mar 2025 · Updated 10 Sept 2026

Is your project on an affected json?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Rails or Ruby apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Affected package

jsonRubyGems
Affected
>=2.10.0 <2.10.2
Fixed in
2.10.2
Update to the fixed version for your release line, for example:bundle update --conservative json # Gemfile: '>= 2.10.2'

Details

Impact

A specially crafted document could cause an out of bound read, most likely resulting in a crash.

Versions 2.10.0 and 2.10.1 are impacted. Older versions are not.

Patches

Version 2.10.2 fixes the problem.

Workarounds

None.

Is GHSA-9m3q-rhmv-5q44 in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected json, and gives you the command that fixes it.

More advisories for json

  • LowCVE-2026-71847Ruby JSON: JSON::ResumableParser#partial_value dereferences a freed input buffer and crashes on truncated duplicate-key streams · 7 Aug 2026
  • LowCVE-2026-54696Ruby json: JSON generator heap buffer overflow when streaming to an IO · 23 Jul 2026
  • HighCVE-2026-33210Ruby JSON has a format string injection vulnerability · 19 Mar 2026
  • HighCVE-2020-10663Unsafe object creation in json RubyGem · 27 Jul 2020
  • HighCVE-2013-0269JSON gem has Improper Input Validation vulnerability · 24 Oct 2017
json security overview

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.