Code Injection Vulnerability in Flash-Attention Project by Unknown Vendor
CVE-2026-31254

7.3HIGH

Key Information:

Vendor
CVE Published:
11 May 2026

What is CVE-2026-31254?

The Flash-Attention project is vulnerable due to a code injection flaw in its training script. This vulnerability arises from the Python eval() function being registered as a configuration resolver, enabling the execution of arbitrary Python code through specially crafted configuration files. Attackers can exploit this vulnerability by providing a malicious configuration file, which when processed by the training script, will execute the arbitrary code, potentially compromising the system's security.

References

CVSS V3.1

Score:
7.3
Severity:
HIGH
Confidentiality:
Low
Integrity:
Low
Availability:
Low
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
None
User Interaction:
None
Scope:
Unchanged

Timeline

  • Vulnerability published

  • Vulnerability Reserved

.