CVE-2026-62239

FlashAttention Symlink Attack via tarfile.extractall in hopper/setup.py

Published Jul 13, 2026 CVSS 4.0 · 5.3 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

Remediation

No solution or workaround provided in the CVE record.

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 available
History
Type Values Removed Values Added
Metrics ssvc

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

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
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'}

Weaknesses
  • CWE-59

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

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Sep 17, 2026, 5:54 PM
Reserved
Jul 13, 2026, 4:41 PM
Status
Deferred
Published
Jul 13, 2026, 10:16 PM
Modified
Oct 24, 2026, 10:10 PM