{"items":[{"id":"NVI-00018413","kind":"vulnerability","title":"Oj: Stack Buffer Overflow in Oj::Doc#each_child via Deeply Nested Input","revision":1,"unknowns":["Customer inventory, deployment, reachability and exploitation have not been inspected."],"lifecycle":"active","identifiers":["GHSA-3m6q-jj5j-38c9","CVE-2026-54592"],"plain_summary":"GitHub lists this reviewed advisory for oj. Published version ranges and source prerequisites are shown below; this is not an inspection of a visitor’s application.","review_status":"source_listed","control_topics":[],"public_actions":[{"summary":"Identify the exact component and deployed version, examine the linked publisher’s conditions, and retain evidence of any mitigation.","source_ids":["sr-1fc0578221c193250d7b50469ef47bb5"],"action_type":"investigate","limitations":"Confirm current vendor support, compatibility and deployment evidence. This report has not tested a fix in your system.","current_supported_target":null}],"schema_version":"1.1.0","source_metrics":[{"kind":"CVSS","as_of":"2026-06-19T19:36:29.000Z","value":"7.5 high","meaning":"GitHub source severity; exploitability and local consequence require separate evidence.","source_id":"sr-1fc0578221c193250d7b50469ef47bb5"}],"why_it_matters":"Published affected context helps an owner decide what evidence to gather. This report has not examined your application.","related_sources":[{"id":"sr-1fc0578221c193250d7b50469ef47bb5","url":"https://github.com/advisories/GHSA-3m6q-jj5j-38c9","basis":"vendor_advisory","notes":"GitHub Advisory Database; CC-BY-4.0. Each advisory links its original attribution. Null normalizes fields.","title":"GHSA-3m6q-jj5j-38c9","publisher":"GitHub Advisory Database","observed_at":"2026-11-06T07:19:16.585Z"}],"affected_context":[{"certainty":"source_listed","source_ids":["sr-1fc0578221c193250d7b50469ef47bb5"],"technology":"oj","known_exclusions":[],"conditions_summary":"### Summary\n\n`Oj::Doc#each_child`, when invoked recursively over a deeply nested JSON\ndocument, overflows a fixed-size stack buffer and aborts the process. This is a\ndenial of service reachable from untrusted JSON.\n\n### Details\n\nTwo-step chain in `ext/oj/fast.c`:\n\n1. **`doc_each_child` (~line 1501)** increments `doc->where` past the\n   `where_path[MAX_STACK = 100]` array with no bounds check, and never restores\n   it (`doc->where--` is missing). Calling `each_child` recursively from inside\n   the yield block therefore drives `doc->where` beyond the array.\n\n2. **On the next entry (~line 1478)** the function copies the path into a\n   stack-local buffer:\n\n   ```c\n   Leaf  save_path[MAX_STACK];           // 800-byte stack buffer\n   size_t wlen = doc->where - doc->where_path;\n   if (0 where_path, sizeof(Leaf) * (wlen + 1));\n   }\n   ```\n\n   When the previous recursive call left `doc->where` past `where_path[100]`,\n   `wlen` exceeds `MAX_STACK` and the `memcpy` overflows `save_path` on the C\n   stack.\n\nThe `Oj::Doc` parser imposes no JSON nesting-depth limit (it relies on a\nC-stack pressure check), so deeply nested attacker input reaches this path.\n","public_affected_ranges":["< 3.17.3"]}],"null_published_at":"2026-11-07T07:07:39.834Z","source_updated_at":"2026-06-19T19:36:29.000Z","source_disclosed_at":"2026-06-19T19:36:28.000Z","is_synthetic_fixture":false,"null_last_reviewed_at":null,"public_change_summary":"First indexed by Null; source disclosure date is shown separately.","null_first_observed_at":"2026-11-06T07:19:16.585Z"}],"next_cursor":null,"snapshot_revision":"42594"}