Gnu Tar vulnerabilities
41 known vulnerabilities affecting gnu/tar.
Total CVEs
41
CISA KEV
0
Public exploits
2
Exploited in wild
0
Severity breakdown
CRITICAL2HIGH20MEDIUM16LOW3
Vulnerabilities
Page 2 of 3
CVE-2026-26960P3HIGH≥ 0, < 7.5.82026-02-18
CVE-2026-26960 [HIGH] CWE-22 Arbitrary File Read/Write via Hardlink Target Escape Through Symlink Chain in node-tar Extraction
Arbitrary File Read/Write via Hardlink Target Escape Through Symlink Chain in node-tar Extraction
### Summary
`tar.extract()` in Node `tar` allows an attacker-controlled archive to create a hardlink inside the extraction directory that points to a file outside the extraction root, using default options.
This enables **arbitrary file read and write** as the extracting u
ghsaosv
CVE-2026-33056P3MEDIUM≥ 0, < 0.4.452026-03-20
CVE-2026-33056 [MEDIUM] CWE-61 tar-rs `unpack_in` can chmod arbitrary directories by following symlinks
tar-rs `unpack_in` can chmod arbitrary directories by following symlinks
## Summary
When unpacking a tar archive, the `tar` crate's `unpack_dir` function uses `fs::metadata()` to check whether a path that already exists is a directory. Because `fs::metadata()` follows symbolic links, a crafted tarball containing a symlink entry followed by a directory entry with the same name causes the crat
ghsaosv
CVE-2026-23950P3HIGH≥ 0, < 7.5.42026-01-21
CVE-2026-23950 [HIGH] CWE-176 Race Condition in node-tar Path Reservations via Unicode Ligature Collisions on macOS APFS
Race Condition in node-tar Path Reservations via Unicode Ligature Collisions on macOS APFS
**TITLE**: Race Condition in node-tar Path Reservations via Unicode Sharp-S (ß) Collisions on macOS APFS
**AUTHOR**: Tomás Illuminati
### Details
A race condition vulnerability exists in `node-tar` (v7.5.3) this is to an incomplete handling of Unicode path collisions in the `path-res
ghsaosv
CVE-2026-23745P4HIGH≥ 0, < 7.5.32026-01-16
CVE-2026-23745 [HIGH] CWE-22 node-tar is Vulnerable to Arbitrary File Overwrite and Symlink Poisoning via Insufficient Path Sanitization
node-tar is Vulnerable to Arbitrary File Overwrite and Symlink Poisoning via Insufficient Path Sanitization
### Summary
The `node-tar` library (` {
console.log('[*] Verifying payload...')
// Test Hardlink Overwrite
try {
fs.writeFileSync(path.join(out, 'exploit_hard'), 'OVERWRITTEN')
if (fs.readFileSync(secret, 'utf8') === 'OVERWRITTEN') {
console.log('[+]
ghsaosv
CVE-2007-4131P4MEDIUMCVSS 6.8v1.13v1.13.5+14 more2007-08-25
CVE-2007-4131 [MEDIUM] CVE-2007-4131: Directory traversal vulnerability in the contains_dot_dot function in src/names.c in GNU tar allows
Directory traversal vulnerability in the contains_dot_dot function in src/names.c in GNU tar allows user-assisted remote attackers to overwrite arbitrary files via certain //.. (slash slash dot dot) sequences in directory symlinks in a TAR archive.
nvdosv
CVE-2024-28863P4MEDIUM≥ 0, < 6.2.12024-03-22
CVE-2024-28863 [MEDIUM] CWE-400 Denial of service while parsing a tar file due to lack of folders count validation
Denial of service while parsing a tar file due to lack of folders count validation
## Description:
During some analysis today on npm's `node-tar` package I came across the folder creation process, Basicly if you provide node-tar with a path like this `./a/b/c/foo.txt` it would create every folder and sub-folder here a, b and c until it reaches the last folder to create `foo.txt`, I
ghsaosv
CVE-2026-29786P4HIGH≥ 0, < 7.5.102026-03-05
CVE-2026-29786 [HIGH] CWE-22 tar has Hardlink Path Traversal via Drive-Relative Linkpath
tar has Hardlink Path Traversal via Drive-Relative Linkpath
### Summary
`tar` (npm) can be tricked into creating a hardlink that points outside the extraction directory by using a drive-relative link target such as `C:../target.txt`, which enables file overwrite outside `cwd` during normal `tar.x()` extraction.
### Details
The extraction logic in `Unpack[STRIPABSOLUTEPATH]` checks for `..` segments *before
ghsaosv
CVE-2026-59875P4MEDIUM≥ 0, < 7.5.172026-07-20
CVE-2026-59875 [MEDIUM] CWE-248 node-tar: Uncaught Exception DoS via NUL byte in PAX path/linkpath records
node-tar: Uncaught Exception DoS via NUL byte in PAX path/linkpath records
## Summary
`node-tar` strips trailing `NUL` bytes from long-name (`L`) and long-linkpath (`K`) GNU extended headers but does **not** apply the same sanitization to equivalent fields delivered via PAX (`x` typeflag) extended headers. A PAX record of the form `path=visible.txt\x00hidden.txt` is parsed verbatim into `
ghsa
CVE-2022-48303P4MEDIUMCVSS 5.5≤ 1.342023-01-30
CVE-2022-48303 [MEDIUM] CWE-125 CVE-2022-48303: GNU Tar through 1.34 has a one-byte out-of-bounds read that results in use of uninitialized memory f
GNU Tar through 1.34 has a one-byte out-of-bounds read that results in use of uninitialized memory for a conditional jump. Exploitation to change the flow of control has not been demonstrated. The issue occurs in from_header in list.c via a V7 archive in which mtime has approximately 11 whitespace characters.
nvdosv
CVE-2026-31802P4HIGH≥ 0, < 7.5.112026-03-10
CVE-2026-31802 [HIGH] CWE-22 node-tar Symlink Path Traversal via Drive-Relative Linkpath
node-tar Symlink Path Traversal via Drive-Relative Linkpath
### Summary
`tar` (npm) can be tricked into creating a symlink that points outside the extraction directory by using a drive-relative symlink target such as `C:../../../target.txt`, which enables file overwrite outside `cwd` during normal `tar.x()` extraction.
### Details
The extraction logic in `Unpack[STRIPABSOLUTEPATH]` validates `..` segments
ghsaosv
CVE-2002-1216P4MEDIUMCVSS 5.0≤ 1.13.25v1.13.192002-10-28
CVE-2002-1216 [MEDIUM] CVE-2002-1216: GNU tar 1.13.19 and other versions before 1.13.25 allows remote attackers to overwrite arbitrary fil
GNU tar 1.13.19 and other versions before 1.13.25 allows remote attackers to overwrite arbitrary files via a symlink attack, as the result of a modification that effectively disabled the security check.
nvdosv
CVE-2002-0399P4MEDIUMCVSS 5.0v1.13.252002-10-10
CVE-2002-0399 [MEDIUM] CVE-2002-0399: Directory traversal vulnerability in GNU tar 1.13.19 through 1.13.25, and possibly later versions, a
Directory traversal vulnerability in GNU tar 1.13.19 through 1.13.25, and possibly later versions, allows attackers to overwrite arbitrary files during archive extraction via a (1) "/.." or (2) "./.." string, which removes the leading slash but leaves the "..", a variant of CVE-2001-1267.
nvd
CVE-2026-53655P4MEDIUM≥ 0, < 7.5.162026-06-15
CVE-2026-53655 [MEDIUM] CWE-436 node-tar applies PAX size override to intermediary GNU long-name/long-link headers, causing tar parser interpretation differential (file smuggling)
node-tar applies PAX size override to intermediary GNU long-name/long-link headers, causing tar parser interpretation differential (file smuggling)
### Summary
`tar` (node-tar) applies a PAX extended header's `size=` record (and other PAX
overrides) to the **next header entry of any type**, including intermediary
met
ghsa
CVE-2006-0300P4MEDIUMCVSS 5.1v1.14v1.14.1+3 more2006-02-24
CVE-2006-0300 [MEDIUM] CVE-2006-0300: Buffer overflow in tar 1.14 through 1.15.90 allows user-assisted attackers to cause a denial of serv
Buffer overflow in tar 1.14 through 1.15.90 allows user-assisted attackers to cause a denial of service (application crash) and possibly execute code via unspecified vectors involving PAX extended headers.
nvdosv
CVE-2025-64118P4MEDIUM≥ 7.5.1, < 7.5.22025-10-30
CVE-2025-64118 [MEDIUM] CWE-362 node-tar has a race condition leading to uninitialized memory exposure
node-tar has a race condition leading to uninitialized memory exposure
### Summary
Using `.t` (aka `.list`) with `{ sync: true }` to read tar entry contents returns uninitialized memory contents if tar file was changed on disk to a smaller size while being read.
### Details
See:
* https://github.com/isaacs/node-tar/issues/445
* https://github.com/isaacs/node-tar/pull/446
* Regression happen
ghsaosv
CVE-2023-39804P4MEDIUMCVSS 6.2fixed in 1.352024-03-27
CVE-2023-39804 [MEDIUM] CVE-2023-39804: In GNU tar before 1.35, mishandled extension attributes in a PAX archive can lead to an application
In GNU tar before 1.35, mishandled extension attributes in a PAX archive can lead to an application crash in xheader.c.
nvdosv
CVE-2005-1918P4LOWCVSS 2.6v1.13.252005-12-31
CVE-2005-1918 [LOW] CVE-2005-1918: The original patch for a GNU tar directory traversal vulnerability (CVE-2002-0399) in Red Hat Enterp
The original patch for a GNU tar directory traversal vulnerability (CVE-2002-0399) in Red Hat Enterprise Linux 3 and 2.1 uses an "incorrect optimization" that allows user-assisted attackers to overwrite arbitrary files via a crafted tar file, probably involving "/../" sequences with a leading "/".
nvdosv
CVE-2025-45582P4MEDIUMCVSS 4.1fixed in 1.35≤ 1.352025-07-11
CVE-2025-45582 [MEDIUM] CWE-24 CVE-2025-45582: GNU Tar through 1.35 allows file overwrite via directory traversal in crafted TAR archives, with a c
GNU Tar through 1.35 allows file overwrite via directory traversal in crafted TAR archives, with a certain two-step process. First, the victim must extract an archive that contains a ../ symlink to a critical directory. Second, the victim must extract an archive that contains a critical file, specified via a relative pathname that begins with the sym
nvd
CVE-2018-20482P4MEDIUMCVSS 4.7≤ 1.302018-12-26
CVE-2018-20482 [MEDIUM] CWE-835 CVE-2018-20482: GNU Tar through 1.30, when --sparse is used, mishandles file shrinkage during read access, which all
GNU Tar through 1.30, when --sparse is used, mishandles file shrinkage during read access, which allows local users to cause a denial of service (infinite read loop in sparse_dump_region in sparse.c) by modifying a file that is supposed to be archived by a different user's process (e.g., a system backup running as root).
nvdosv
CVE-2001-1267P4LOWCVSS 2.1≤ 1.13.192001-07-12
CVE-2001-1267 [LOW] CVE-2001-1267: Directory traversal vulnerability in GNU tar 1.13.19 and earlier allows local users to overwrite arb
Directory traversal vulnerability in GNU tar 1.13.19 and earlier allows local users to overwrite arbitrary files during archive extraction via a tar file whose filenames contain a .. (dot dot).
nvd