Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
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.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2025-4517-poc — CVE-2025-4517 (CVSS 9.4 – Critical) A vulnerability in Python's `tarfile` | Kitploit
Tools/GitHubGitHub/stealthbyte0/cve-2025-4517-poc
Vulnerability AnalysisExploitationCTFLearning & EducationRed TeamingBinary Exploitation
GitHubstealthbyte0/cve-2025-4517-poc

CVE-2025-4517-poc

CVE-2025-4517 (CVSS 9.4 – Critical) A vulnerability in Python's `tarfile`

View Repository
21379 months agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    977
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    564
  • 3

    looking-glass

    anonghosty/looking-glass

    CSIRT platform that ingests Shadowserver reports into MongoDB and replays them as interactive maps, analysis, findings, advisories and executive dashboards.

    352
  • 4

    redforge

    cybersecurity91/redforge

    Browser-side red team toolkit with 102 offline tools for recon, payload generation, credential attacks, crypto, encoding and engagement reporting.

    344
  • 5

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    322
  • 6

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    The system of action for AI-native cybersecurity—where intent becomes governed execution, evidence becomes operational memory, and every operation improves the next.

    308

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2025-4517 PoC – Python tarfile Arbitrary File Write via Path Traversal

CVE-2025-4517 (CVSS 9.4 – Critical)
A vulnerability in Python's tarfile module that allows arbitrary file writes outside the extraction directory when using TarFile.extractall() or TarFile.extract() with filter="data" or filter="tar".

Affected versions:

  • Python 3.12+ when explicitly using filter="data" or filter="tar"
  • Python 3.14+ (when relying on the new default filter="data")

Fixed in:

  • Python 3.12.11, 3.13.4, 3.11.13+ (patches released mid-2025)

This PoC creates a malicious .tar archive that attempts to overwrite /etc/sudoers (adding a passwordless sudo entry for user wacky) when extracted on a vulnerable system.

DISCLAIMER
This code is provided strictly for educational purposes, authorized security research, CTF challenges and red-team exercises.
Do NOT use this against any system without explicit written permission.
Misuse may violate computer fraud and abuse laws in your jurisdiction.

How It Works (High-Level)

  1. Creates deep nested directories with very long names + same-name symlinks (causing path confusion/loops).
  2. Builds a long symlink chain that escapes many directory levels upward using ../.
  3. Points an "escape" symlink → traversal → /etc.
  4. Uses a hard link (LNKTYPE) to alias a file inside the tar to the escaped path (/etc/sudoers).
  5. Writes payload content to the hard-linked name → overwrites the target file on extraction.

Requirements

  • Python 3.x (any modern version) to generate the exploit
  • Vulnerable extractor on target:
    • GNU tar ≤ 1.34
    • bsdtar/libarchive in compatibility mode
    • Python tarfile with vulnerable filter settings
    • Backup/restore scripts without path restrictions

Generate the Malicious Tar

# 1. Save the PoC as generate_exploit.py
# 2. Run:
python3 generate_exploit.py
Download Tool