Vulnerability
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 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.
65 advisories report this vulnerability, across 5 ecosystems.
Advisories
- CGA-32qq-r2r5-r9xx
- CGA-3mp9-567p-4jh8
- CGA-3v8q-9c7m-fgvf
- CGA-442j-4jch-5v68
- CGA-5649-wr59-p2pq
- CGA-56hh-h9qh-6v87
- CGA-597p-4p4c-492v
- CGA-59gv-8g3v-p366
- CGA-5c4r-475h-456f
- CGA-5c99-xrvv-mc4f
- CGA-5grg-q64v-cwf4
- CGA-5rvr-vmxh-3328
- CGA-62jr-5hww-wprg
- CGA-67r4-3652-hj2p
- CGA-6mff-wxj6-x9m4
- CGA-6p93-w9fx-543v
- CGA-6pp6-6vp5-5hvc
- CGA-7972-hmc8-h56w
- CGA-7cwf-86q2-h2wc
- CGA-7j2h-gmvr-hcw6
- CGA-8gc7-4w97-g2r9
- CGA-8m87-337v-883x
- CGA-8pr2-r5j9-3w6h
- CGA-8w34-v86c-hpmq
- CGA-934v-rr8w-w94h
- CGA-99v5-hr96-2jxp
- CGA-9h9r-7cjr-3mcj
- CGA-9rq5-m29v-vg4h
- CGA-c2jc-fj8h-62wg
- CGA-cvxx-m34c-xqh7
- CGA-f226-8f65-5252
- CGA-f7hc-v752-8vrq
- CGA-f9fg-59g9-2rr8
- CGA-g27h-pphc-x897
- CGA-g5g3-j8xr-cr45
- CGA-h8x4-f25f-33gj
- CGA-hf59-hr9g-q9mq
- CGA-j3v8-44fj-m894
- CGA-j695-f92h-mp73
- CGA-j83w-2388-8fr4
- CGA-jmcc-7298-m97h
- CGA-jpxf-w63x-2wgp
- CGA-jx9h-7c3f-w6cq
- CGA-mm85-mjcm-gfxq
- CGA-mw74-65v5-2xpg
- CGA-p9r4-hfvj-7wmx
- CGA-ppqp-pwm7-gr29
- CGA-qv5v-8f9f-2x8m
- CGA-r7vr-v2q9-jwvv
- CGA-rp4w-mhq9-p3w3
- CGA-rvvg-jpxq-g9x5
- CGA-vq26-6v6p-jvg5
- CGA-vwc4-vhrh-f677
- CGA-w452-m84g-3vgg
- CGA-w4g5-mpjq-f9gg
- CGA-w68v-wjj5-3v6g
- CGA-xc3c-cx28-4v3q
- CGA-xcw3-x257-2gqg
- CGA-xqq6-36fm-9jg5
- CGA-xwxw-5w5h-r2qx
-
DEBIAN-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 Exception objects…
-
DLA-4803-1
ruby-oj - security update
-
DSA-6521-1
ruby-oj - security update
-
GHSA-35w3-pjm6-wj95
Oj: Heap Buffer Overflow in Oj.dump Exception Serialization via Large Indent
-
UBUNTU-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 Exception objects…