
Auto exploit for CVE-2025-6018 & CVE-2025-6019 based on https://github.com/0rionCollector/Exploit-Chain-CVE-2025-6018-6019
This repository contains a full exploit chain ("Auto-Pwn") targeting two critical vulnerabilities primarily affecting openSUSE Leap 15.x / SUSE systems:
XDG_SEAT) via ~/.pam_environment to trick systemd-logind into granting extended privileges (allow_active status).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.
paramiko library:
pip install -r requirements.txt
sudo access to generate the XFS image (automated by the script).dd, mkfs.xfs (xfsprogs package).python3 CVE-2025-6018_CVE-2025-6019_autopwn.py -i "$IP" -u "$USER" -p "$PASSWORD"
xfs.image) containing a copy of bash with the SUID bit set.~/.pam_environment file to bypass polkit restrictions.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.