high7.5
CVE-2025-27788
Out-of-bounds Read in Ruby JSON Parser
Impact
### 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.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| rubygems | json | >= 2.10.0, <= 2.10.1 | 2.10.2 |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Ruby-Lang | Javascript Object Notation | from 2.10.0 before 2.10.2 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/ruby/json/commit/c56db31f800d5d508389793e69682f99749dbadf
- https://github.com/ruby/json/releases/tag/v2.10.2
- https://github.com/ruby/json/security/advisories/GHSA-9m3q-rhmv-5q44
- https://github.com/advisories/GHSA-9m3q-rhmv-5q44
- https://nvd.nist.gov/vuln/detail/CVE-2025-27788
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/json/CVE-2025-27788.yml