---
id: "CVE-2026-47235"
kind: "vulnerability"
aliases: ["CVE-2026-47235"]
title: "SimulationCraft: oversized socket list overflows gem arrays, enabling code execution"
severity: "high"
cvss: 7.5
epss: null
exploited: false
status: "open"
category: "package"
products: []
ecosystems: []
tags: ["c++", "package", "simulationcraft", "world-of-warcraft"]
not_affected_if: ["fixed-nightly", "trusted-input-only"]
published_at: "2026-10-28T16:17:07+00:00"
first_seen_at: "2026-10-28T16:33:49+00:00"
updated_at: "2026-10-28T16:35:54+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-47235", "first_seen_at": "2026-10-28T16:33:49+00:00"}]
---

# SimulationCraft: oversized socket list overflows gem arrays, enabling code execution

SimulationCraft's Battle.net profile importer writes more socket entries than its four-element gem arrays can hold, corrupting heap memory. An attacker who supplies a crafted profile can crash the tool and, per the advisory, run code.

_Summary, check and fix written by a model from the sources; labelled as such._

## How to check

- Run `simc --version` or check the build identifier; builds after `release-820-01` and before the May 7, 2026 nightly are exposed.
- Check whether imports from `.simc` files or Battle.net API data are used on the machine.

## Fix

- Update SimulationCraft to nightly build `simc-1205-01-516b5d7` or later; no containing release tag is available.
- Until updated, import only profiles from trusted sources.

## Timeline

- 2026-10-28T16:33:49+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-47235

## From the sources

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.

---

_Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai_
