CVE Professor
/
All CVEs
CVE-2026-140237

CVE-2026-140237 — Tar — CWE-436

MEDIUM CVSS 6.9 ⚡ EPSS 0.3% GitHub

### Summary A crafted tar archive containing consecutive PAX headers can make node-tar interpret a block inside a PAX metadata body as a real filesystem entry. Under default options, both `tar.list()` and `tar.extract()` expose the hidden entry, and extraction can truncate an existing file inside the destination directory. The issue remains in `[email protected]` and current commit `2a22bfc5d3a432a606d9da0e2d87ba634aa3b1cb`. It is a residual path around the PAX intermediary-entry fix released in `7.5.16`. ### Details The archive uses this sequence: ```text block 0: local PAX header, physical body size 10 block 1: PAX body containing "10 size=0\n", padded to 512 bytes block 2: second local PAX header, physical body size 512 block 3: second PAX metadata body containing a valid header for hidden.txt blocks 4-5: end-of-archive blocks ``` `Header.decode()` now checks the raw type flag and correctly refuses to apply pending PAX fields to the second PAX header. Its decoded size is therefore the physical value `512`. However, [`ReadEntry` ](https://github.com/isaacs/node-tar/blob/2a22bfc5d3a432a606d9da0e2d87ba634aa3b1cb/src/read-entry.ts#L45-L50) size initializes its body counters from that correct header, then [`ReadEntry.#slurp()`](https://github.com/isaacs/node-tar/blob/2a22bfc5d3a432a606d9da0e2d87ba634aa3b1cb/src/read-entry.ts#L135-L149) copies the pending PAX object onto the entry without an entry-type guard. The second PAX entry consequently has inconsistent state: ```text en

### Summary A crafted tar archive containing consecutive PAX headers can make node-tar interpret a block inside a PAX metadata body as a real filesystem entry. Under default options, both `tar.list()` and `tar.extract()` expose the hidden entry, and extraction can truncate an existing file inside the destination directory. The issue remains in `[email protected]` and current commit `2a22bfc5d3a432a606d9da0e2d87ba634aa3b1cb`. It is a residual path around the PAX intermediary-entry fix released in `7.5.16`. ### Details The archive uses this sequence: ```text block 0: local PAX header, physical body size 10 block 1: PAX body containing "10 size=0\n", padded to 512 bytes block 2: second local PAX header, physical body size 512 block 3: second PAX metadata body containing a valid header for hidden.txt blocks 4-5: end-of-archive blocks ``` `Header.decode()` now checks the raw type flag and correctly refuses to apply pending PAX fields to the second PAX header. Its decoded size is therefore the physical value `512`. However, [`ReadEntry` ](https://github.com/isaacs/node-tar/blob/2a22bfc5d3a432a606d9da0e2d87ba634aa3b1cb/src/read-entry.ts#L45-L50) size initializes its body counters from that correct header, then [`ReadEntry.#slurp()`](https://github.com/isaacs/node-tar/blob/2a22bfc5d3a432a606d9da0e2d87ba634aa3b1cb/src/read-entry.ts#L135-L149) copies the pending PAX object onto the entry without an entry-type guard. The second PAX entry consequently has inconsistent state: ```text en

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

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
CVE-2026-140237
CVSS 6.9/10 · MEDIUM · 01.12.2026
CWE: CWE-436
Vector: CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

🎯 WHAT IS THIS VULNERABILITY?
Summary: ### Summary

A crafted tar archive containing consecutive PAX headers can make node-tar interpret a block inside a PAX metadata body as a real filesystem entry. Under default options, both tar.list() and tar.extract() expose the hidden entry, and extraction can truncate an existing file inside the destination directory. The issue remains in [email protected] and current commit `2a22bfc5d3a432a60…
Affected: tar

⚡ ATTACK VECTOR
Local/physical access (AV:L) · no authentication required (PR:N) · no user interaction (UI:N) · low attack complexity (AC:L).

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

🛡️ REMEDIATION
→ Apply vendor security update for tar.
→ Add WAF rule, create IDS alert for anomalous traffic.

⚠️ URGENCY
📋 Routine update cycle (30 days)

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

Target Reconnaissance Queries (FOFA & Shodan)
CVSS Score
6.9 / 10 · CVSS MEDIUM
Weakness Types (CWE)
CWE-436
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.6
CVE-2026-145025
Grav API plugin before 1.1.21 validates the client-supplied admin_base_url or Origin header with PHP parse_url
8.6
CVE-2026-144962
Nginx UI from 2.4.1 before 2.9.2 contains a directive denylist bypass in internal/config/validation.go that al
8.2
CVE-2026-145366
### Summary A URI SAN is a context-specific, primitive GeneralName with tag number 6 (identifier octet `0x86`