{"answers":{"affected":"2 open source packages ship an affected version, including oj.","exploited":"There is no known exploitation of CVE-2026-54500 in the wild and no public exploit code.","fix":"Upgrade oj to 3.17.3 or later.","what":"CVE-2026-54500 is a medium-severity vulnerability in ohler55 oj, published on 30 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-54500 and fix it if it is affected.\n\nWhat it is: CVE-2026-54500 is a medium-severity vulnerability in ohler55 oj, published on 30 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-54500 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- oj (RubyGems): affected all versions; fixed in 3.17.3\n- oj (RubyGems): affected all versions; fixed in 3.17.3\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-54500/ (Markdown: https://insights.sbomify.com/CVE-2026-54500/index.md)","id":"CVE-2026-54500","markdown":"https://insights.sbomify.com/CVE-2026-54500/index.md","name":"CVE-2026-54500","record":{"aliases":["DEBIAN-CVE-2026-54500","GHSA-fm7p-mprw-wjm9","MINI-j4wq-cp5r-ccw7","MINI-mf4v-6r96-q95f","MINI-pj8f-8jhg-c29w","MINI-pm74-89rf-8jxr","MINI-r6jj-g2f4-7p8w","UBUNTU-CVE-2026-54500"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Ruby JSON parser","requires_auth":"none","summary":"An attacker can leak process stack memory by providing long JSON keys to the Oj Ruby gem, potentially exposing sensitive data.","user_interaction":"not_required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":5.3,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-908","name":"Use of Uninitialized Resource"},{"id":"CWE-125","name":"Out-of-bounds Read"}],"description":"Oj (Optimized JSON) is a JSON parser and Object marshaller packaged as a Ruby gem. In versions prior to 3.17.3, Oj.load in :object mode reads uninitialized stack memory (and, for long keys, reads out of bounds) when parsing a JSON object whose key is 254 bytes or longer. The interned bytes can surface to the caller, disclosing process stack memory. In ext/oj/intern.c, form_attr() handles the long-key path by allocating a heap buffer, `b`, populating it with the attribute name, and then freeing it — but it passed the uninitialized stack buffer buf (not b) to rb_intern3(). rb_intern3 therefore reads len + 1 bytes of uninitialized stack memory. When the key length is \u003e= 256, it also reads out of bounds past the 256-byte buf. The resulting bytes are interned and can reach the caller via the produced Symbol or via the EncodingError message raised on invalid UTF-8, leaking process stack contents. This issue has been fixed in version 3.17.3.","ecosystems":["RubyGems"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Oj: intern.c form_attr has an uninitialized stack read","id":"CVE-2026-54500","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"RubyGems","product":null,"products":[],"type":"information_disclosure","year":"2026"},"n_packages":2,"n_references":1,"next":{"headline":"Browsertrix: Arbitrary Command Injection due to Improper Command Sanitization in Git URLs specified as Custom Behaviors","id":"CVE-2026-54501"},"packages":[{"ecosystem":"RubyGems","fixed":["3.17.3"],"introduced":["0"],"last_affected":[],"package":"oj","purl":null,"source":"GHSA-fm7p-mprw-wjm9"},{"ecosystem":"RubyGems","fixed":["3.17.3"],"introduced":["0"],"last_affected":[],"package":"oj","purl":"pkg:gem/oj","source":"GHSA-fm7p-mprw-wjm9"}],"prev":{"headline":"Stanza: Remote Code Execution via Unsafe Pickle Deserialization in Model Loaders","id":"CVE-2026-54499"},"products":["oj"],"published":"2026-06-30","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-07-01","vendors":["ohler55"]},"summary":"An attacker can leak process stack memory by providing long JSON keys to the Oj Ruby gem, potentially exposing sensitive data.","url":"https://insights.sbomify.com/CVE-2026-54500/"}