CVE-2025-27788: Out-of-bounds Read in Ruby JSON Parser
7.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.30098%
CWE
Published
3/12/2025
Updated
3/13/2025
KEV Status
No
Technology
Ruby
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| json | rubygems | >= 2.10.0, <= 2.10.1 | 2.10.2 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The commit diff shows a critical boundary check addition in json_string_unescape function. The original code used 'while ((pe = memchr(...)))' without validating 'pe' stays within 'stringEnd'. The patch adds 'pe < stringEnd' check to prevent OOB read. This matches the CWE-125 description and advisory's focus on unescape handling. No other code changes were made in the security-relevant commit.