Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2026-23745 — Proof-of-concept exploit for CVE-2026-23745, a path traversal vulnerability in node-tar allowing arbitrary file overwrite via malicious tar archives. | Kitploit
Tools/GitHubGitHub/jvr2022/cve-2026-23745
Vulnerability AnalysisExploitationWeb Security
GitHubjvr2022/cve-2026-23745

CVE-2026-23745

Proof-of-concept exploit for CVE-2026-23745, a path traversal vulnerability in node-tar allowing arbitrary file overwrite via malicious tar archives.

View Repository
2237 months agoReviewed by Kitploit

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2026-23745: node-tar Arbitrary File Overwrite

Research: Joshua van Rijswijk

Description

PoC for CVE-2026-23745, a high-severity path traversal vulnerability in node-tar ( <7.5.2).

The library fails to sanitize absolute paths in the linkpath field for Hardlinks and Symlinks. This allows malicious tar archives to bypass the extraction root and overwrite arbitrary files on the host system, even when preservePaths: false is set.

The Vulnerability

Located in src/unpack.ts. The library uses path.resolve() on unsanitized user input:

root@kitploit:~
// The bug: path.resolve ignores 'cwd' if the second argument is absolute const target = path.resolve(this.cwd, String(entry.linkpath))

If an attacker provides an absolute path (e.g., /etc/passwd) in the tar header, node-tar resolves it to the system root instead of the extraction directory.

PoC Usage

The included poc.js generates a malicious archive and attempts to overwrite a local secret.txt file.

  1. Install vulnerable version: npm install [email protected]

  2. Run exploit generator: node poc.js

Output:

root@kitploit:~
[+] VULN CONFIRMED: Hardlink overwrite successful
    Target file content changed to: OVERWRITTEN

Fix

Patched in v7.5.3. The update adds stripAbsolutePath() to sanitize link targets before resolution.

References:

  • NVD - CVE-2026-23745
  • GitHub Advisory
Download Tool