Skip to main content
CVE-2026-31239VulnerabilityPublished Updated

Mamba ssm: mamba language model framework vulnerable to insecure deserialization when loading pre-trained models from

Affects mamba-ssmSource GCVE Database

0
Compare
Authoritative record:CVE-2026-31239· Critical 9.8

Not known to be exploited · CVSS 9.8 Critical.

Data as of 16 Nov 2026, 17:33 UTC

CVSS 3.1 base score
9.8Critical
How severe the flaw is on the 0–10 CVSS scale.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 12 May 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
PyPImamba-ssmAffected
  • <=2.2.6
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

Community reviews

Loading reviews…