CVE-2026-62239
Deferred Deferred - Pending Action

FlashAttention Symlink Attack in NVIDIA Toolchain Extraction

Vulnerability report for CVE-2026-62239, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-07-13

Last updated on: 2026-07-14

Assigner: 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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-07-13
Last Modified
2026-07-14
Generated
2026-08-03
AI Q&A
2026-07-14
EPSS Evaluated
2026-08-01
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
nvidia flashattention to 2.8.3.post1 (inc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-59 The product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

CVE-2026-62239 is a symlink attack vulnerability found in FlashAttention versions through 2.8.3.post1. The issue resides in the download_and_copy() function within hopper/setup.py, which extracts NVIDIA toolchain archives without properly validating symlinks or filtering tar members.

A local attacker can exploit this by pre-planting a symlink in the predictable cache directory. During the build process, the extracted binaries can be redirected to an attacker-chosen location, leading to arbitrary file writes with the victim's privileges.

  • The vulnerability was fixed in commit 0816ef1.
Detection Guidance

Detecting this vulnerability involves checking for the presence of vulnerable versions of FlashAttention (through 2.8.3.post1) and inspecting the cache directory for suspicious symlinks or unexpected file modifications. Since the vulnerability is related to the extraction of NVIDIA toolchain archives during build time, focus on systems where FlashAttention is built or installed.

  • Check the installed version of FlashAttention using the following command: pip show flash-attention. If the version is 2.8.3.post1 or earlier, the system may be vulnerable.
  • Inspect the cache directory used by FlashAttention for symlinks. The cache directory is typically located at ~/.cache/flash_attention. Use the following command to list symlinks in the directory: ls -la ~/.cache/flash_attention | grep '^l'.
  • Verify the integrity of extracted files in the cache directory. Look for unexpected or malicious files that may have been written due to symlink redirection. Use: tar -tvf ~/.cache/flash_attention/<archive_name> to inspect the contents of tar archives without extracting them.
  • Monitor build processes for FlashAttention. If the build process is active, check for unusual file writes or symlink creation in real-time using tools like auditd or strace. Example command: strace -e trace=open,link,symlink -p <PID>.
Impact Analysis

This vulnerability can impact you in the following ways:

  • Arbitrary file write: An attacker with local access can write files to locations of their choice on your system, potentially leading to further exploitation.
  • Privilege escalation: If the victim has elevated privileges during the build process, the attacker could gain those privileges by writing malicious files to sensitive system locations.
  • System compromise: The attacker could replace legitimate binaries with malicious ones, leading to unauthorized access, data theft, or system damage.

The impact is particularly severe if the build process is run with administrative or high-level privileges.

Compliance Impact

This vulnerability can affect compliance with common standards and regulations in the following ways:

  • GDPR: If the arbitrary file write leads to unauthorized access or exfiltration of personal data, it could result in a data breach. GDPR requires organizations to protect personal data and report breaches within 72 hours, which may be triggered if such an event occurs.
  • HIPAA: For organizations handling protected health information (PHI), this vulnerability could lead to unauthorized access or modification of PHI. HIPAA mandates safeguards to protect PHI, and a breach could result in non-compliance and penalties.
  • General security standards: Standards like ISO 27001 or NIST require organizations to implement controls to prevent unauthorized access or modification of data. This vulnerability could indicate a failure to meet such controls, leading to non-compliance.

Organizations should assess the risk posed by this vulnerability and take corrective actions to maintain compliance with relevant regulations.

Mitigation Strategies

To mitigate this vulnerability, follow these immediate steps to reduce the risk of exploitation.

  • Upgrade FlashAttention to the latest version or apply the fix from commit 0816ef1. Use the following command to upgrade: pip install --upgrade flash-attention.
  • If upgrading is not immediately possible, manually verify and clean the cache directory (~/.cache/flash_attention). Remove any suspicious symlinks or unexpected files before rebuilding or reinstalling FlashAttention.
  • Restrict write permissions to the cache directory to prevent unauthorized symlink creation. Use: chmod 700 ~/.cache/flash_attention.
  • Run build processes in a controlled environment, such as a container or a dedicated build user with limited privileges, to minimize the impact of potential exploitation.
  • Monitor systems for unusual file modifications or symlink creation in the cache directory during build processes.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-62239. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart