{"id":"CVE-2026-31239","published":"2026-05-12T00:00:00Z","modified":"2026-05-14T19:54:17Z","title":"The mamba language model framework thru 2.2.6 is vulnerable to insecure deserialization (CWE-502) when loading…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00409,"percentile":0.36107,"provenance":"source"},"cwes":[{"id":"CWE-502","name":"Deserialization of Untrusted Data"}],"references":[{"url":"https://github.com/state-spaces/mamba","tags":[]},{"url":"https://www.notion.so/CVE-2026-31239-35d1e1393188810d9baedfbd8363f396","tags":[]}],"priority":{"score":14.1,"factors":[{"name":"EPSS percentile","points":7.22},{"name":"CVSS severity","points":6.86}]},"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total","timestamp":"2026-05-14T16:52:22.756950Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"mamba-ssm","vulnerableRanges":["<=2.2.6"],"patched":[],"from":["GHSA-pq2f-x424-6fjm","PYSEC-2026-406"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-29562","exploited":false,"provenance":"source"}}