RubyGems (Ruby)Worst: High11 advisories

oj: known vulnerabilities

oj has 11 reviewed security advisories in the GitHub Advisory Database — 10 high, 1 moderate. The most recent was published 2026-07-01. Each one below lists the affected version range, the release that fixes it, its CVE and severity. SkyShield matches these against the oj versions running across your servers, containers and images, and ranks what to patch first.

How to fix oj

Upgrade oj to a release at or above the fixed version shown for each advisory below. For RubyGems (Ruby):

bundle update oj to 3.17.2 (or gem install oj -v 3.17.2)

SkyShield checks the installed version on every machine and container, so you can see which hosts are still on an affected release after you roll the fix out.

Advisories (11)

Oj: Use-After-Free in Oj::Parser Symbol Key Cache Toggle High CWE-416 — Affected: before 3.17.2. Fixed in 3.17.2. Published 2026-07-01. GHSA-2cw7-v8ff-p88r · CVE-2026-54899
Oj: Use-After-Free in Oj::Doc Iterators via Reentrant Close High CWE-416 — Affected: before 3.17.3. Fixed in 3.17.3. Published 2026-07-01. GHSA-9ppp-w3g4-fh4q · CVE-2026-54897
Oj: Heap Buffer Overflow in Oj.dump Exception Serialization via Large Indent High CWE-122 — Affected: before 3.17.3. Fixed in 3.17.3. Published 2026-06-19. GHSA-35w3-pjm6-wj95 · CVE-2026-54896
Oj: Stack Buffer Overflow in Oj::Doc#each_child via Deeply Nested Input High 7.5 CWE-125 CWE-787 — Affected: before 3.17.3. Fixed in 3.17.3. Published 2026-06-19. GHSA-3m6q-jj5j-38c9 · CVE-2026-54592
Oj: Stack Buffer Overflow in Oj.dump via Large Indent High CWE-121 — Affected: before 3.17.3. Fixed in 3.17.3. Published 2026-06-19. GHSA-3v45-f3vh-wg7m · CVE-2026-54502
Oj: Integer Overflow in Oj.load 2GB String Handling High CWE-190 — Affected: before 3.17.3. Fixed in 3.17.3. Published 2026-06-19. GHSA-475m-ph3x-64gp · CVE-2026-54903
Oj: Negative-Size memcpy in Oj::Parser create_id Attribute Handling High CWE-416 — Affected: before 3.17.3. Fixed in 3.17.3. Published 2026-06-19. GHSA-9cv6-qcjw-4grx · CVE-2026-54900
Oj: intern.c form_attr (uninitialized stack read) Moderate 5.3 CWE-125 CWE-908 — Affected: before 3.17.3. Fixed in 3.17.3. Published 2026-06-19. GHSA-fm7p-mprw-wjm9 · CVE-2026-54500
Oj: Use-After-Free in Oj::Parser SAJ Long Key Callback High CWE-416 — Affected: before 3.17.3. Fixed in 3.17.3. Published 2026-06-19. GHSA-m578-w5vf-rfcm · CVE-2026-54902
Oj: Use-After-Free in Oj::Parser SAJ Callback via Input Mutation High CWE-416 — Affected: before 3.17.3. Fixed in 3.17.3. Published 2026-06-19. GHSA-q2gm-54r6-8fwm · CVE-2026-54898
Oj: Use-After-Free in Oj::Parser array_class/hash_class GC Marking High CWE-416 — Affected: before 3.17.3. Fixed in 3.17.3. Published 2026-06-19. GHSA-vwm4-62gf-x745 · CVE-2026-54901

Find oj across your fleet

Install one agent per server and connect your cloud. SkyShield matches your packages and images against GHSA, CISA KEV and EPSS and shows the fix per machine. Free for one server, then from $49 per server a month. Start free.