CVE-2026-54696
LOW 3.7CVSS 3.1Ruby json: JSON generator heap buffer overflow when streaming to an IO
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.
- Published
- 30 Jun 2026
- Last modified
- 25 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-122CWE-131CWE-787
- Also known as
- GHSA-x2f5-4prf-w687
- Sources
- NVDJSONOSV GHSA-x2f5-4prf-w687JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | LOW 3.7 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L |
| OSV | GitHub | CVSS 3.1 | LOW 3.7 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | RubyGems | json | >= 2.9.0, < 2.19.9 | 2.19.9 |
References
- https://github.com/ruby/json/releases/tag/v2.19.9 · WEB
- https://github.com/ruby/json/security/advisories/GHSA-x2f5-4prf-w687 · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-54696 · ADVISORY
- https://github.com/ruby/json/commit/996bac686d64e4e3aaeae03b14a7f9ee9695ebdb · WEB
- https://github.com/ruby/json · PACKAGE
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/json/CVE-2026-54696.yml · WEB
History
- 25 Nov 2026 21:03 UTC · NVD: first stored (published 30 Jun 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 23 Jul 2026)