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-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

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

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share
View Repository
416 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:
    root@kitploit:~
    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

root@kitploit:~
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