Vulnerability
CVE-2026-54900
Oj (Optimized JSON) is a JSON parser and Object marshaller packaged as a Ruby gem. In versions prior to 3.17.2, when in usual mode with create_id enabled, Oj::Parser#parse is vulnerable to heap corruption via a negative-size memcpy. When a JSON object key is exactly 65,535 bytes long, an integer truncation in form_attr (usual.c:63) converts the length to -1 before passing it to memcpy. This causes memcpy to copy SIZE_MAX bytes (interpreted as a huge size_t), corrupting heap memory and crashing the process. The issue has been fixed in version 3.17.2.
65 advisories report this vulnerability, across 5 ecosystems.
Advisories
- CGA-228v-8m4m-hvqq
- CGA-29cq-83vw-r46p
- CGA-2g58-3qgr-25cp
- CGA-2wxf-v5f9-5qx7
- CGA-3jpj-r25x-9233
- CGA-3v87-g8f5-wf8w
- CGA-3x2w-g7cj-ch29
- CGA-5qm9-ccx9-6pjh
- CGA-63r7-f9h8-54r4
- CGA-675j-99wc-vm3w
- CGA-6rpm-64j3-v572
- CGA-7c3x-67pf-c9r6
- CGA-7r97-2jrw-f6v9
- CGA-8vjh-8mx8-8xx4
- CGA-8vrw-mx89-h96m
- CGA-8wr9-479w-p374
- CGA-977p-g8v6-gpvm
- CGA-97h3-pw93-453r
- CGA-9ggv-895v-fpfm
- CGA-9m4m-jfr4-pwh9
- CGA-9phc-7rcv-59r3
- CGA-9q69-r5jr-552m
- CGA-f72p-cj4r-5fjx
- CGA-f879-2vwc-62jx
- CGA-f897-3x2x-p8vx
- CGA-f978-vgqv-3gvq
- CGA-fjg3-937x-r5mh
- CGA-g58g-qmxv-hc3h
- CGA-gqr7-x3r9-jc5r
- CGA-h847-4pqp-5wch
- CGA-hhgq-pfqw-24gp
- CGA-hwf6-v4g7-8x47
- CGA-jwc5-qm5p-xffq
- CGA-jwvw-m3c8-54vc
- CGA-jxr2-288c-c72q
- CGA-mcf6-hc2c-8332
- CGA-mjwp-5cjc-r5pr
- CGA-pg6m-8cm5-7w7j
- CGA-pm9v-h52j-qg6w
- CGA-pmwh-jmfp-32w6
- CGA-pxf6-ggjx-4jvg
- CGA-q35c-qgx8-365x
- CGA-q4mw-7hp8-6x7w
- CGA-q9jj-2j65-29vr
- CGA-rchw-m6qp-m928
- CGA-rqc3-qxmj-qh9g
- CGA-rqg2-c7rr-xrf9
- CGA-v8j2-rm7h-hqf6
- CGA-vhvf-f3m4-g9xx
- CGA-vm76-fj9h-wj5c
- CGA-vp49-pxgc-53f8
- CGA-w2v2-prfg-7h4x
- CGA-w5m9-7w77-g3j9
- CGA-w733-h3wc-664r
- CGA-w788-rr6g-8vjg
- CGA-wf25-g888-xpvx
- CGA-wgp5-jgp6-4r3w
- CGA-wq5p-3v8r-4v66
- CGA-x86f-ph93-qjv9
- CGA-xhx4-9f9g-m22w
-
DEBIAN-CVE-2026-54900
Oj (Optimized JSON) is a JSON parser and Object marshaller packaged as a Ruby gem. In versions prior to 3.17.2, when in usual mode with create_id enabled, Oj::Parser#parse is vulnerable to heap corruption via a…
-
DLA-4803-1
ruby-oj - security update
-
DSA-6521-1
ruby-oj - security update
-
GHSA-9cv6-qcjw-4grx
Oj: Negative-Size memcpy in Oj::Parser create_id Attribute Handling
-
UBUNTU-CVE-2026-54900
Oj (Optimized JSON) is a JSON parser and Object marshaller packaged as a Ruby gem. In versions prior to 3.17.2, when in usual mode with create_id enabled, Oj::Parser#parse is vulnerable to heap corruption via a…