Weight2Shell: AI/LLM model weights — hardware-specific floating-point backdoor triggers divergent agent behavior (no CVE)
Severity: medium · Patch status: no-fix-needed · Since 2026-11-30 · CVE-2026-114938, CVE-2026-99312
CertiK disclosed Weight2Shell, a technique that exploits floating-point implementation differences (subnormal number handling, e.g. 2^-1302 yielding zero on Apple Silicon but 2^-129 on NVIDIA A100) to make two machines loading identical LLM weights behave differently. By training an environment gate whose contribution depends on the inference hardware, a supplier can hide a backdoor that stays dormant in the review environment and activates in deployment — e.g. the same prompt made a Qwen/Codex model politely greet on an A100 but trigger a tool call opening Calculator on a Mac. This creates a supply-chain risk for third-party weights: file hashes only prove the same weights were tested, not that behavior matches. No patch exists; mitigation is auditing models in the exact deployment environment.
What to do
- Run behavioral audits of third-party model weights on the exact hardware and inference stack used in production
- Test agents together with their serving adapter and tool permissions, not in isolation
- Check generated tool requests against the client's execution log
- Repeat these checks whenever the inference stack or hardware changes
- Restrict tool-call permissions for agents running unvetted weights
Sources
All live incidents on Threat Watch