Live threats

All CVEs

CVE-2026-31239

Critical 9.8 No auth needed

Priority
74
CVSS 3.1
9.8
EPSS
—
Auth required
No
Published
May 12, 2026
Updated
Oct 19, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-502
SSVC (CISA)
Exploitation: none · Automatable: yes · Technical impact: total
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

The mamba language model framework thru 2.2.6 is vulnerable to insecure deserialization (CWE-502) when loading pre-trained models from HuggingFace Hub. The MambaLMHeadModel.from_pretrained() method uses torch.load() to load the pytorch_model.bin weight file without enabling the security-restrictive weights_only=True parameter. This allows the deserialization of arbitrary Python objects via the pickle module. An attacker can exploit this by publishing a malicious model repository on HuggingFace Hub. When a victim loads a model from this repository, arbitrary code is executed on the victim's system in the context of the mamba process.

Original NVD text.

What to do

  1. Check whether you run any of the affected products and follow the vendor advisory.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI mamba-ssm ≤ 2.2.6 no fixed version —
PyPI mamba-ssm ≤ 2.2.6 no fixed version —

Per OSV / GitHub Advisories (GHSA-pq2f-x424-6fjm, PYSEC-2026-406). Check the version in your lockfile before upgrading.

Official sources

References

Links published by the sources. Open them with care.