
CVE catalog
CVE-2026-54896
Oj (Optimized JSON) is a JSON parser and Object marshaller packaged as a Ruby gem. In versions prior to 3.17.2, when in object mode, Oj.dump is vulnerable to a heap buffer overflow when serializing Ex
- Severity
- High · CVSS 7.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.15% · Oct 25, 2026
Oj (Optimized JSON) is a JSON parser and Object marshaller packaged as a Ruby gem. In versions prior to 3.17.2, when in object mode, Oj.dump is vulnerable to a heap buffer overflow when serializing Exception objects with a large :indent value. The serializer allocates a buffer sized for the object's attributes but does not account for the indent bytes added on each write. With indent: 5000, the accumulation of 5,000-byte indent strings overflows the 13,150-byte heap allocation, corrupting adjacent heap memory. This issue has been fixed in version 3.17.2.
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-35w3-pjm6-wj95]
- [https://nvd.nist.gov/vuln/detail/CVE-2026-54896]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-54896]
- [https://security-tracker.debian.org/tracker/CVE-2026-54896]
- [https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-54896.json]
[Debian Security Tracker] · [FIRST EPSS] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX]