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.
Published: 2026-07-13
Score: 5.3 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability arises from the download_and_copy() function in hopper/setup.py, which uses tarfile.extractall() to extract NVIDIA toolchain archives without validating symlinks or filtering tar members. A local attacker can pre‑plant a symlink in the predictable cache directory that is used during the build. When the extraction runs, the symlink causes a binary to be written to an attacker‑chosen location, giving the attacker arbitrary file write with the same process. This flaw could allow tampering with installed components or altering the runtime environment of the tool.

Affected Systems

FlashAttention from Dao‑AILab, versions up to and including 2.8.3.post1. The flaw affects the build process that downloads and copies NVIDIA toolchain archives and is relevant to any environment where the affected code is executed locally during a build or install.

Risk and Exploitability

The CVSS base score of 5.3 indicates moderate severity. The EPSS score of < 1% and the vulnerability is not listed in the CISA KEV catalog. Attack requires local file‑system access to the build sandbox and the ability to modify the cache directory. An attacker who can execute code in that directory can create a symlink to an arbitrary path and force the tarfile extraction to write files, resulting in arbitrary file write with the privilege level of the build process. The risk is confined to trusted users or compromised build machines.

Generated by OpenCVE AI on July 31, 2026 at 11:19 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update FlashAttention to a version that includes the fix (commit 0816ef12f424c6ec94b057a72c275b14f6e6edb2 or later).
  • If upgrading is not immediately possible, avoid running builds from untrusted source code and delete the cached archive directory before executing the build.
  • Ensure the environment where FlashAttention is built is isolated, limiting write permissions to required build directories, and consider running the build inside a container or CI job with a read‑only filesystem for the rest of the host.

Generated by OpenCVE AI on July 31, 2026 at 11:19 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 14 Jul 2026 13:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Tue, 14 Jul 2026 00:00:00 +0000

Type Values Removed Values Added
First Time appeared Dao-ailab
Dao-ailab flash-attention
Vendors & Products Dao-ailab
Dao-ailab flash-attention

Mon, 13 Jul 2026 21:30:00 +0000

Type Values Removed Values Added
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.
Title FlashAttention Symlink Attack via tarfile.extractall in hopper/setup.py
Weaknesses CWE-59
References
Metrics cvssV3_1

{'score': 6.6, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N'}

cvssV4_0

{'score': 5.3, 'vector': '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'}


Subscriptions

Dao-ailab Flash-attention
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-07-14T12:53:45.093Z

Reserved: 2026-07-13T16:41:09.007Z

Link: CVE-2026-62239

cve-icon Vulnrichment

Updated: 2026-07-14T12:53:36.510Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-31T11:30:05Z

Weaknesses
  • CWE-59

    Improper Link Resolution Before File Access ('Link Following')