{
  "claim": {
    "argus_claim_ref": null,
    "attacker_control": null,
    "claimed_surface": "library_api",
    "expected_impact": "memory_corruption",
    "finding_id": null,
    "id": null,
    "required_entrypoint_detail": null,
    "required_entrypoint_kind": "function_call",
    "submission_reason": "ticket_derived",
    "trigger_class": "library_api",
    "upstream_verdicts": null
  },
  "latest_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. Fixed in version 3.17.2.",
  "product": "ohler55/oj",
  "severity": "medium",
  "status": "open",
  "summary": "Oj Ruby gem stack buffer overflow via large :indent value",
  "ticket_id": "CVE-2026-54502"
}