CVE-2026-31253 flash-attention contains an insecure deserialization vulnerability in its checkpoint loading mechanism
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
Description
The flash-attention training framework thru commit e724e2588cbe754beb97cf7c011b5e7e34119e62 (2025-13-04) contains an insecure deserialization vulnerability (CWE-502) in its checkpoint loading mechanism. The load_checkpoint() function in checkpoint.py and the checkpoint loading code in eval.py use torch.load() 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 providing a maliciously crafted checkpoint file. When a victim loads this checkpoint during model warmstarting or evaluation, arbitrary code is executed on the victim's system.
Upgrade path
1 package: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| pypi flash-attn(PyPI) | <= 2.8.3; = 0.2.0; = 0.2.1; = 0.2.2 +72 more | after 2.8.3 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi flash-attn(PyPI) | <= 2.8.3 | No fix listed |
| pypi flash-attn(PyPI) | = 0.2.0 | No fix listed |
| pypi flash-attn(PyPI) | = 0.2.1 | No fix listed |
| pypi flash-attn(PyPI) | = 0.2.2 | No fix listed |
| pypi flash-attn(PyPI) | = 0.2.3 | No fix listed |
| pypi flash-attn(PyPI) | = 0.2.4 | No fix listed |
| pypi flash-attn(PyPI) | = 0.2.5 | No fix listed |
| pypi flash-attn(PyPI) | = 0.2.6.post1 | No fix listed |
| pypi flash-attn(PyPI) | = 0.2.7 | No fix listed |
| pypi flash-attn(PyPI) | = 0.2.8 | No fix listed |
| pypi flash-attn(PyPI) | = 1.0.0 | No fix listed |
| pypi flash-attn(PyPI) | = 1.0.1 | No fix listed |
| pypi flash-attn(PyPI) | = 1.0.2 | No fix listed |
| pypi flash-attn(PyPI) | = 1.0.3 | No fix listed |
| pypi flash-attn(PyPI) | = 1.0.3.post0 | No fix listed |
| pypi flash-attn(PyPI) | = 1.0.4 | No fix listed |
| pypi flash-attn(PyPI) | = 1.0.5 | No fix listed |
| pypi flash-attn(PyPI) | = 1.0.6 | No fix listed |
| pypi flash-attn(PyPI) | = 1.0.7 | No fix listed |
| pypi flash-attn(PyPI) | = 1.0.8 | No fix listed |
| pypi flash-attn(PyPI) | = 1.0.9 | No fix listed |
| pypi flash-attn(PyPI) | = 2.0.0.post1 | No fix listed |
| pypi flash-attn(PyPI) | = 2.0.1 | No fix listed |
| pypi flash-attn(PyPI) | = 2.0.2 | No fix listed |
| pypi flash-attn(PyPI) | = 2.0.3 | No fix listed |
Show 51 more
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi flash-attn(PyPI) | = 2.0.4 | No fix listed |
| pypi flash-attn(PyPI) | = 2.0.5 | No fix listed |
| pypi flash-attn(PyPI) | = 2.0.6 | No fix listed |
| pypi flash-attn(PyPI) | = 2.0.6.post2 | No fix listed |
| pypi flash-attn(PyPI) | = 2.0.7 | No fix listed |
| pypi flash-attn(PyPI) | = 2.0.8 | No fix listed |
| pypi flash-attn(PyPI) | = 2.0.9 | No fix listed |
| pypi flash-attn(PyPI) | = 2.1.0 | No fix listed |
| pypi flash-attn(PyPI) | = 2.1.1 | No fix listed |
| pypi flash-attn(PyPI) | = 2.1.2.post3 | No fix listed |
| pypi flash-attn(PyPI) | = 2.2.0 | No fix listed |
| pypi flash-attn(PyPI) | = 2.2.1 | No fix listed |
| pypi flash-attn(PyPI) | = 2.2.2 | No fix listed |
| pypi flash-attn(PyPI) | = 2.2.3.post2 | No fix listed |
| pypi flash-attn(PyPI) | = 2.2.4 | No fix listed |
| pypi flash-attn(PyPI) | = 2.2.4.post1 | No fix listed |
| pypi flash-attn(PyPI) | = 2.2.5 | No fix listed |
| pypi flash-attn(PyPI) | = 2.3.0 | No fix listed |
| pypi flash-attn(PyPI) | = 2.3.1.post1 | No fix listed |
| pypi flash-attn(PyPI) | = 2.3.2 | No fix listed |
| pypi flash-attn(PyPI) | = 2.3.3 | No fix listed |
| pypi flash-attn(PyPI) | = 2.3.4 | No fix listed |
| pypi flash-attn(PyPI) | = 2.3.5 | No fix listed |
| pypi flash-attn(PyPI) | = 2.3.6 | No fix listed |
| pypi flash-attn(PyPI) | = 2.4.0.post1 | No fix listed |
| pypi flash-attn(PyPI) | = 2.4.1 | No fix listed |
| pypi flash-attn(PyPI) | = 2.4.2 | No fix listed |
| pypi flash-attn(PyPI) | = 2.4.3.post1 | No fix listed |
| pypi flash-attn(PyPI) | = 2.5.0 | No fix listed |
| pypi flash-attn(PyPI) | = 2.5.1.post1 | No fix listed |
| pypi flash-attn(PyPI) | = 2.5.2 | No fix listed |
| pypi flash-attn(PyPI) | = 2.5.3 | No fix listed |
| pypi flash-attn(PyPI) | = 2.5.4 | No fix listed |
| pypi flash-attn(PyPI) | = 2.5.5 | No fix listed |
| pypi flash-attn(PyPI) | = 2.5.6 | No fix listed |
| pypi flash-attn(PyPI) | = 2.5.7 | No fix listed |
| pypi flash-attn(PyPI) | = 2.5.8 | No fix listed |
| pypi flash-attn(PyPI) | = 2.5.9.post1 | No fix listed |
| pypi flash-attn(PyPI) | = 2.6.0.post1 | No fix listed |
| pypi flash-attn(PyPI) | = 2.6.1 | No fix listed |
| pypi flash-attn(PyPI) | = 2.6.2 | No fix listed |
| pypi flash-attn(PyPI) | = 2.6.3 | No fix listed |
| pypi flash-attn(PyPI) | = 2.7.0.post2 | No fix listed |
| pypi flash-attn(PyPI) | = 2.7.1.post4 | No fix listed |
| pypi flash-attn(PyPI) | = 2.7.2.post1 | No fix listed |
| pypi flash-attn(PyPI) | = 2.7.3 | No fix listed |
| pypi flash-attn(PyPI) | = 2.7.4.post1 | No fix listed |
| pypi flash-attn(PyPI) | = 2.8.0.post2 | No fix listed |
| pypi flash-attn(PyPI) | = 2.8.1 | No fix listed |
| pypi flash-attn(PyPI) | = 2.8.2 | No fix listed |
| pypi flash-attn(PyPI) | = 2.8.3 | No fix listed |
References
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com product
- www.notion.so
- pypi.org product
- github.com vendor-advisory