{"id":"CVE-2026-62239","state":"PUBLISHED","title":"FlashAttention Symlink Attack via tarfile.extractall in hopper/setup.py","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.","publishedAt":"2026-07-13T21:03:32.262Z","updatedAt":"2026-09-17T17:54:31.095Z","severity":{"score":5.3,"label":"Medium","version":"4.0","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","source":"VulnCheck"},"assigner":"VulnCheck","products":["Dao-AILab flash-attention"],"affected":[{"vendor":"Dao-AILab","product":"flash-attention","packageURL":"pkg:pypi/flash-attn","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThanOrEqual":"2.8.3.post1","versionType":"custom"},{"version":"0816ef12f424c6ec94b057a72c275b14f6e6edb2","status":"unaffected","versionType":"git"}],"repo":"https://github.com/Dao-AILab/flash-attention"}],"references":["https://github.com/Dao-AILab/flash-attention/issues/2637","https://github.com/Dao-AILab/flash-attention/pull/2702","https://github.com/Dao-AILab/flash-attention/commit/0816ef12f424c6ec94b057a72c275b14f6e6edb2","https://www.vulncheck.com/advisories/flashattention-symlink-attack-via-tarfile-extractall-in-hopper-setup-py"],"weaknesses":["CWE-59"],"ingestedAt":"2026-10-29T20:12:32.778Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/62xxx/CVE-2026-62239.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-62239","state":"PUBLISHED","datePublished":"2026-07-13T21:03:32.262Z","dateUpdated":"2026-09-17T17:54:31.095Z","assignerShortName":"VulnCheck","assignerOrgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateReserved":"2026-07-13T16:41:09.007Z"},"containers":{"cna":{"title":"FlashAttention Symlink Attack via tarfile.extractall in hopper/setup.py","descriptions":[{"lang":"en","value":"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":[{"vendor":"Dao-AILab","product":"flash-attention","packageURL":"pkg:pypi/flash-attn","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThanOrEqual":"2.8.3.post1","versionType":"custom"},{"version":"0816ef12f424c6ec94b057a72c275b14f6e6edb2","status":"unaffected","versionType":"git"}],"repo":"https://github.com/Dao-AILab/flash-attention"}],"references":[{"url":"https://github.com/Dao-AILab/flash-attention/issues/2637","name":"Researcher Disclosure","tags":["technical-description","exploit","issue-tracking"]},{"url":"https://github.com/Dao-AILab/flash-attention/pull/2702","name":"Pull Request","tags":["issue-tracking","patch"]},{"url":"https://github.com/Dao-AILab/flash-attention/commit/0816ef12f424c6ec94b057a72c275b14f6e6edb2","name":"Patch Commit","tags":["patch"]},{"url":"https://www.vulncheck.com/advisories/flashattention-symlink-attack-via-tarfile-extractall-in-hopper-setup-py","tags":["third-party-advisory"]}],"metrics":[{"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}],"cvssV4_0":{"attackVector":"LOCAL","attackComplexity":"LOW","attackRequirements":"PRESENT","privilegesRequired":"LOW","userInteraction":"PASSIVE","vulnConfidentialityImpact":"HIGH","subConfidentialityImpact":"NONE","vulnIntegrityImpact":"HIGH","subIntegrityImpact":"NONE","vulnAvailabilityImpact":"NONE","subAvailabilityImpact":"NONE","exploitMaturity":"NOT_DEFINED","Safety":"NOT_DEFINED","Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","valueDensity":"NOT_DEFINED","vulnerabilityResponseEffort":"NOT_DEFINED","providerUrgency":"NOT_DEFINED","version":"4.0","baseSeverity":"MEDIUM","baseScore":5.3,"vectorString":"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"}},{"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}],"cvssV3_1":{"attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"REQUIRED","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"NONE","version":"3.1","baseSeverity":"MEDIUM","baseScore":6.6,"vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-59","lang":"en","description":"Improper Link Resolution Before File Access ('Link Following')","type":"CWE"}]}],"providerMetadata":{"shortName":"VulnCheck","orgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateUpdated":"2026-09-17T17:54:31.095Z"},"datePublic":"2026-06-09T00:00:00.000Z","tags":["x_open-source"],"credits":[{"lang":"en","value":"YU SUN","type":"finder"}],"x_generator":{"engine":"vulncheck-endgame"}},"adp":[{"title":"CISA ADP Vulnrichment","references":[{"url":"https://github.com/Dao-AILab/flash-attention/issues/2637","tags":["exploit"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-07-14T12:53:41.369813Z","id":"CVE-2026-62239","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-07-14T12:53:45.093Z"}}]}}}