Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-54903— Oj: Integer Overflow in Oj.load 2GB String Handling

Quick assessment

Affected
ohler55 oj
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Peter Ohler oj是Peter Ohler个人开发者的一个高效JSON解析与代码生成的前端库。 Peter Ohler oj 3.17.2之前版本存在数字错误漏洞,该漏洞源于解析超过2GB的JSON字符串时,buf_append_string函数(buf.h:61)中存在整数溢出,导致memcpy越界复制大量数据,造成堆损坏,可能导致进程崩溃并破坏相邻堆内存。

AI Predicted 7.5 Difficulty: Moderate EPSS 0.33% · P25

Possible ATT&CK Techniques 1 AI

T1190 · Exploit Public-Facing Application

Affected Version Matrix 1

VendorProduct Version RangeStatus
ohler55 oj < 3.17.2 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-54903

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Oj: Integer Overflow in Oj.load 2GB String Handling
Source: CVE Program / CVE List V5
Vulnerability Description
Oj (Optimized JSON) is a JSON parser and Object marshaller packaged as a Ruby gem. In versions prior to 3.17.2, Oj.load is vulnerable to heap corruption when parsing a JSON string longer than 2 GB. An integer overflow in buf_append_string (buf.h:61) converts the string length to a large negative size_t, causing memcpy to copy an astronomically large amount of data out of bounds. This crashes the process and can corrupt adjacent heap memory. The issue has been fixed in version 3.17.2.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
Source: CVE Program / CVE List V5
Vulnerability Type
整数溢出或超界折返
Source: CVE Program / CVE List V5
Vulnerability Title
Peter Ohler oj 数字错误漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Peter Ohler oj是Peter Ohler个人开发者的一个高效JSON解析与代码生成的前端库。 Peter Ohler oj 3.17.2之前版本存在数字错误漏洞,该漏洞源于解析超过2GB的JSON字符串时,buf_append_string函数(buf.h:61)中存在整数溢出,导致memcpy越界复制大量数据,造成堆损坏,可能导致进程崩溃并破坏相邻堆内存。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
ohler55 oj < 3.17.2 -

II. Public POCs for CVE-2026-54903

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-54903

请登录查看更多情报信息。

Vendor Advisories for CVE-2026-54903 (1)

Same Patch Batch · ohler55 · 2026-06-30 · 11 CVEs total

CVE-2026-54592 7.5 HIGH Oj: Stack Buffer Overflow in Oj::Doc#each_child via Deeply Nested Input
CVE-2026-54500 5.3 MEDIUM Oj: intern.c form_attr has an uninitialized stack read
CVE-2026-54897 Oj : Use-After-Free in Oj::Doc Iterators via Reentrant Close
CVE-2026-54899 Oj: Use-After-Free in Oj::Parser Symbol Key Cache Toggle
CVE-2026-54902 Oj: Use-After-Free in Oj::Parser SAJ Long Key Callback
CVE-2026-54901 Oj: Use-After-Free in Oj::Parser array_class/hash_class GC Marking
CVE-2026-54900 Oj: Negative-Size memcpy in Oj::Parser create_id Attribute Handling
CVE-2026-54896 Oj: Heap Buffer Overflow in Oj.dump Exception Serialization via Large Indent
CVE-2026-54502 Oj: Stack Buffer Overflow in Oj.dump via Large Indent
CVE-2026-54898 Oj: Use-After-Free in Oj::Parser SAJ Callback via Input Mutation

IV. Related Vulnerabilities

V. Comments for CVE-2026-54903

No comments yet


Leave a comment