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-6018_CVE-2025-6019_autopwn — Auto exploit for CVE-2025-6018 & CVE-2025-6019 based on https://github.com/0rionCollector/Exploit-Chain-CVE-2025-6018-6019 | Kitploit
Tools/GitHubGitHub/goultarde/cve-2025-6018_cve-2025-6019_autopwn
Privilege EscalationExploit FrameworksVulnerability AnalysisExploitationPenetration TestingLearning & Education
GitHubgoultarde/cve-2025-6018_cve-2025-6019_autopwn

CVE-2025-6018_CVE-2025-6019_autopwn

Share

Auto exploit for CVE-2025-6018 & CVE-2025-6019 based on https://github.com/0rionCollector/Exploit-Chain-CVE-2025-6018-6019

View Repository
41359 months agoNot yet reviewed

Chained Exploit CVE-2025-6018 & CVE-2025-6019 (Auto-Pwn)

This repository contains a full exploit chain ("Auto-Pwn") targeting two critical vulnerabilities primarily affecting openSUSE Leap 15.x / SUSE systems:

  1. CVE-2025-6018: PAM Environment Injection. Allows a user to modify sensitive variables (such as XDG_SEAT) via ~/.pam_environment to trick systemd-logind into granting extended privileges (allow_active status).
  2. CVE-2025-6019: Privilege Escalation via UDisks2. Exploits improper handling during filesystem resizing (Filesystem.Resize) to temporarily mount a malicious disk image containing a SUID binary.

The tool automates the entire process: SSH connection, malicious image preparation, PAM injection, reconnection to trigger the injection, and finally escalation to root.

Prerequisites

  • Python 3
  • The paramiko library:
    pip install -r requirements.txt
    
  • An attacker machine (Kali or other Linux) with sudo access to generate the XFS image (automated by the script).
  • System tools: dd, mkfs.xfs (xfsprogs package).

Usage

python3 CVE-2025-6018_CVE-2025-6019_autopwn.py -i "$IP" -u "$USER" -p "$PASSWORD"

Automated Script Workflow:

  1. Stage 1: Local creation of an XFS image (xfs.image) containing a copy of bash with the SUID bit set.
  2. Stage 2: Transfer of files to the target and injection of the ~/.pam_environment file to bypass polkit restrictions.
  3. Trigger: Automatic SSH disconnection and reconnection to load the new PAM environment.
  4. Stage 3: Execution of the UDisks2 exploit to mount the image and execute the SUID shell, granting a ROOT shell.

Disclaimer

This tool is intended for educational purposes and authorization testing only. Using this exploit on systems without explicit permission is illegal. The author declines any responsibility for misuse.

Download Tool

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.

    1.1k
  • 2

    ghostlock-app

    yukonga/ghostlock-app

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

    601
  • 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.

    403
  • 4

    ARTEX

    baarai/artex

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

    319
  • 5

    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.

    265
  • 6

    Aliens_eye

    arxhr007/aliens_eye

    AI powered OSINT engine to discover and map 7,700+ social media identities across the web

    263

Explore all tools

Browse our collection of tools

View all tools →