CVE-2026-140236
### Summary The GHSA-vmf3 fix (7.5.16, commit 21a8220) stopped `Header.decode` from applying extended-header values to non-file blocks. `ReadEntry`, however, still copies the PAX `size` onto meta entries (GNU long-name/long-link and PAX headers), and the parser uses that value to decide how many bytes belong to the meta entry. node-tar can therefore frame an archive differently from other tar implementations. Three related places in the same code take sizes or precedence from inconsistent sources. ### Details | # | Issue | Location | Default options | |---|---|---|---| | VULN-001 | `ReadEntry` applies `ex`/`gex` `size` to meta entries, and the parser uses it to frame the meta body. This is what GHSA-vmf3 meant to prevent, through a different code path | `src/read-entry.ts:105-110` → `src/parse.ts:241,246` | Yes (`x`, `t`, `Parser`, `Unpack`, `UnpackSync`) | | VULN-004 | `maxMetaEntrySize` is checked against the PAX-overridden `entry.size`, but the meta buffer accumulates `header.size` bytes, so the limit can be exceeded | `src/parse.ts:241` (check) vs `:248` (accumulation) | Yes | | VULN-005 | `ReadEntry` applies the global header after the local one, so global values override local ones (the reverse of PAX semantics), and it applies a global `linkpath`, which `Header` excludes. Commit af04392 fixed this order in `Header` only | `src/read-entry.ts:105-110`, `:145` | Yes | | VULN-003 | When re-packing (`c`/`r`/`u` with `@archive`, or `Pack.add(ReadEntry)`), the written header size comes from `entry.size` while the body length comes from the block count. A mismatch puts extra entries into the output archive | `src/write-entry.ts:645, 667-668, 682, 713` | No (needs `@archive` / re-pack) | ### Proof of concept Each finding has a self-contained test in the attached bundle (`exploit_tests/test_vuln_00N_*.cjs`). Each test runs a normal archive (control) and a crafted one (attack) against the unmodified 7.5.22 build, and records both outputs in `exploit_tests/evidenc
Properties
- Severity
- high
- Summary
- node-tar: Archive framing differential from PAX size still being applied to GNU/PAX meta entries via ReadEntry and related size/precedence inconsistencies
- Nvd fetched at
- 2026-12-02T06:37:54.190518+00:00
- Cvss severity
- HIGH
- Cvss score
- 7.2
- Retrieved at
- 2026-12-02T06:39:20+00:00
- Ghsa published
- 2026-12-02T01:38:09Z
- Source url
- https://github.com/advisories/GHSA-qv2w-fc3h-pm27
- Ghsa updated
- 2026-12-02T01:38:10Z
- Ghsa id
- GHSA-qv2w-fc3h-pm27
- Last source
- GitHub Advisory Database
- Score
- 7.2
- Cvss version
- 4.0
- Cve id
- CVE-2026-140236
- Cvss 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
- First seen by Signal
- 2026-12-01T18:35:21+00:00
- Name
- CVE-2026-140236
- Is ghsa only
- false
- 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
- Published at
- 2026-12-01T18:17:27.190
Related Entities (3)
AFFECTS (1)
HAS_WEAKNESS (1)
VULNERABLE_TO (1)
Related research
Explore deeper with Ninja Signal's threat intelligence graph