CVE-2025-27788: Out-of-Bounds Read Vulnerability in Ruby JSON Parser

json Updated 02 Oct 2025

Summary

12/03/2025
Yes i
High
7.5

CVE-2025-27788: Out-of-bounds Read in Ruby JSON Parser. Affects json versions >= 2.10.0, < 2.10.2. Fixed in 2.10.2. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The 'json' package is a widely used Ruby library that provides functionality for parsing and generating JSON data. It is essential for applications that require data interchange in a lightweight format. However, certain versions of this package have been found to be vulnerable to an out-of-bounds read issue, which could lead to application crashes and potential data exposure.

Vulnerability Detail

The vulnerability arises from a flaw in the Ruby JSON parser that allows specially crafted JSON documents to trigger an out-of-bounds read. This can lead to unexpected behavior, including application crashes. The affected versions, 2.10.0 and 2.10.1, do not properly handle certain input, which can be exploited by attackers to cause instability in applications relying on this library.

How To Fix

Latest published version: 3.1.0 as of 23 Oct 2026

gem install json -v 3.1.0

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

2.10.2

This is the first release that contains the fix.

gem install json -v 2.10.2

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There are no known workarounds for this vulnerability. The best course of action is to update to the fixed version as soon as possible.

Conclusion

The out-of-bounds read vulnerability in the Ruby JSON parser (CVE-2025-27788) poses significant risks to applications using affected versions of the 'json' package. Immediate action is required to update to version 2.10.2 or later to mitigate potential crashes and instability.

See every vulnerability recorded for json →

Share this vulnerability

FAQ

CVE-2025-27788 is a vulnerability in the Ruby JSON parser that allows for out-of-bounds reads, potentially leading to application crashes.

Versions 2.10.0 and 2.10.1 of the 'json' package are affected by this vulnerability.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

There are no workarounds available for this vulnerability. It is recommended to update to the patched version as soon as possible.

The CVSS score for this vulnerability is 7.5, indicating a high severity level.

Related vulnerabilities

Recent vulnerabilities recorded for json.

How To Fix

Latest published version: 3.1.0 as of 23 Oct 2026

gem install json -v 3.1.0

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

2.10.2

This is the first release that contains the fix.

gem install json -v 2.10.2

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback