{"vuln_id":"CVE-2026-31239","aliases":["GHSA-pq2f-x424-6fjm"],"description":"mamba language model framework vulnerable to insecure deserialization when loading pre-trained models from HuggingFace Hub","published_at":"2026-05-12T18:30:41Z","modified_at":"2026-11-16T15:22:56Z","first_seen_at":"2026-11-21T19:15:20.316007Z","severity":"critical","severity_source":"ghsa","cvss_score":9.8,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","cwe":["CWE-502"],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":0.00409,"epss_percentile":0.35989,"nvd_status":null,"enriched_at":null,"links":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-31239"},"matched_alias":null,"items":[{"id":2578,"source":{"id":"ghsa","name":"GitHub Security Advisories"},"title":"GHSA-pq2f-x424-6fjm / CVE-2026-31239: mamba language model framework vulnerable to insecure deserialization when loading pre-trained models from HuggingFace Hub","summary":"mamba language model framework vulnerable to insecure deserialization when loading pre-trained models from HuggingFace Hub\n\nThe 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.\n\nAffected packages: pip:mamba-ssm","url":"https://github.com/advisories/GHSA-pq2f-x424-6fjm","published_at":"2026-05-12T18:30:41Z","updated_at":"2026-11-16T15:22:56Z","fetched_at":"2026-11-21T19:15:18.416948Z","severity":"critical","cvss_score":9.8,"epss":0.00409,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":"mamba-ssm","vuln_id":"CVE-2026-31239","vuln_ids":["CVE-2026-31239","GHSA-PQ2F-X424-6FJM"],"tags":["ghsa","pip","CWE-502"],"cluster_id":2604,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/2578","html":"https://vulnwatch.ve1ve2.com/item/2578"}}]}