CVE-2026-31253: n/a
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.
AI Analysis
Technical Summary
The flash-attention training framework contains an insecure deserialization vulnerability (CWE-502) due to unsafe use of torch.load() in checkpoint.py and eval.py. Specifically, the load_checkpoint() function loads checkpoint files without enabling the weights_only=True parameter, which would restrict deserialization to tensor weights only. This improper use allows arbitrary Python objects to be deserialized via the pickle module, enabling remote code execution if a malicious checkpoint file is loaded. The vulnerability is identified as CVE-2026-31253 with a CVSS 3.1 base score of 7.3 (AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L), indicating network attack vector, low attack complexity, no privileges or user interaction required, and impacts on confidentiality, integrity, and availability.
Potential Impact
An attacker who can supply a malicious checkpoint file to a victim using the vulnerable flash-attention training framework can achieve arbitrary code execution on the victim's system during checkpoint loading. This compromises the confidentiality, integrity, and availability of the affected system. There are no known exploits in the wild at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, users should avoid loading checkpoint files from untrusted or unauthenticated sources. Applying the weights_only=True parameter in torch.load() when loading checkpoints is a recommended security practice to prevent arbitrary code execution via deserialization.
CVE-2026-31253: n/a
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.
CVSS v3.1
Score 7.3high
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The flash-attention training framework contains an insecure deserialization vulnerability (CWE-502) due to unsafe use of torch.load() in checkpoint.py and eval.py. Specifically, the load_checkpoint() function loads checkpoint files without enabling the weights_only=True parameter, which would restrict deserialization to tensor weights only. This improper use allows arbitrary Python objects to be deserialized via the pickle module, enabling remote code execution if a malicious checkpoint file is loaded. The vulnerability is identified as CVE-2026-31253 with a CVSS 3.1 base score of 7.3 (AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L), indicating network attack vector, low attack complexity, no privileges or user interaction required, and impacts on confidentiality, integrity, and availability.
Potential Impact
An attacker who can supply a malicious checkpoint file to a victim using the vulnerable flash-attention training framework can achieve arbitrary code execution on the victim's system during checkpoint loading. This compromises the confidentiality, integrity, and availability of the affected system. There are no known exploits in the wild at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, users should avoid loading checkpoint files from untrusted or unauthenticated sources. Applying the weights_only=True parameter in torch.load() when loading checkpoints is a recommended security practice to prevent arbitrary code execution via deserialization.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- mitre
- Date Reserved
- 2026-03-09T00:00:00.000Z
- Cvss Version
- null
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a028781cbff5d86108b8f74
Added to database: 05/12/2026, 01:50:57 UTC
Last enriched: 05/19/2026, 10:28:30 UTC
Last updated: 07/07/2026, 10:33:22 UTC
Views: 126
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.