# CVE-2026-54696: Ruby JSON: JSON generator heap buffer overflow when streaming to an IO

- Severity: Low 3.7 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.41%, higher than 37% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-30T22:05:48.347Z
- Modified: 2026-10-25T17:10:00.197Z
- Also known as: GHSA-x2f5-4prf-w687
- Weaknesses: CWE-122, CWE-131, CWE-787
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- ruby json: >= 2.9.0, < 2.19.9
- json (RubyGems): from 2.9.0 before 2.19.9

## Every score

- GitHub_M: 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`
- GitHub: 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`

## References

- <https://github.com/ruby/json/security/advisories/GHSA-x2f5-4prf-w687> (exploit, web)
- <https://github.com/ruby/json/releases/tag/v2.19.9> (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)

## Sources

- CVE List: [CVE-2026-54696](https://www.cve.org/CVERecord?id=CVE-2026-54696), CVE Terms of Use, modified 2026-07-01
- GitHub Advisory Database: [GHSA-x2f5-4prf-w687](https://github.com/advisories/GHSA-x2f5-4prf-w687), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-54696](https://nvd.nist.gov/vuln/detail/CVE-2026-54696), Public domain, modified 2026-10-25

---

Page: https://cve.day/CVE-2026-54696 · Whole record: https://cve.day/CVE-2026-54696.json · Rebuilt by cve.day 2026-11-25T22:59:26.841Z
