CVE Professor
/
All CVEs
CVE-2026-140247

CVE-2026-140247 — Tar — CWE-22 · CWE-59

HIGH CVSS 7.2 ⚡ EPSS 0.9% GitHub

## Summary With default options, `tar.x()` / `Unpack` / `UnpackSync` can be made to create `SymbolicLink` entries whose targets resolve outside the extraction directory, although the README states that "`Link` and `SymbolicLink` entries are not allowed to target locations outside of the extraction folder". The trick is a `..` segment that follows a symlink created earlier by the same archive: l1 SymbolicLink -> . esc SymbolicLink -> l1/../outside.txt (lexically "outside.txt", actually <cwd>/../outside.txt) escdir SymbolicLink -> l1/.. (lexically ".", actually the parent of cwd) or, to go further up (one level per in-archive directory): p/q/r/s SymbolicLink -> ../../.. (= cwd) x SymbolicLink -> p/q/r/s/../../../victim.txt (lexically "p/victim.txt", actually <cwd>/../../../victim.txt) None of these entries produces a warning, while the direct form (`esc -> ../outside.txt`) is still rejected. The step-2 symlink of the GHSA-83g3-92jg-28cx chain (`a/b/c/up -> ../..`, `a/b/escape -> c/up/../..`) also still points outside the extraction root on 7.5.23; that fix blocked only the step-3 hardlink. ## Affected versions Tested on [email protected] (latest; main HEAD eb92e17) with Node 18 on Linux, both async and sync extraction, default options. Versions containing the linkpath sanitization added for GHSA-8qq5 / GHSA-83g3 / GHSA-9ppj appear affected. ## Details - `src/unpack.ts` `[STRIPABSOLUTEPATH]` (~L283

## Summary With default options, `tar.x()` / `Unpack` / `UnpackSync` can be made to create `SymbolicLink` entries whose targets resolve outside the extraction directory, although the README states that "`Link` and `SymbolicLink` entries are not allowed to target locations outside of the extraction folder". The trick is a `..` segment that follows a symlink created earlier by the same archive: l1 SymbolicLink -> . esc SymbolicLink -> l1/../outside.txt (lexically "outside.txt", actually <cwd>/../outside.txt) escdir SymbolicLink -> l1/.. (lexically ".", actually the parent of cwd) or, to go further up (one level per in-archive directory): p/q/r/s SymbolicLink -> ../../.. (= cwd) x SymbolicLink -> p/q/r/s/../../../victim.txt (lexically "p/victim.txt", actually <cwd>/../../../victim.txt) None of these entries produces a warning, while the direct form (`esc -> ../outside.txt`) is still rejected. The step-2 symlink of the GHSA-83g3-92jg-28cx chain (`a/b/c/up -> ../..`, `a/b/escape -> c/up/../..`) also still points outside the extraction root on 7.5.23; that fix blocked only the step-3 hardlink. ## Affected versions Tested on [email protected] (latest; main HEAD eb92e17) with Node 18 on Linux, both async and sync extraction, default options. Versions containing the linkpath sanitization added for GHSA-8qq5 / GHSA-83g3 / GHSA-9ppj appear affected. ## Details - `src/unpack.ts` `[STRIPABSOLUTEPATH]` (~L283

CVSS v4.0 Vector Metrics
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:H/VA:L/SC:N/SI:N/SA:N
Attack Vector Network AV:N
Attack Complexity Low AC:L
Attack Reqs. None AT:N
Privileges Req. None PR:N
User Interaction Passive UI:P
Vuln. Conf. Low VC:L
Vuln. Integrity High VI:H
Vuln. Avail. Low VA:L
Subseq. Conf. None SC:N
Subseq. Integ. None SI:N
Subseq. Avail. None SA:N
EPSS — Exploit Prediction Scoring System
0.9%
30-day probability
In the 62. percentile of all CVEs — higher exploitation probability than most vulnerabilities.
AI Security Analysis & Remediation

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
CVE-2026-140247
CVSS 7.2/10 · HIGH · 01.12.2026
CWE: CWE-22, CWE-59
Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:H/VA:L/SC:N/SI:N/SA:N
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

🎯 WHAT IS THIS VULNERABILITY?
Path Traversal / LFI
Summary: ## Summary
With default options, tar.x() / Unpack / UnpackSync can be made to create SymbolicLink entries whose targets resolve outside the extraction directory, although the README states that "Link and SymbolicLink entries are not allowed to target locations outside of the extraction folder". The trick is a .. segment that follows a symlink created earlier by the same archive:

…
Affected: tar

⚡ ATTACK VECTOR
Network / Remote (AV:N) · no authentication required (PR:N) · user interaction required (UI:R) · low attack complexity (AC:L).

🌍 REAL WORLD IMPACT
Partial confidentiality disclosure (C:L); data can be modified or deleted; reduced availability or partial DoS (A:L).

🛡️ REMEDIATION
→ Apply vendor security update for tar.
→ Use realpath() canonicalization, implement allowlists.
→ Pre-patch: put service behind VPN or apply IP allowlist.
→ Add WAF rule, create IDS alert for anomalous traffic.

⚠️ URGENCY
⚠️ This week (7 days) — High risk, anonymous remote.

────────────────────────────────────────
[Automated Technical Vulnerability & CVSS Vector Analysis]

Target Reconnaissance Queries (FOFA & Shodan)
CVSS Score
7.2 / 10 · CVSS HIGH
Weakness Types (CWE)
CWE-22 CWE-59
Affected Products (1)
tar
References & Advisories (4)
Related CVEs
9.8
CVE-2026-145055
PraisonAI pip praisonai before 4.8.0, praisonaiagents and npm praisonai before 1.8.0, and praisonai-bot, prais
9.0
CVE-2026-126111
Missing secure processing in the XSLT transformer of the Velocity $xslttool view tool in dotCMS allows a back-
8.8
CVE-2026-77471
shell-chain is a PQVM-native, post-quantum blockchain. Prior to version 0.27.1, the finality vote aggregation
8.7
CVE-2026-137408
In Eclipse Yasson versions 1.0 through 1.0.11, 2.0 through 2.0.4, and 3.0 through 3.0.6, the deserializers for
9.9
CVE-2026-77526
FacturaScripts is an open source accounting and invoicing software. From version 2025 to before version 2026.3
9.4
CVE-2026-129109
Calico installations managed by the Tigera Operator install a FlexVolume driver (nodeagent~uds/uds) on every L
9.4
CVE-2026-64883
Path traversal in the WebDAV interface (DotWebdavHelper and the WebDAV temporary-file COPY and MOVE handling)