CVE-2026-54696
published low CVSS 3.1 · 3.7Ruby JSON: JSON generator heap buffer overflow when streaming to an IO
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| ruby | — | json>= 2.9.0, < 2.19.9 | Affected | Not stated | GitHub_M |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | No Fix Planned | Not stated | Amazon Linux assessment |
Description
Ruby JSON is a JSON implementation for Ruby. Versions 2.9.0 through 2.19.8 are vulnerable to heap buffer overflow when the JSON generator is provided with an oversized streamed object. When streaming to an IO JSON.dump(obj, io) and JSON::State#generate(obj, io) can write past the internal JSON generator buffer when a streamed object contains an attacker-controlled string near 16 KB. Exploitation would result in a reliable process crash/denial of service. This issue has been fixed in version 2.19.9.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 3.7 / 10
- Severity
- low
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| ruby | json | >= 2.9.0, < 2.19.9 (affected) | GitHub_M · cna |
Weaknesses
3- CWE-122 CWE-122: Heap-based Buffer Overflow
- CWE-131 CWE-131: Incorrect Calculation of Buffer Size
- CWE-787 CWE-787: Out-of-bounds Write
References
2Provider assertions
2GitHub_M · cna
Ruby JSON: JSON generator heap buffer overflow when streaming to an IO
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- d9531ae13a024b9b539b12f3e833da45ee9be8bf2c9093e790bf068a332759cc
- Ingested
- 23 Sep 2026, 09:20:39 UTC
- Source record
- Official CVE record