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-27591 — a C exploit for CVE-2025-27591, which allow an attacker to escalate privilege to root. | Kitploit
Tools/GitHubGitHub/cythonic1/cve-2025-27591
Privilege EscalationVulnerability AnalysisExploitationPenetration TestingBinary Exploitation
GitHubcythonic1/cve-2025-27591

CVE-2025-27591

a C exploit for CVE-2025-27591, which allow an attacker to escalate privilege to root.

View Repository
311 year agoNot yet reviewed

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

description

Basically below tool allow for universal modification on its log file which lead to privilege escalation as root.

details.

The log file created by below is world-writable, allowing any user to modify or replace it. An attacker can exploit this by creating a symbolic link from the log file to /etc/passwd.

If the attacker can trigger an error in below that logs arbitrary input, and crafts that input in the format of a valid /etc/passwd entry, they can inject a new root user into the system.

In order for the exploit to work the attacker should be able to execute the below command as it should be run as root then the user must have sudo permission or a way to run it.

Compiling.

root@kitploit:~
git clone https://github.com/Cythonic1/CVE-2025-27591
cd CVE-2025-27591
gcc -static -W -Wall main.c ./libcrypt.a -o exploit

usage

root@kitploit:~
./exploit <username> <password>
Download Tool