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) during the loading of pre-trained models from HuggingFace Hub. Specifically, the MambaLMHeadModel.from_pretrained() method uses torch.load() to load the pytorch_model.bin weight file without enabling the weights_only=True parameter, which restricts deserialization to tensor weights only. This omission allows deserialization of arbitrary Python objects via pickle, potentially leading to arbitrary code execution if a malicious model repository is loaded by a victim.
Potential Impact
An attacker can publish a malicious model repository on HuggingFace Hub. When a victim loads this model using the vulnerable mamba framework method, arbitrary code can execute in the context of the mamba process on the victim's system. This can lead to full compromise of the affected system depending on the privileges of the mamba process. No known exploits have been reported in the wild so far.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, users should avoid loading pre-trained models from untrusted or unknown sources on HuggingFace Hub. Monitoring official mamba framework channels for updates and applying any future patches promptly is recommended.
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.
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) during the loading of pre-trained models from HuggingFace Hub. Specifically, the MambaLMHeadModel.from_pretrained() method uses torch.load() to load the pytorch_model.bin weight file without enabling the weights_only=True parameter, which restricts deserialization to tensor weights only. This omission allows deserialization of arbitrary Python objects via pickle, potentially leading to arbitrary code execution if a malicious model repository is loaded by a victim.
Potential Impact
An attacker can publish a malicious model repository on HuggingFace Hub. When a victim loads this model using the vulnerable mamba framework method, arbitrary code can execute in the context of the mamba process on the victim's system. This can lead to full compromise of the affected system depending on the privileges of the mamba process. No known exploits have been reported in the wild so far.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, users should avoid loading pre-trained models from untrusted or unknown sources on HuggingFace Hub. Monitoring official mamba framework channels for updates and applying any future patches promptly is recommended.
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: 5/12/2026, 5:36:49 PM
Last enriched: 5/12/2026, 7:38:12 PM
Last updated: 5/13/2026, 3:59:18 AM
Views: 2
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.