PT-2026-39638 · Unknown · Flash-Attention
CVE-2026-31253
·
Published
2026-05-11
·
Updated
2026-07-13
CVSS v3.1
7.3
High
| Vector | AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L |
Name of the Vulnerable Software and Affected Versions
flash-attention training framework versions prior to commit e724e2588cbe754beb97cf7c011b5e7e34119e62
Description
An insecure deserialization issue exists in the checkpoint loading mechanism. The
load checkpoint() function in checkpoint.py and the loading code in eval.py utilize torch.load() without the weights only=True parameter. This allows the deserialization of arbitrary Python objects via the pickle module, enabling arbitrary code execution on a system when a maliciously crafted checkpoint file is loaded during model warmstarting or evaluation.Recommendations
Update to a version following commit e724e2588cbe754beb97cf7c011b5e7e34119e62.
As a temporary workaround, restrict the loading of checkpoint files to trusted sources only.
Fix
Code Injection
Deserialization of Untrusted Data
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Flash-Attention