SecurityContext

CVE-2026-31239: Mamba - Remote Code Execution

  • Cve: CVE-2026-31239
  • Name: Mamba - Remote Code Execution
  • Description: 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.
  • Impact: Attackers can execute arbitrary code on the victim's system, leading to full system compromise.
  • Remediation: Update to a version that enables weights_only=True or later secure versions.
  • Vulnerability type: insecure_deserialization
  • Vulnerability impact: remote_code_execution
  • Requirement type: user_interaction
  • Requirements: Victim must load a malicious model from HuggingFace Hub
  • Labels source: projectdiscovery
  • Severity: critical
  • Cvss score: 9.8
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.00409
  • Epss percentile: 0.35725
  • Assignee: [email protected]
  • Published at: 2026-05-12T18:16:52Z
  • Age in days: 196
  • Modified at: 2026-10-19T22:10:00Z
  • References total: 2
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-31239
  • Nvd status: deferred
  • Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, products total, products, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-502Deserialization of Untrusted Data

References

UrlSourceTags
https://github.com/state-spaces/mambanvd
https://www.notion.so/CVE-2026-31239-35d1e1393188810d9baedfbd8363f396nvd

Projects

RepositoryLink kindsIndexedUrl
state-spaces/mambapackageyes/v1/repositories/state-spaces/mamba

Index

  • Repositories: 32
  • Repositories high signal: 17
  • Packages: 1

Exploitation

  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts