Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-31239: n/a

0
Unknown
VulnerabilityCVE-2026-31239cvecve-2026-31239
Published: Tue May 12 2026 (05/12/2026, 00:00:00 UTC)
Source: CVE Database V5

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

AILast updated: 05/12/2026, 19:38:12 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses