A AegiFlow
LOWCVSS 8.7EPSS 0.1%

CVE-2026-54897

CVE-2026-54897 updated by NVD

Published
2026-06-19
Modified
2026-10-27
EPSS percentile
3%
Sources
github-advisory, nvd

Summary

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 packages

EcosystemPackageAffected versionsFixed versions
RubyGemsoj—3.17.3

Remediation: Upgrade to 3.17.3 or later.

References

Includes data from the GitHub Advisory Database, licensed under CC-BY 4.0.

Includes data from the National Vulnerability Database (NIST). NVD data is in the public domain; this page is not endorsed by NIST.

CVE® is a registered trademark of The MITRE Corporation. CVE content reproduced under the CVE Terms of Use; copyright designation © MITRE.

EPSS scores provided by the FIRST.org Exploit Prediction Scoring System.