{"id":"CVE-2026-47235","summary":"SimulationCraft: Heap-Based Buffer Overflow / Out-of-Bounds Write in SimulationCraft's gem_id Array","details":"SimulationCraft is a tool to explore combat mechanics in World of Warcraft. In builds after release-820-01 and before the identified May 7, 2026 nightly, the `bcp_api.cpp` loop over the JSON `sockets` array uses `slot_data[\"sockets\"].Size()` without bounding `gem_idx` by `MAX_GEM_SLOTS`, which is four in `engine/sc_enums.hpp`. The destination `gem_id` and `gem_bonus_id` arrays in `engine/item/item.hpp` have only four elements. More than four socket entries therefore write beyond `gem_id` into the adjacent `gem_bonus_id` vector storage; `bonus_list` entries can also access `gem_bonus_id` out of bounds. Corrupting a vector's `_M_start` pointer causes the `item_t` destructor to free an attacker-influenced pointer during normal cleanup. The advisory reports crashes and code execution demonstrated in a testing environment. Attack inputs can arrive through a malicious `.simc` profile with a `[[equipment]]` section, a compromised addon export, or `Battle.net API` responses modified by an attacker with a privileged network position. The fix is contained in the nightly build identified as simc-1205-01-516b5d7; no containing release tag is available.","aliases":["GHSA-wc9c-hfh3-phxx"],"modified":"2026-11-06T01:05:58.675623597Z","published":"2026-10-28T15:38:21.113Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/47xxx/CVE-2026-47235.json","cna_assigner":"GitHub_M","cwe_ids":["CWE-122","CWE-787"]},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/47xxx/CVE-2026-47235.json"},{"type":"ADVISORY","url":"https://github.com/simulationcraft/simc/security/advisories/GHSA-wc9c-hfh3-phxx"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-47235"},{"type":"FIX","url":"https://github.com/simulationcraft/simc/commit/aff85992d284ca4621e784c6b065a271b22f629d"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/simulationcraft/simc","events":[{"introduced":"0"},{"fixed":"aff85992d284ca4621e784c6b065a271b22f629d"}],"database_specific":{"extracted_events":[{"source":"AFFECTED_FIELD","strategy":"StringRangeExpression","range":[{"introduced":"0"},{"fixed":"aff85992d284ca4621e784c6b065a271b22f629d"}]},{"range":[{"fixed":"aff85992d284ca4621e784c6b065a271b22f629d"}],"source":"REFERENCES_COMMIT"}]}}],"versions":["release-830-01","release-820-01","release-815-01","release-810-01","release-801-01","release-730-02","release-730-01","release-725-01","release-720-02","release-720-01","release-715-01","release-710-02","release-710-01","release-703-03","release-703-02","release-703-01","release-622-01","release-620-02","release-620-01","release-612-02","release-612-01","release-610-07","release-610-06","release-610-05","release-610-04","release-610-03","release-610-02","release-603-02","release-610-01","release-603-27","release-603-26","release-603-25","release-603-23","release-603-22","release-603-20","release-603-19","release-603-18","release-603-17","release-603-16","release-603-15","release-603-14","release-603-12","release-603-11","release-603-10","release-603-9","release-603-8","release-603-5","release-603-4","release-603-3","release-603-2","release-603-1","release-602-5","release-602-4","release-602-3","release-602-2","release-602-1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-47235.json","vanir_signatures":[{"signature_version":"v1","source":"https://github.com/simulationcraft/simc/commit/aff85992d284ca4621e784c6b065a271b22f629d","target":{"file":"engine/interfaces/bcp_api.cpp"},"deprecated":false,"digest":{"line_hashes":["50165168987909833277573264109970083268","246466234827796633194997659896704254100","128867486747144936318660676875339998737","17567412721507351424827556203242038983","102209087274380225588972607569292567996","278163512529255019355618771040737399381","179839979349840290589923584771358860868","246328530507915646070118524818432019619","20100785721954312197379087855097454497","144446903284290490325404010663949618634","111978675801302712794734963795598401395","292375337378944036841107661757996048706","60005891264392221538726228188327866108","71234289119158649515446644186387740602","324214064607053959409465826912018170270"],"threshold":0.9},"id":"CVE-2026-47235-47422432","signature_type":"Line"},{"deprecated":false,"digest":{"length":7612,"function_hash":"80803822392353250135110760720640935435"},"id":"CVE-2026-47235-82148b2e","signature_type":"Function","signature_version":"v1","source":"https://github.com/simulationcraft/simc/commit/aff85992d284ca4621e784c6b065a271b22f629d","target":{"file":"engine/interfaces/bcp_api.cpp","function":"download_item_data"}},{"id":"CVE-2026-47235-8ce3ac03","signature_type":"Function","signature_version":"v1","source":"https://github.com/simulationcraft/simc/commit/aff85992d284ca4621e784c6b065a271b22f629d","target":{"file":"engine/interfaces/bcp_api.cpp","function":"parse_items"},"deprecated":false,"digest":{"length":3959,"function_hash":"239900469364456987047579093451496690666"}}],"vanir_signatures_modified":"2026-11-06T01:05:58Z"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:A/AC:H/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:L/SI:L/SA:L"}]}