CVE Professor
/
All CVEs
CVE-2026-140234

CVE-2026-140234 — Tar — CWE-158

HIGH CVSS 7.1 ⚡ EPSS 0.7% GitHub

### Summary Names are cut at the first NUL with `.replace(/\0.*/, '')`. Without the `s` flag, `.` doesn't match `\n`, `\r`, U+2028 or U+2029. If one of these follows the NUL, only part of the name is removed, and the NUL remains. The GHSA-gvwx-54wh-qm9j fix (7.5.17, commit 7a635c2) added this regex for PAX values on the assumption that PAX lines can't contain line terminators. The same regex is also used for ustar names and for GNU long-name/long-link data. ### Details | # | Location | Default options | |---|---|---| | VULN-006 | `src/header.ts:358` (ustar names); `src/parse.ts:390` (GNU `L`), `:397` (GNU `K`, same regex, not tested separately) | Yes (crash in async `x`); `strip` for the differential | | VULN-021 | `src/pax.ts:179` (the GHSA-gvwx fix site): CR, U+2028 and U+2029 still end the match | Yes (crash); `strip` for the differential | ### Proof of concept `exploit_tests/test_vuln_006_*` and `_021_`. Each runs a control and an attack against the unmodified 7.5.22 build, with output recorded in `exploit_tests/evidence/`. All were run on macOS. ### Impact In async extraction, a name that still contains a NUL reaches `fs` and throws, which crashes a process that doesn't catch it (the outcome GHSA-gvwx-54wh-qm9j addressed). With `strip`, the surviving characters make node-tar's view of the name differ from other tools'.

### Summary Names are cut at the first NUL with `.replace(/\0.*/, '')`. Without the `s` flag, `.` doesn't match `\n`, `\r`, U+2028 or U+2029. If one of these follows the NUL, only part of the name is removed, and the NUL remains. The GHSA-gvwx-54wh-qm9j fix (7.5.17, commit 7a635c2) added this regex for PAX values on the assumption that PAX lines can't contain line terminators. The same regex is also used for ustar names and for GNU long-name/long-link data. ### Details | # | Location | Default options | |---|---|---| | VULN-006 | `src/header.ts:358` (ustar names); `src/parse.ts:390` (GNU `L`), `:397` (GNU `K`, same regex, not tested separately) | Yes (crash in async `x`); `strip` for the differential | | VULN-021 | `src/pax.ts:179` (the GHSA-gvwx fix site): CR, U+2028 and U+2029 still end the match | Yes (crash); `strip` for the differential | ### Proof of concept `exploit_tests/test_vuln_006_*` and `_021_`. Each runs a control and an attack against the unmodified 7.5.22 build, with output recorded in `exploit_tests/evidence/`. All were run on macOS. ### Impact In async extraction, a name that still contains a NUL reaches `fs` and throws, which crashes a process that doesn't catch it (the outcome GHSA-gvwx-54wh-qm9j addressed). With `strip`, the surviving characters make node-tar's view of the name differ from other tools'.

CVSS v4.0 Vector Metrics
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:H/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. None VC:N
Vuln. Integrity Low VI:L
Vuln. Avail. High VA:H
Subseq. Conf. None SC:N
Subseq. Integ. None SI:N
Subseq. Avail. None SA:N
EPSS — Exploit Prediction Scoring System
0.7%
30-day probability
In the 55. percentile of all CVEs — higher exploitation probability than most vulnerabilities.
AI Security Analysis & Remediation

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
CVE-2026-140234
CVSS 7.1/10 · HIGH · 01.12.2026
CWE: CWE-158
Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

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

Names are cut at the first NUL with .replace(/\0.*/, ''). Without the s flag, . doesn't match \n, \r, U+2028 or U+2029. If one of these follows the NUL, only part of the name is removed, and the NUL remains.
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); limited integrity modification (I:L); service can be completely taken down.

🛡️ REMEDIATION
→ Apply vendor security update for tar.
→ 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.1 / 10 · CVSS HIGH
Weakness Types (CWE)
CWE-158
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
6.3
CVE-2026-143881
The MongoDB PHP Driver does not neutralize NUL characters in the user name and password values it places into
9.3
CVE-2026-144337
osTicket before 1.17.9 and 1.18.0 before 1.18.5 contains an unauthenticated stored cross-site scripting vulner
9.2
CVE-2026-144579
curl_cffi 0.15.0 through 0.17.0 contains a server-side request forgery protection bypass in allow_redirects='s