CVE-2026-54696

Source
https://cve.org/CVERecord?id=CVE-2026-54696
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-54696.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-54696
Aliases
  • GHSA-x2f5-4prf-w687
Downstream
Published
2026-06-30T22:05:48.347Z
Modified
2026-07-08T08:13:48.486767638Z
Severity
  • 3.7 (Low) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L CVSS Calculator
Summary
Ruby JSON: JSON generator heap buffer overflow when streaming to an IO
Details

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.

Database specific
{
    "unresolved_ranges": [
        {
            "source": "AFFECTED_FIELD",
            "extracted_events": [
                {
                    "introduced": "2.9.0"
                },
                {
                    "fixed": "2.19.9"
                }
            ]
        }
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/54xxx/CVE-2026-54696.json",
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
        "CWE-122",
        "CWE-131",
        "CWE-787"
    ]
}
References

Affected packages

Git / github.com/ruby/json

Affected ranges

Type
GIT
Repo
https://github.com/ruby/json
Events
Database specific
{
    "source": "DESCRIPTION",
    "extracted_events": [
        {
            "introduced": "2.9.0"
        },
        {
            "fixed": "2.19.8"
        }
    ]
}

Affected versions

v2.*
v2.10.0
v2.10.1
v2.10.2
v2.11.0
v2.11.1
v2.11.2
v2.11.3
v2.12.0
v2.12.1
v2.12.2
v2.13.0
v2.13.1
v2.13.2
v2.14.0
v2.14.1
v2.15.0
v2.15.1
v2.15.2
v2.16.0
v2.17.0
v2.17.1
v2.18.0
v2.18.1
v2.19.0
v2.19.1
v2.19.2
v2.19.4
v2.19.5
v2.19.6
v2.19.7
v2.9.0
v2.9.1

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-54696.json"