{"answers":{"affected":"2 open source packages ship an affected version, including oj.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-54900 exists.","fix":"Upgrade oj to 3.17.3 or later.","what":"CVE-2026-54900 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-54900 and fix it if it is affected.\n\nWhat it is: CVE-2026-54900 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: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-54900 exists.\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-54900/ (Markdown: https://insights.sbomify.com/CVE-2026-54900/index.md)","id":"CVE-2026-54900","markdown":"https://insights.sbomify.com/CVE-2026-54900/index.md","name":"CVE-2026-54900","record":{"aliases":["DEBIAN-CVE-2026-54900","GHSA-9cv6-qcjw-4grx","MINI-384c-qxp5-2xcc","MINI-3f8r-g9gw-4vgc","MINI-5jfc-wp5r-9rh8","MINI-9pwc-4494-p948","MINI-ff73-8q53-hhw9","MINI-h3vj-2gw4-2wpv","MINI-q84x-4xwj-hx66","MINI-r5qp-gg8f-xvqf","MINI-whw7-xqp4-vfpp","MINI-xp23-hqv9-q7f8","UBUNTU-CVE-2026-54900"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":true,"product_category":"Ruby JSON parser","requires_auth":"none","summary":"An attacker can cause a denial of service via heap corruption in the Oj Ruby gem when parsing JSON with create_id enabled and long keys.","user_interaction":"not_required","vuln_class":"integer_overflow"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":6.3,"severity":"medium","source":"cna","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","version":"4.0"},"cwes":[{"id":"CWE-787","name":"Out-of-bounds Write"},{"id":"CWE-190","name":"Integer Overflow or Wraparound"}],"description":"Oj (Optimized JSON) is a JSON parser and Object marshaller packaged as a Ruby gem. In versions prior to 3.17.2, when in usual mode with create_id enabled, Oj::Parser#parse is vulnerable to heap corruption via a negative-size memcpy. When a JSON object key is exactly 65,535 bytes long, an integer truncation in form_attr (usual.c:63) converts the length to -1 before passing it to memcpy. This causes memcpy to copy SIZE_MAX bytes (interpreted as a huge size_t), corrupting heap memory and crashing the process. The issue has been fixed in version 3.17.2.","ecosystems":["RubyGems"],"exploits":{"exploitdb":0,"first_seen":"2026-07-25","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2026-07-25T08:42:47Z","kind":"github_poc","ref":"https://github.com/HORKimhab/CVE-2026-54900","stars":0,"title":"CVE-2026-54900, CVE-2026-54902 - Draft"}],"tier":"weaponised"},"has_fix":true,"headline":"Oj: Negative-Size memcpy in Oj::Parser create_id Attribute Handling","id":"CVE-2026-54900","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"RubyGems","product":null,"products":[],"type":"integer_overflow","year":"2026"},"n_packages":2,"n_references":1,"next":{"headline":"Oj: Use-After-Free in Oj::Parser array_class/hash_class GC Marking","id":"CVE-2026-54901"},"packages":[{"ecosystem":"RubyGems","fixed":["3.17.3"],"introduced":["0"],"last_affected":[],"package":"oj","purl":null,"source":"GHSA-9cv6-qcjw-4grx"},{"ecosystem":"RubyGems","fixed":["3.17.3"],"introduced":["0"],"last_affected":[],"package":"oj","purl":"pkg:gem/oj","source":"GHSA-9cv6-qcjw-4grx"}],"prev":{"headline":"Oj: Use-After-Free in Oj::Parser Symbol Key Cache Toggle","id":"CVE-2026-54899"},"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)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-07-01","vendors":["ohler55"]},"summary":"An attacker can cause a denial of service via heap corruption in the Oj Ruby gem when parsing JSON with create_id enabled and long keys.","url":"https://insights.sbomify.com/CVE-2026-54900/"}