
Cloud Vulnerability DB
A community-led vulnerabilities database
node-tar aborts only when a GNU long-name/long-link entry follows a PAX header (the direction fixed in commit e14c074). The symmetric order — a GNU L/K entry then a PAX x header for the same entry — is not guarded. node-tar prefers the PAX value (agreeing with GNU tar), but Python tarfile (3.13/3.14) prefers the GNU-long value, producing a clean entry-name and symlink-linkpath differential. The maintainer's own e14c074 commit message asserts "a PAX header after a GNU long name is read, because all the programs agree on it" — empirically false on Python 3.14.
src/parser.ts:402 aborts only when this.#ex && type.startsWith('NextFile') (PAX-then-GNU). For the GNU-then-PAX order the x header is consumed with type === 'ExtendedHeader', so the guard is skipped. At parser.ts:329-333, ex.path ??= longPath / ex.linkpath ??= longLinkpath leave the already-set PAX value winning (??= does not overwrite).
Interpretation differential (CWE-436), single-oracle (vs Python only — node-tar agrees with GNU/bsdtar, the majority). A node-tar/GNU scanner sees a benign name/symlink target while a Python-tarfile extractor resolves a different name or a traversing symlink target, all clean. Lower severity because it requires a node-tar <-> Python pipeline specifically.
L('GNUPATH') then x(path=PAXPATH) then ustar file:
node-tar : first, PAXPATH GNU : first, PAXPATH Python : first, GNUPATH (all clean)
K('../../../../../../etc/passwd') then x(linkpath=benign) then symlink:
node-tar : mylink->benign GNU : mylink->benign Python : mylink->../../../../../../etc/passwd (all clean)
CONTROL reverse order (PAX then L): node-tar ABORTS (TAR_BAD_ARCHIVE) -- confirms e14c074 guards one direction onlyL/K GNU long entry (body = GNUPATH or linkpath ../../../../../../etc/passwd); then PAX x with path=PAXPATH (or linkpath=benign); then the ustar entry/symlink header; end. Unauthenticated — victim parses an untrusted tar.parser.ts:402 this.#ex && type.startsWith('NextFile').x header is consumed as ExtendedHeader (not NextFile*) -> guard skipped; control archive with reverse order DOES abort, confirming asymmetry.parser.ts:331-332 ex.path ??= longPath — PAX path already present -> PAX wins; header.ts:109 this.path = ex.path.PAXPATH / linkpath=benign.tarfile extractor writes a different name or a traversing symlink target; node-tar (and a GNU scanner) see benign values.On-disk reproduction vs GNU tar 1.35 and Python 3.14.7, independently rebuilt during final review. Clean divergence on both path and linkpath. The reverse-order control aborts (TAR_BAD_ARCHIVE), proving e14c074 guards only one direction. This directly falsifies the commit's documented rationale ("all the programs agree") on Python 3.14.
<= 8.0.4 (latest release = HEAD b62c8bb). Code present on tag v8.0.4; no post-tag fix.
x header follows a GNU L/K long name/link for the same entry — mirror the parser.ts:402 guard for both orderings, or make GNU-long values and PAX values conflict an error rather than silently preferring PAX.Reported by zx (Jace) — GitHub: @manus-use
Source: NVD
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."