{"id":81306,"date":"2026-07-01T02:46:24","date_gmt":"2026-06-30T23:16:24","guid":{"rendered":"https:\/\/afaghhosting.net\/blog\/cve-2026-54592-oj-stack-buffer-overflow-in-ojdoceach_child-via-deeply-nested-input\/"},"modified":"2026-07-01T02:46:24","modified_gmt":"2026-06-30T23:16:24","slug":"cve-2026-54592-oj-stack-buffer-overflow-in-ojdoceach_child-via-deeply-nested-input","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/cve-2026-54592-oj-stack-buffer-overflow-in-ojdoceach_child-via-deeply-nested-input\/","title":{"rendered":"CVE-2026-54592 &#8211; Oj: Stack Buffer Overflow in Oj::Doc#each_child via Deeply Nested Input"},"content":{"rendered":"<p>CVE ID :CVE-2026-54592<\/p>\n<p>  Published : June 30, 2026, 11:16 p.m. | 30\u00a0minutes ago<\/p>\n<p>  Description :Oj (Optimized JSON) is a JSON parser and Object marshaller packaged as a Ruby gem. In versions prior to 3.17.3, Oj::Doc#each_child, when invoked recursively over a deeply nested JSON document, overflows a fixed-size stack buffer and aborts the process, leading to DoS.  In a two-step chain in ext\/oj\/fast.c, doc_each_child increments doc-&gt;where past the where_path[MAX_STACK = 100] array with no bounds check and never restores it (the doc-&gt;where&#8211; is missing), so calling each_child recursively from inside the yield block drives doc-&gt;where beyond the array. On the next entry  the function copies the path into the 800-byte stack-local buffer save_path[MAX_STACK]  using wlen = doc-&gt;where &#8211; doc-&gt;where_path, so when the previous recursive call left doc-&gt;where past where_path[100] the wlen exceeds MAX_STACK and  the memcpy overflows save_path on the C stack; because the Oj::Doc parser imposes no JSON nesting-depth limit (relying on a C-stack pressure check), deeply nested attacker input reaches this path. This issue has been fixed in version 3.17.3.<\/p>\n<p>  Severity: 0.0 | NA<\/p>\n<p>  Visit the link for more details, such as CVSS details, affected products, timeline, and more&#8230;\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CVE ID :CVE-2026-54592 Published : June 30, 2026, 11:16 p.m. | 30\u00a0minutes ago Description :Oj (Optimized JSON) is a JSON parser and Object marshaller packaged as a Ruby gem. In versions prior to 3.17.3, Oj::Doc#each_child, when invoked recursively over a deeply nested JSON document, overflows a fixed-size stack buffer and aborts the process, leading to &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-81306","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/81306","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/comments?post=81306"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/81306\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=81306"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=81306"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=81306"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}