CVE-2026-31254: n/a
The flash-attention project thru commit e724e2588cbe754beb97cf7c011b5e7e34119e62 (2025-13-04) contains a code injection vulnerability (CWE-94) in its training script. The script registers the Python eval() function as a Hydra configuration resolver under the name eval. This allows configuration files to execute arbitrary Python code via the ${eval:...} syntax. An attacker can exploit this by providing a malicious configuration file, leading to arbitrary code execution when the training script is run with that configuration.
AI Analysis
Technical Summary
The flash-attention project contains a code injection vulnerability (CWE-95) in its training script due to the registration of Python's eval() function as a Hydra configuration resolver named 'eval'. This allows configuration files to execute arbitrary Python code via the ${eval:...} syntax. An attacker can exploit this by providing a malicious configuration file, resulting in arbitrary code execution when the training script processes that configuration. The vulnerability has 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 exploitable with low attack complexity and no privileges or user interaction required. No patch or official remediation is currently documented.
Potential Impact
Successful exploitation allows an attacker to execute arbitrary Python code on the system running the flash-attention training script by supplying a malicious configuration file. This can lead to partial confidentiality, integrity, and availability impacts as indicated by the CVSS vector. 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, avoid running the training script with untrusted or unaudited configuration files that could contain malicious ${eval:...} expressions. Restrict access to configuration files and validate their contents before use.
CVE-2026-31254: n/a
Description
The flash-attention project thru commit e724e2588cbe754beb97cf7c011b5e7e34119e62 (2025-13-04) contains a code injection vulnerability (CWE-94) in its training script. The script registers the Python eval() function as a Hydra configuration resolver under the name eval. This allows configuration files to execute arbitrary Python code via the ${eval:...} syntax. An attacker can exploit this by providing a malicious configuration file, leading to arbitrary code execution when the training script is run with that configuration.
CVSS v3.1
Score 7.3high
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The flash-attention project contains a code injection vulnerability (CWE-95) in its training script due to the registration of Python's eval() function as a Hydra configuration resolver named 'eval'. This allows configuration files to execute arbitrary Python code via the ${eval:...} syntax. An attacker can exploit this by providing a malicious configuration file, resulting in arbitrary code execution when the training script processes that configuration. The vulnerability has 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 exploitable with low attack complexity and no privileges or user interaction required. No patch or official remediation is currently documented.
Potential Impact
Successful exploitation allows an attacker to execute arbitrary Python code on the system running the flash-attention training script by supplying a malicious configuration file. This can lead to partial confidentiality, integrity, and availability impacts as indicated by the CVSS vector. 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, avoid running the training script with untrusted or unaudited configuration files that could contain malicious ${eval:...} expressions. Restrict access to configuration files and validate their contents before use.
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: 6a028781cbff5d86108b8f78
Added to database: 05/12/2026, 01:50:57 UTC
Last enriched: 05/19/2026, 10:29:16 UTC
Last updated: 07/03/2026, 20:51:27 UTC
Views: 95
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.
External Links
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.