
CVE catalog
CVE-2026-54592
Oj (Optimized JSON) is a JSON parser and Object marshaller packaged as a Ruby gem. In versions prior to 3.17.3, Oj::Doc#each_child, when invoked recursively over a deeply nested JSON document, overflo
- Severity
- High · CVSS 7.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.28% · Oct 25, 2026
Oj (Optimized JSON) is a JSON parser and Object marshaller packaged as a Ruby gem. In versions prior to 3.17.3, Oj::Doc#each_child, when invoked recursively over a deeply nested JSON document, overflows a fixed-size stack buffer and aborts the process, leading to DoS. In a two-step chain in ext/oj/fast.c, doc_each_child increments doc->where past the where_path[MAX_STACK = 100] array with no bounds check and never restores it (the doc->where-- is missing), so calling each_child recursively from inside the yield block drives doc->where beyond the array. On the next entry the function copies the path into the 800-byte stack-local buffer save_path[MAX_STACK] using wlen = doc->where - doc->where_path, so when the previous recursive call left doc->where past where_path[100] the wlen exceeds MAX_STACK and the memcpy overflows save_path on the C stack; because the Oj::Doc parser imposes no JSON nesting-depth limit (relying on a C-stack pressure check), deeply nested attacker input reaches this path. This issue has been fixed in version 3.17.3.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | ruby-oj | sid | 3.17.7-1 | fixed |
| Debian | ruby-oj | forky | 3.17.7-1 | fixed |
| Debian | ruby-oj | trixie | 3.16.3-1 | vulnerable |
| Debian | ruby-oj | trixie-security | 3.16.3-1+deb13u1 | fixed |
| Debian | ruby-oj | bookworm | 3.14.2-1 | vulnerable |
| Debian | ruby-oj | bookworm-security | 3.14.2-1+deb12u1 | fixed |
| Cpe | ruby-oj | Not reported | Not reported | vulnerable |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | ruby-oj | source | sid | 3.17.3-1 | not yet assigned | Not reported | Not reported |
| Debian | ruby-oj | source | forky | 3.17.3-1 | not yet assigned | Not reported | Not reported |
| Debian | ruby-oj | source | trixie | 3.16.3-1+deb13u1 | not yet assigned | Not reported | Not reported |
| Debian | ruby-oj | source | bookworm | 3.14.2-1+deb12u1 | not yet assigned | Not reported | Not reported |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [ruby-oj]Affected
Details (2)
3.14.2-1· amd64 · bookwormAffected · Fixed:
3.14.2-1+deb12u1nvd · ruby-oj · debian · bookworm; nvd · ruby-oj · debian · 12
3.14.2-1· arm64 · bookwormAffected · Fixed:
3.14.2-1+deb12u1nvd · ruby-oj · debian · bookworm; nvd · ruby-oj · debian · 12
[Debian 13 (Trixie)]
- [ruby-oj]Affected
Details (3)
3.16.3-1+b5· amd64 · trixieAffected · Fixed:
3.16.3-1+deb13u1nvd · ruby-oj · debian · 13
3.16.3-1+b5· arm64 · trixieAffected · Fixed:
3.16.3-1+deb13u1nvd · ruby-oj · debian · 13
3.16.3-1+deb13u1· amd64 · trixie-securityFixed · Fixed:
3.16.3-1+deb13u1nvd · ruby-oj · debian · 13
Observed:
References
- [https://github.com/ohler55/oj/security/advisories/GHSA-3m6q-jj5j-38c9]
- [https://nvd.nist.gov/vuln/detail/CVE-2026-54592]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-54592]
- [https://security-tracker.debian.org/tracker/CVE-2026-54592]
- [https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-54592.json]
[Debian Security Tracker] · [FIRST EPSS] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX]