PT-2026-40126 · Mamba · Mamba

CVE-2026-31239

·

Published

2026-05-12

·

Updated

2026-06-29

CVSS v3.1

9.8

Critical

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions mamba versions prior to 2.2.7
Description Insecure deserialization occurs when loading pre-trained models from HuggingFace Hub. The MambaLMHeadModel.from pretrained() function uses torch.load() to load the pytorch model.bin weight file without enabling the weights only=True parameter. This allows the deserialization of arbitrary Python objects via the pickle module, which is a process of converting a byte stream back into an object. An attacker can publish a malicious model repository on HuggingFace Hub to execute arbitrary code on a victim's system within the context of the mamba process when the model is loaded.
Recommendations Update to version 2.2.7 or later.

Fix

Deserialization of Untrusted Data

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2026-31239
GHSA-PQ2F-X424-6FJM
PYSEC-2026-406

Affected Products

Mamba