CVE-2026-31253: flash-attention insecure deserialization in checkpoint loading via torch.load
- Source
- NVD(opens in a new tab)
- Identifier
- CVE-2026-31253
- Published
- Record updated
- Affected
- flash_attn <= 2.8.3
- Fixed in
- No fixed version was stated when the source was last read.
- Known exploitation
- Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
- EPSS
- 0.2%
Summary
CVE-2026-31253 affects the flash-attention training framework through commit e724e2588cbe754beb97cf7c011b5e7e34119e62 (2025-13-04), which contains an insecure deserialization flaw (CWE-502) in its checkpoint loading. The load_checkpoint() function in checkpoint.py and the checkpoint loading code in eval.py call torch.load() without weights_only=True, so arbitrary Python objects can be deserialized via the pickle module. A victim who loads a maliciously crafted checkpoint during model warmstarting or evaluation has arbitrary code executed on their system.
Mitigation
The source does not state a fix yet. Check the original advisory for updates.
Affected packages in the Exposure Registry
Matched by package name and ecosystem. Each entry shows whether the package delegates to a language model and how many tracked packages depend on it.
- flash-attnPyPINo LLM dependency detected · 6 tracked dependents
Related items
- InfoCVE-2026-123357: GROBID command execution through crafted PDF filename in Linux conversionSimilar attack · NVD/CVE Database
- MediumShai-Hulud Descendant Surfaces in Malicious Ruby Gem That Steals Credentials and Poisons AI ToolsSimilar attack · Socket Blog
- MediumCPython flaw exposes AI inference servers to sandbox escape attacksSimilar attack · CSO Online
- HighCVE-2026-88981: Kubeflow Pipelines enables users to build and deploy portable, scalable machine learning workflows. Prior to 2.18.0…Similar attack · NVD/CVE Database
- MediumBinance heist is stark example of AI governance gaps and basic security failuresSimilar attack · CSO Online