
PoC for CVE-2025-27591 – Local privilege escalation in the below monitoring tool. By symlinking its log file to /etc/passwd, an attacker can inject a root account and gain full system compromise.
This repository contains a proof-of-concept exploit for CVE-2025-27591, a privilege escalation vulnerability in the below utility.
The issue arises because below mishandles log files under /var/log/below/, allowing attackers to replace logs with symlinks to sensitive files such as /etc/passwd.
By leveraging this, an unprivileged user can inject a new root user entry and escalate privileges.
The exploit is implemented as a simple Bash script (exploit_CVE-2025-27591.sh) which:
/etc/passwd./var/log/below/error_root.log to /etc/passwd.below in a loop until /etc/passwd becomes writable.root2, password: 1).su - root2.chmod +x exploit_CVE-2025-27591.sh
./exploit_CVE-2025-27591.sh
su - root2 # password: 1