Heap Buffer Overflow in Ruby JSON Affects Multiple Versions
CVE-2026-54696
3.7LOW
What is CVE-2026-54696?
The Ruby JSON library is susceptible to a heap buffer overflow that occurs when oversized streamed objects are processed. Specifically, when the JSON generator is tasked with handling an attacker-controlled string close to 16 KB, it can exceed the bounds of its internal buffer while executing methods like JSON.dump(obj, io) and JSON::State#generate(obj, io). This vulnerability can lead to a denial of service, as exploiting it causes the process to crash. Users are strongly advised to upgrade to version 2.19.9, where this issue has been addressed.
Affected Version(s)
json >= 2.9.0, < 2.19.9
