{"id":"CVE-2026-54903","published":"2026-06-30T23:42:06Z","modified":"2026-07-01T12:43:48Z","title":"Oj: Integer Overflow in Oj.load 2GB String Handling","vendor":"ohler55","product":"oj","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.3,"severity":"MEDIUM","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00407,"percentile":0.35862,"provenance":"source"},"cwes":[{"id":"CWE-190","name":"Integer Overflow or Wraparound"}],"references":[{"url":"https://github.com/ohler55/oj/security/advisories/GHSA-475m-ph3x-64gp","tags":["x_refsource_CONFIRM"]}],"priority":{"score":11.6,"factors":[{"name":"EPSS percentile","points":7.17},{"name":"CVSS severity","points":4.41}]},"vendorSlug":"ohler55","affectedVersions":[{"vendor":"ohler55","product":"oj","versions":["< 3.17.2"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-07-01T12:43:29.240390Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"RubyGems","package":"oj","vulnerableRanges":["<3.17.3"],"patched":["3.17.3"],"from":["GHSA-475m-ph3x-64gp"],"provenance":"source"}],"summary":{"text":"The Oj (Optimized JSON) Ruby gem, in the Oj.load routine, contains an integer overflow in its string handling (buf_append_string) that causes heap corruption when parsing a JSON string longer than 2 GB. An attacker who can supply such input over the network, without authentication or user interaction and under the default configuration, can crash the process and potentially corrupt adjacent heap memory.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:04:56Z"},"euvd":{"id":"EUVD-2026-40858","exploited":false,"provenance":"source"}}