CVE-2025-27788: Out-of-bounds Read in Ruby JSON Parser
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.
Published Mar 12, 2025 · Updated Mar 13, 2025
Affected packages
json
- Ecosystem
- RubyGems
- Affected
- >= 2.10.0, <= 2.10.1
- Fixed in
- 2.10.2
- Check
bundle info json
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.
References
- https://github.com/ruby/json/security/advisories/GHSA-9m3q-rhmv-5q44
- https://nvd.nist.gov/vuln/detail/CVE-2025-27788
- https://github.com/ruby/json/commit/c56db31f800d5d508389793e69682f99749dbadf
- https://github.com/ruby/json/releases/tag/v2.10.2
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/json/CVE-2025-27788.yml
- https://github.com/advisories/GHSA-9m3q-rhmv-5q44
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More RubyGems vulnerabilities
All RubyGems entriesCVE-2026-71847
Ruby JSON: JSON::ResumableParser#partial_value dereferences a freed input buffer and crashes on truncated duplicate-key streams
lowAug 7, 2026CVE-2026-54696
Ruby json: JSON generator heap buffer overflow when streaming to an IO
low3.7Jul 23, 2026CVE-2026-33210
Ruby JSON has a format string injection vulnerability
high8.3Mar 19, 2026
