CVE Explorer
CVE-2026-54502
Oj (Optimized JSON) is a JSON parser and Object marshaller packaged as a Ruby gem. In versions prior to 3.17.2, Oj.dump is vulnerable to a stack-based buffer overflow when a large :indent value is provided by the developer. fill_indent in dump.h calls memset(indent_str, ' ', (size_t)opts->indent) without validating the size. When opts->indent is set to INT_MAX (2,147,483,647), the (size_t) cast preserves the large value and memset writes 2 GB into the stack-allocated out buffer (4,184 bytes), co
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:c01452018a1d7e2e070bfcc1065cad2b7f4bb25ca29df39f27afe90b17d9739c · sha256:3cd5a5df804f9451… · /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:c01452018a1d7e2e070bfcc1065cad2b7f4bb25ca29df39f27afe90b17d9739c · sha256:3cd5a5df804f9451… · /containers/cna/metrics/0/cvssV4_0
CWE assertions
1 source assertion{"cweId":"CWE-121","description":"CWE-121: Stack-based Buffer Overflow","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:c01452018a1d7e2e070bfcc1065cad2b7f4bb25ca29df39f27afe90b17d9739c · sha256:3cd5a5df804f9451… · /containers/cna/problemTypes/0/descriptions/0
Source references
2 source assertions{"name":"https://github.com/ohler55/oj/security/advisories/GHSA-3v45-f3vh-wg7m","tags":["x_refsource_CONFIRM"],"url":"https://github.com/ohler55/oj/security/advisories/GHSA-3v45-f3vh-wg7m"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:c01452018a1d7e2e070bfcc1065cad2b7f4bb25ca29df39f27afe90b17d9739c · sha256:3cd5a5df804f9451… · /containers/cna/references/0
{"tags":["exploit"],"url":"https://github.com/ohler55/oj/security/advisories/GHSA-3v45-f3vh-wg7m"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:c01452018a1d7e2e070bfcc1065cad2b7f4bb25ca29df39f27afe90b17d9739c · sha256:3cd5a5df804f9451… · /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.