flash‑attention Training Script Allows Arbitrary Code Execution via eval Resolver
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| n/a | n/a | affected |
|
No data.
No data.
| Vendor | Product | Versions | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Dao-ailab | Flash-attention |
|
No CVSS v4.0
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.247% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| Title | flash‑attention Training Script Allows Arbitrary Code Execution via eval Resolver |
| Type | Values Removed | Values Added |
|---|---|---|
| Title | Code Injection via eval Resolver in flash‑attention Training Script | |
| Weaknesses | CWE-94 |
| Type | Values Removed | Values Added |
|---|---|---|
| Weaknesses | CWE-95 | |
| Metrics |
cvssV3_1
|
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Dao-ailab
Dao-ailab flash-attention |
|
| Vendors & Products |
Dao-ailab
Dao-ailab flash-attention |
| Type | Values Removed | Values Added |
|---|---|---|
| Title | Code Injection via eval Resolver in flash‑attention Training Script | |
| Weaknesses | CWE-94 |
| Type | Values Removed | Values Added |
|---|---|---|
| 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. | |
| References |
|