Low severity3.7NVD Advisory· Published Jun 30, 2026· Updated Jul 2, 2026
CVE-2026-54696
CVE-2026-54696
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
jsonRubyGems | >= 2.9.0, < 2.19.9 | 2.19.9 |
Affected products
23- osv-coords21 versionspkg:apk/chainguard/jruby-10.1pkg:apk/chainguard/logstash-8.19pkg:apk/chainguard/logstash-8.19-iamguarded-compatpkg:apk/chainguard/logstash-8.19-with-output-opensearchpkg:apk/chainguard/logstash-9.2pkg:apk/chainguard/logstash-9.2-iamguarded-compatpkg:apk/chainguard/logstash-9.2-with-output-opensearchpkg:apk/chainguard/pact-broker-dockerpkg:apk/chainguard/pgheropkg:apk/chainguard/pghero-fipspkg:apk/chainguard/ruby3.2-fluentd-kubernetes-daemonset-1.19-kinesispkg:apk/chainguard/ruby3.2-kube-logging-operator-fluentd-outputspkg:apk/chainguard/ruby3.4-kube-logging-operator-fluentd-outputspkg:apk/chainguard/trufflerubypkg:apk/wolfi/jruby-10.1pkg:apk/wolfi/logstash-9.2pkg:apk/wolfi/logstash-9.2-iamguarded-compatpkg:apk/wolfi/logstash-9.2-with-output-opensearchpkg:apk/wolfi/ruby3.2-fluentd-kubernetes-daemonset-1.19-kinesispkg:apk/wolfi/ruby3.2-kube-logging-operator-fluentd-outputspkg:apk/wolfi/ruby3.4-kube-logging-operator-fluentd-outputs
< 0+ 20 more
- (no CPE)range: < 0
- (no CPE)range: < 8.19.19-r3
- (no CPE)range: < 8.19.19-r3
- (no CPE)range: < 8.19.19-r3
- (no CPE)range: < 9.2.8-r5
- (no CPE)range: < 9.2.8-r5
- (no CPE)range: < 9.2.8-r5
- (no CPE)range: < 2.141.0.2.119.0-r2
- (no CPE)range: < 3.8.0-r6
- (no CPE)range: < 3.8.0-r5
- (no CPE)range: < 1.19.2.1.1-r6
- (no CPE)range: < 6.7.0-r8
- (no CPE)range: < 6.7.0-r8
- (no CPE)range: < 0
- (no CPE)range: < 0
- (no CPE)range: < 9.2.8-r5
- (no CPE)range: < 9.2.8-r5
- (no CPE)range: < 9.2.8-r5
- (no CPE)range: < 1.19.2.1.1-r6
- (no CPE)range: < 6.7.0-r8
- (no CPE)range: < 6.7.0-r8
Patches
Vulnerability mechanics
References
6- github.com/advisories/GHSA-x2f5-4prf-w687ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2026-54696ghsaADVISORY
- github.com/ruby/json/commit/996bac686d64e4e3aaeae03b14a7f9ee9695ebdbghsaWEB
- github.com/ruby/json/releases/tag/v2.19.9nvdWEB
- github.com/ruby/json/security/advisories/GHSA-x2f5-4prf-w687nvdWEB
- github.com/rubysec/ruby-advisory-db/blob/master/gems/json/CVE-2026-54696.ymlghsaWEB
News mentions
0No linked articles in our index yet.