CVE Explorer
CVE-2026-54896
Oj (Optimized JSON) is a JSON parser and Object marshaller packaged as a Ruby gem. In versions prior to 3.17.2, when in object mode, Oj.dump is vulnerable to a heap buffer overflow when serializing Exception objects with a large :indent value. The serializer allocates a buffer sized for the object's attributes but does not account for the indent bytes added on each write. With indent: 5000, the accumulation of 5,000-byte indent strings overflows the 13,150-byte heap allocation, corrupting adjace
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
0
Affected products and versions
1 source assertion{"product":"oj","vendor":"ohler55","versions":[{"status":"affected","version":"< 3.17.2"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:6d3abb4b445bb5a7f59f742e792a772d1ae2d3b166ebeed38f8649d768b5af20 · sha256:fc1231bcd4f43be5… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackRequirements":"PRESENT","attackVector":"LOCAL","baseScore":2.1,"baseSeverity":"LOW","privilegesRequired":"NONE","subAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","userInteraction":"NONE","vectorString":"CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N","version":"4.0","vulnAvailabilityImpact":"LOW","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"NONE"},"metric_type":"cvssV4_0"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:6d3abb4b445bb5a7f59f742e792a772d1ae2d3b166ebeed38f8649d768b5af20 · sha256:fc1231bcd4f43be5… · /containers/cna/metrics/0/cvssV4_0
CWE assertions
1 source assertion{"cweId":"CWE-122","description":"CWE-122: Heap-based Buffer Overflow","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:6d3abb4b445bb5a7f59f742e792a772d1ae2d3b166ebeed38f8649d768b5af20 · sha256:fc1231bcd4f43be5… · /containers/cna/problemTypes/0/descriptions/0
Source references
2 source assertions{"name":"https://github.com/ohler55/oj/security/advisories/GHSA-35w3-pjm6-wj95","tags":["x_refsource_CONFIRM"],"url":"https://github.com/ohler55/oj/security/advisories/GHSA-35w3-pjm6-wj95"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:6d3abb4b445bb5a7f59f742e792a772d1ae2d3b166ebeed38f8649d768b5af20 · sha256:fc1231bcd4f43be5… · /containers/cna/references/0
{"tags":["exploit"],"url":"https://github.com/ohler55/oj/security/advisories/GHSA-35w3-pjm6-wj95"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:6d3abb4b445bb5a7f59f742e792a772d1ae2d3b166ebeed38f8649d768b5af20 · sha256:fc1231bcd4f43be5… · /containers/adp/0/references/0
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.