Skip to content
HighVulnerability

CVE-2026-31253: flash-attention insecure deserialization in checkpoint loading via torch.load

Identifier
CVE-2026-31253
Published
Record updated
View JSON
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.