cve.bz

CVE-2026-54696 ruby json: Heap-based Buffer Overflow

3.7 lowEPSS 0.4%Fix available

Low (3.7) in ruby json. EPSS 0.4% estimated probability of exploitation activity in the next 30 days. Fixed in json 2.19.9.

On this page
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.

Severity

CVSS 3.1

3.7 low
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
EPSS
0.4% (unchanged from 0.4% a week ago; 0.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 36th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: partial, assessed 2026-07-01. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-122 Heap-based Buffer Overflow
CWE-131 Incorrect Calculation of Buffer Size
CWE-787 Out-of-bounds Write
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-54696 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-54696?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-54696?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-54696 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
ruby json>= 2.9.0, < 2.19.9

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-x2f5-4prf-w687RubyGemsjson>=2.9.0 <2.19.92.19.9

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian13ruby-jsonno fix listedDEBIAN-CVE-2026-54696
Debian14ruby-json2.19.9+dfsg-1DEBIAN-CVE-2026-54696
Ubuntu14.04:LTSruby-jsonno fix listedUBUNTU-CVE-2026-54696
Ubuntu16.04:LTS, 18.04:LTS, 20.04:LTSjruby, ruby-jsonno fix listedUBUNTU-CVE-2026-54696
Ubuntu22.04:LTSruby3.0, ruby-jsonno fix listedUBUNTU-CVE-2026-54696
Ubuntu24.04:LTSjruby, ruby3.2, ruby-jsonno fix listedUBUNTU-CVE-2026-54696
Ubuntu25.10, 26.04:LTS, 26.10jruby, ruby3.3, ruby-jsonno fix listedUBUNTU-CVE-2026-54696
UbuntuPro:14.04:LTSjrubyno fix listedUBUNTU-CVE-2026-54696
UbuntuPro:16.04:LTSruby2.3no fix listedUBUNTU-CVE-2026-54696
UbuntuPro:18.04:LTSruby2.5no fix listedUBUNTU-CVE-2026-54696
UbuntuPro:20.04:LTSruby2.7no fix listedUBUNTU-CVE-2026-54696
Red Hathummingbird:1ruby3.4, ruby3.4-doc, ruby3.4-libs and 3 more0:3.4.10-31.5.hum1RHSA-2026:48482
Red Hathummingbird:1ruby4.0, ruby4.0-doc, ruby4.0-libs and 3 more0:4.0.6-37.1.hum1RHSA-2026:47932
Red Hathummingbird:1rubygem4.0-bigdecimal0:4.0.1-37.1.hum1RHSA-2026:47932
Red Hathummingbird:1rubygem4.0-devel, rubygem4.0-bundler, rubygem4.0-rubygems0:4.0.16-37.1.hum1RHSA-2026:47932
Red Hathummingbird:1rubygem4.0-io-console0:0.8.2-37.1.hum1RHSA-2026:47932
Red Hathummingbird:1rubygem4.0-irb0:1.16.0-37.1.hum1RHSA-2026:47932
Red Hathummingbird:1rubygem4.0-json0:2.18.0-37.1.hum1RHSA-2026:47932
Red Hathummingbird:1rubygem4.0-minitest0:6.0.0-37.1.hum1RHSA-2026:47932
Red Hathummingbird:1rubygem4.0-power_assert0:3.0.1-37.1.hum1RHSA-2026:47932
Red Hathummingbird:1rubygem4.0-psych0:5.3.1-37.1.hum1RHSA-2026:47932
Red Hathummingbird:1rubygem4.0-racc0:1.8.1-37.1.hum1RHSA-2026:47932
Red Hathummingbird:1rubygem4.0-rake0:13.3.1-37.1.hum1RHSA-2026:47932
6 more for Red Hat in the JSON and on Red Hat's page.

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat.

Red Hat

Red Hat rates this Low.

Red Hat's statement

This Low impact flaw in Ruby JSON can lead to a denial of service in applications that process untrusted, oversized streamed JSON objects. The vulnerability arises from a heap buffer overflow when the JSON generator attempts to write past its internal buffer with an attacker-controlled string near 16 KB, resulting in a process crash.

ProductPackageStateAdvisory
Red Hat Hardened Imagesruby4-0-main-0.3.2-37.1.hum1Fixed 2026-07-29RHSA-2026:47932
Red Hat Hardened Imagesruby4-0-main-4.0.6-37.1.hum1Fixed 2026-07-29RHSA-2026:47932
Red Hat Hardened Imagesruby3-4-main-3.4.10-31.5.hum1Fixed 2026-07-30RHSA-2026:48482
Red Hat 3scale API Management Platform 23scale-amp2/backend-rhel8Fix deferred
Red Hat 3scale API Management Platform 23scale-amp2/system-rhel7Out of support scope
Red Hat 3scale API Management Platform 23scale-amp2/zync-rhel8Out of support scope
Red Hat AMQ ClientsjsonFix deferred
Red Hat Enterprise Linux 10rubyFix deferred
Red Hat Enterprise Linux 10ruby4.0Fix deferred
Red Hat Enterprise Linux 10ubi10/ruby-33Fix deferred
Red Hat Enterprise Linux 10ubi10/ruby-40Fix deferred
Red Hat Enterprise Linux 8pcsFix deferred
Red Hat Enterprise Linux 8ruby:3.3/rubyFix deferred
Red Hat Enterprise Linux 8ubi8/ruby-25Fix deferred
Red Hat Enterprise Linux 8ubi8/ruby-33Fix deferred
Red Hat Enterprise Linux 9ruby:3.3/rubyFix deferred
Red Hat Enterprise Linux 9ruby:4.0/rubyFix deferred
Red Hat Enterprise Linux 9ubi9/ruby-30Fix deferred
Red Hat Enterprise Linux 9ubi9/ruby-33Fix deferred
Red Hat Enterprise Linux 9ubi9/ruby-40Fix deferred
4 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-54696.

Attack patterns (CAPEC)

  • CAPEC-92 Forced Integer Overflow Likelihood: High · Severity: High
  • CAPEC-47 Buffer Overflow via Parameter Expansion Likelihood: Medium · Severity: High
  • CAPEC-100 Overflow Buffers Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON