CVE Explorer
CVE-2026-54900
Oj (Optimized JSON) is a JSON parser and Object marshaller packaged as a Ruby gem. In versions prior to 3.17.2, when in usual mode with create_id enabled, Oj::Parser#parse is vulnerable to heap corruption via a negative-size memcpy. When a JSON object key is exactly 65,535 bytes long, an integer truncation in form_attr (usual.c:63) converts the length to -1 before passing it to memcpy. This causes memcpy to copy SIZE_MAX bytes (interpreted as a huge size_t), corrupting heap memory and crashing t
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
1
Preserved source conflicts
No provider value was silently selected as the winner.
cwe · 2 assertions
{"cweId":"CWE-787","description":"CWE-787: Out-of-bounds Write","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:f1fe687a969ce76886625ef82f753eab765435bc1c07b184fb81dfcca95f2d02 · sha256:cd4a429b8d9d4160… · /containers/cna/problemTypes/1/descriptions/0
{"cweId":"CWE-190","description":"CWE-190: Integer Overflow or Wraparound","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:f1fe687a969ce76886625ef82f753eab765435bc1c07b184fb81dfcca95f2d02 · sha256:cd4a429b8d9d4160… · /containers/cna/problemTypes/0/descriptions/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:f1fe687a969ce76886625ef82f753eab765435bc1c07b184fb81dfcca95f2d02 · sha256:cd4a429b8d9d4160… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackRequirements":"PRESENT","attackVector":"NETWORK","baseScore":6.3,"baseSeverity":"MEDIUM","privilegesRequired":"NONE","subAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","userInteraction":"NONE","vectorString":"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","version":"4.0","vulnAvailabilityImpact":"LOW","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"NONE"},"metric_type":"cvssV4_0"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:f1fe687a969ce76886625ef82f753eab765435bc1c07b184fb81dfcca95f2d02 · sha256:cd4a429b8d9d4160… · /containers/cna/metrics/0/cvssV4_0
CWE assertions
2 source assertions{"cweId":"CWE-787","description":"CWE-787: Out-of-bounds Write","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:f1fe687a969ce76886625ef82f753eab765435bc1c07b184fb81dfcca95f2d02 · sha256:cd4a429b8d9d4160… · /containers/cna/problemTypes/1/descriptions/0
{"cweId":"CWE-190","description":"CWE-190: Integer Overflow or Wraparound","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:f1fe687a969ce76886625ef82f753eab765435bc1c07b184fb81dfcca95f2d02 · sha256:cd4a429b8d9d4160… · /containers/cna/problemTypes/0/descriptions/0
Source references
2 source assertions{"tags":["exploit"],"url":"https://github.com/ohler55/oj/security/advisories/GHSA-9cv6-qcjw-4grx"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:f1fe687a969ce76886625ef82f753eab765435bc1c07b184fb81dfcca95f2d02 · sha256:cd4a429b8d9d4160… · /containers/adp/0/references/0
{"name":"https://github.com/ohler55/oj/security/advisories/GHSA-9cv6-qcjw-4grx","tags":["x_refsource_CONFIRM"],"url":"https://github.com/ohler55/oj/security/advisories/GHSA-9cv6-qcjw-4grx"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:f1fe687a969ce76886625ef82f753eab765435bc1c07b184fb81dfcca95f2d02 · sha256:cd4a429b8d9d4160… · /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.