CVE-2026-31239: n/a
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.
AI Analysis
Technical Summary
The mamba language model framework through version 2.2.6 is vulnerable to insecure deserialization (CWE-502) due to the use of torch.load() without the weights_only=True parameter in the MambaLMHeadModel.from_pretrained() method. This allows an attacker to craft a malicious model repository on HuggingFace Hub that, when loaded by a victim, results in arbitrary code execution via pickle deserialization. The vulnerability has a CVSS 3.1 base score of 9.8, indicating critical severity with network attack vector, no required privileges or user interaction, and full confidentiality, integrity, and availability impact. No official patch or remediation guidance is currently available, and no known exploits are reported in the wild.
Potential Impact
Successful exploitation allows an attacker to execute arbitrary code on the victim system running the mamba framework by tricking the victim into loading a malicious pre-trained model from HuggingFace Hub. This compromises confidentiality, integrity, and availability of the affected system. The vulnerability is remotely exploitable without authentication or user interaction.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, users should avoid loading pre-trained models from untrusted or unknown HuggingFace repositories. Consider manual inspection or sandboxing when loading external models to reduce risk.
CVE-2026-31239: n/a
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.
CVSS v3.1
Score 9.8critical
Affected software
pkg:github/state-spaces/mambaRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The mamba language model framework through version 2.2.6 is vulnerable to insecure deserialization (CWE-502) due to the use of torch.load() without the weights_only=True parameter in the MambaLMHeadModel.from_pretrained() method. This allows an attacker to craft a malicious model repository on HuggingFace Hub that, when loaded by a victim, results in arbitrary code execution via pickle deserialization. The vulnerability has a CVSS 3.1 base score of 9.8, indicating critical severity with network attack vector, no required privileges or user interaction, and full confidentiality, integrity, and availability impact. No official patch or remediation guidance is currently available, and no known exploits are reported in the wild.
Potential Impact
Successful exploitation allows an attacker to execute arbitrary code on the victim system running the mamba framework by tricking the victim into loading a malicious pre-trained model from HuggingFace Hub. This compromises confidentiality, integrity, and availability of the affected system. The vulnerability is remotely exploitable without authentication or user interaction.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, users should avoid loading pre-trained models from untrusted or unknown HuggingFace repositories. Consider manual inspection or sandboxing when loading external models to reduce risk.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- mitre
- Date Reserved
- 2026-03-09T00:00:00.000Z
- Cvss Version
- null
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a036531cbff5d861008c1cb
Added to database: 05/12/2026, 17:36:49 UTC
Last enriched: 05/20/2026, 18:41:30 UTC
Last updated: 07/31/2026, 19:22:58 UTC
Views: 54
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.