5.3medium
FlashAttention Symlink Attack via tarfile.extractall in hopper/setup.py
- Severity
- 5.3medium CVSS:4.0 by VulnCheck
- Exploit likelihood
- 0.19% (higher than 9% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- VulnCheck
Description
FlashAttention through 2.8.3.post1, fixed in commit 0816ef1, contains a symlink attack vulnerability in the download_and_copy() function within hopper/setup.py that extracts NVIDIA toolchain archives without validating symlinks or filtering tar members. A local attacker can pre-plant a symlink in the predictable cache directory to redirect extracted binaries to an attacker-chosen location, enabling arbitrary file write with victim privileges during build time.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Dao-AILab flash-attention | up to 2.8.3.post1 Not affected: 0816ef12f424c6ec94b057a72c275b14f6e6edb2 | CVE List |
All scores
| VulnCheck | 5.3medium CVSS:4.0 | CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N |
| VulnCheck | 6.6medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.
What each source says
CVE List
FlashAttention through 2.8.3.post1, fixed in commit 0816ef1, contains a symlink attack vulnerability in the download_and_copy() function within hopper/setup.py that extracts NVIDIA toolchain archives without validating symlinks or filtering tar members. A local attacker can pre-plant a symlink in the predictable cache directory to redirect extracted binaries to an attacker-chosen location, enabling arbitrary file write with victim privileges during build time.
NVD (es)
FlashAttention hasta la versión 2.8.3.post1, corregido en el commit 0816ef1, contiene una vulnerabilidad de ataque de symlink en la función download_and_copy() dentro de hopper/setup.py que extrae archivos de la cadena de herramientas de NVIDIA sin validar symlinks ni filtrar miembros de tar. Un atacante local puede pre-plantar un symlink en el directorio de caché predecible para redirigir los binarios extraídos a una ubicación elegida por el atacante, lo que permite la escritura arbitraria de archivos con privilegios de la víctima durante el tiempo de compilación.
References
| https://github.com/Dao-AILab/flash-attention/issues/2637 | exploit, issue-tracking, technical-description | |
| https://github.com/Dao-AILab/flash-attention/pull/2702 | issue-tracking, patch | |
| https://github.com/Dao-AILab/flash-attention/commit/0816ef12f424c6ec94b057a72c275b14f6e6edb2 | patch | |
| https://www.vulncheck.com/advisories/flashattention-symlink-attack-via-tarfile-extractall-in-hopper-setup-py | third-party-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-62239 changed 2026-09-17 | CVE Terms of Use |
| NVD | CVE-2026-62239 changed 2026-10-24 | Public domain |