SecurityContext

CVE-2026-54502: Oj - Buffer Overflow

  • Cve: CVE-2026-54502
  • Name: Oj - Buffer Overflow
  • Description: 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), corrupting the stack and crashing the process. This issue has been fixed in version 3.17.2.
  • Impact: Attackers can crash the process causing denial of service via stack corruption.
  • Remediation: Upgrade to version 3.17.2 or later.
  • Vulnerability type: buffer_overflow
  • Vulnerability impact: denial_of_service
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 6.3
  • Cvss 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Epss score: 0.00401
  • Epss percentile: 0.3482
  • Assignee: [email protected]
  • Published at: 2026-07-01T00:16:32Z
  • Age in days: 146
  • Modified at: 2026-10-25T17:10:00Z
  • References total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-54502
  • Nvd status: deferred
  • Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, products total, products, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-121Stack-based Buffer Overflow

References

UrlSourceTags
https://github.com/ohler55/oj/security/advisories/GHSA-3v45-f3vh-wg7mnvd

Projects

RepositoryLink kindsIndexedUrl
ohler55/ojpackage, security_advisoryyes/v1/repositories/ohler55/oj

Index

  • Repositories: 25
  • Repositories high signal: 17
  • Packages: 1

Exploitation

  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts