BREACHSPIDER
CVE databaseVendorsIntelFeaturesDevelopersDocsPricingSign inStart free trial

CVE-2026-31254 in Project products

High 7.3

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

Affects 0 products from 4 vendors. Facts below cite their sources.

CVSS 3.17.3
EPSS0.4%
EPSS percentile25th
FixUnknown

Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component.

Affected products and versions

VendorProductAffected versions
Project — —
Python — —
Resolver — —
Script — —

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

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

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2026-31254
BreachSpider IDBS-2026-GLOBAL-080227-H
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
Published2026-05-11
Last modified2026-06-17
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-95: CWE-95

Related attack patterns (CAPEC)

CAPEC-35 Leverage Executable Code in Non-Executable Files via CWE-95

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

The flash-attention project contains a code injection vulnerability (CWE-94) in its training script, allowing attackers to execute arbitrary Python code via the ${eval:...} syntax.

The vulnerability arises from the registration of the Python eval() function as a Hydra configuration resolver under the name eval. This enables configuration files to execute arbitrary Python code, which can be exploited by an attacker to inject malicious code.

Questions

What is CVE-2026-31254?

The flash-attention project contains a code injection vulnerability (CWE-94) in its training script, allowing attackers to execute arbitrary Python code via the ${eval:...} syntax.

What is the CVSS score for CVE-2026-31254?

CVE-2026-31254 has CVSS 7.3 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L. EPSS: 0.4%.

Is CVE-2026-31254 actively exploited?

No confirmed active exploitation of CVE-2026-31254 as of 2026-09-25.

How do I remediate CVE-2026-31254?

Priority: IMMEDIATE.

What systems are affected by CVE-2026-31254?

CVE-2026-31254 affects Project; Python; Resolver; Script.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Project","product":"EDS-518A","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.