CVE Explorer
CVE-2026-54898
Oj (Optimized JSON) is a JSON parser and Object marshaller packaged as a Ruby gem. In versions prior to 3.17.2,Oj::Parser#parse is vulnerable to a heap use-after-free when a SAJ/SAJ2 callback mutates the input JSON string during parsing. The C engine holds a raw const byte * pointer into the Ruby string's internal buffer. If a callback (e.g. hash_start) resizes the string — for example by calling String#replace with a longer value — Ruby reallocates the string buffer and frees the old one. The C
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:14b6c86f6c660d5ddc9d7b1a82a4bbe54baf47a472d5ca50eb429173e5aa8fe3 · sha256:4656b42ed1115556… · /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:14b6c86f6c660d5ddc9d7b1a82a4bbe54baf47a472d5ca50eb429173e5aa8fe3 · sha256:4656b42ed1115556… · /containers/cna/metrics/0/cvssV4_0
CWE assertions
1 source assertion{"cweId":"CWE-416","description":"CWE-416: Use After Free","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:14b6c86f6c660d5ddc9d7b1a82a4bbe54baf47a472d5ca50eb429173e5aa8fe3 · sha256:4656b42ed1115556… · /containers/cna/problemTypes/0/descriptions/0
Source references
2 source assertions{"tags":["exploit"],"url":"https://github.com/ohler55/oj/security/advisories/GHSA-q2gm-54r6-8fwm"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:14b6c86f6c660d5ddc9d7b1a82a4bbe54baf47a472d5ca50eb429173e5aa8fe3 · sha256:4656b42ed1115556… · /containers/adp/0/references/0
{"name":"https://github.com/ohler55/oj/security/advisories/GHSA-q2gm-54r6-8fwm","tags":["x_refsource_CONFIRM"],"url":"https://github.com/ohler55/oj/security/advisories/GHSA-q2gm-54r6-8fwm"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:14b6c86f6c660d5ddc9d7b1a82a4bbe54baf47a472d5ca50eb429173e5aa8fe3 · sha256:4656b42ed1115556… · /containers/cna/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.