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
Share

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

4
Analysis Generated
Jul 24, 2026 - 00:01 vuln.today
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.

AnalysisAI

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.

Technical ContextAI

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.

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.

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

Share

CVE-2026-31254 vulnerability details – vuln.today

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