Zero Day MonitorZDM
DashboardVulnerabilitiesTrendingZero-DaysNewsAbout
Login
ImpressumPrivacy Policy
Zero Day Monitor © 2026
3175 articles · 183293 vulns · 37/41 feeds (7d)
← Back to list
—
CVE-2026-54897PATCHED
rubygems · oj

Oj : Use-After-Free in Oj::Doc Iterators via Reentrant Close

Description

Oj (Optimized JSON) is a JSON parser and Object marshaller packaged as a Ruby gem. Prior to 3.17.2, Oj::Doc iterators (each_value, each_child, each_leaf) were vulnerable to a heap use-after-free. When a Ruby block yielded during iteration calls doc.close or d.close, the document's heap memory is freed while the C iterator is still running. When control returns from the block, the iterator reads from the freed region, producing a use-after-free accessible from pure Ruby. This issue has been fixed in version 3.17.2.

Affected Products

VendorProductVersions
rubygemsoj< 3.17.2

References

  • https://github.com/ohler55/oj/security/advisories/GHSA-9ppp-w3g4-fh4q(x_refsource_CONFIRM)

Related News (2 articles)

Tier B
CERT-FR3d ago
Multiples vulnérabilités dans les produits IBM (31 juillet 2026)
→ No new info (linked only)
Tier C
VulDB33d ago
CVE-2026-54897 | ohler55 oj up to 3.17.1 Oj::Doc use after free (GHSA-9ppp-w3g4-fh4q)
→ No new info (linked only)
CISA KEV❌ No
Actively exploited❌ No
Patch available
oj@3.17.3
CWECWE-416
PublishedJun 19, 2026
Last enriched33d agov2
Tags
GHSA-9ppp-w3g4-fh4qrubygemsCVE-2026-54897
Trending Score25
Source articles2
Independent2
Info Completeness8/14
Missing: cvss, epss, kev, exploit, iocs, mitre_attack

Community Vote

0
Login to vote
0 upvotes0 downvotes
No votes yet

Related CVEs (5)

NONECVE-2026-66066
Action Pack: Possible arbitrary file read and remote code execution in Active Storage variant processing
Trending: 74
MEDIUMCVE-2026-54500
Oj: intern.c form_attr has an uninitialized stack read
Trending: 28
NONECVE-2026-54899
Oj: Use-After-Free in Oj::Parser Symbol Key Cache Toggle
Trending: 25
NONECVE-2026-54898
Oj: Use-After-Free in Oj::Parser SAJ Callback via Input Mutation
Trending: 25
NONECVE-2026-54896
Oj: Heap Buffer Overflow in Oj.dump Exception Serialization via Large Indent
Trending: 25

Pin to Dashboard

Verification

State: unverified
Confidence: 0%

Vulnerability Timeline

CVE Published
Jun 19, 2026
Discovered by ZDM
Jun 19, 2026
Updated: severity, tags
Jul 1, 2026
Patch Available
Jul 1, 2026

Version History

v2
Last enriched 33d ago
v2Tier C33d ago

Updated severity to CRITICAL, noted no exploit exists, and added CVE-2026-54897 as a new tag.

severitytags
via VulDB
v144d ago

Initial creation