Mamba ssm: mamba language model framework vulnerable to insecure deserialization when loading pre-trained models from
Affects mamba-ssmSource GCVE Database
Not known to be exploited · CVSS 9.8 Critical.
Data as of 16 Nov 2026, 17:33 UTC
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 12 May 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 15 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| PyPImamba-ssm | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Users should avoid loading pre-trained models from untrusted or unknown HuggingFace repositories. Monitor the vendor's advisory channels for updates and patches that enable secure deserialization options such as weights_only=True in torch.load().
Description
The mamba language model framework version 2.2.6 and earlier is vulnerable to insecure deserialization when loading pre-trained models from the HuggingFace Hub. The vulnerability arises because the from_pretrained() method uses torch.load() without the security-restrictive weights_only=True parameter, allowing arbitrary Python object deserialization via pickle. An attacker can exploit this by publishing a malicious model repository, leading to arbitrary code execution on the victim's system within the mamba process context.
References
- nvd.nist.gov/vuln/detail/CVE-2026-31239 (opens in a new tab)
- github.com/pypa/advisory-database/tree/main/vulns/mamba-ssm/PYSEC-2026-406.yaml (opens in a new tab)
- github.com/state-spaces/mamba (opens in a new tab)
- pypi.org/project/mamba-ssm (opens in a new tab)
- notion.so/CVE-2026-31239-35d1e1393188810d9baedfbd8363f396 (opens in a new tab)