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 in Wolfi
- CGA-228v-8m4m-hvqq
- CGA-29cq-83vw-r46p
- CGA-675j-99wc-vm3w
- CGA-8vrw-mx89-h96m
- CGA-f897-3x2x-p8vx
- CGA-mcf6-hc2c-8332
- CGA-pm9v-h52j-qg6w
- CGA-pxf6-ggjx-4jvg
- CGA-q4mw-7hp8-6x7w
- CGA-q9jj-2j65-29vr
- CGA-rqc3-qxmj-qh9g
- CGA-vhvf-f3m4-g9xx
- CGA-vm76-fj9h-wj5c
- CGA-w788-rr6g-8vjg
- CGA-wgp5-jgp6-4r3w
- CGA-wq5p-3v8r-4v66