Vulnerability 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.
CVSS Score
HIGH
Related Weaknesses (CWE)
References
FAQ
What is CVE-2026-31254?
CVE-2026-31254 is a vulnerability with a CVSS score of 7.3 (HIGH). 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 e...
How severe is CVE-2026-31254?
CVE-2026-31254 has been rated HIGH with a CVSS base score of 7.3/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2026-31254?
Check the references section above for vendor advisories and patch information. Review vendor security bulletins for remediation guidance.