Local Privilege Escalation in Facebook Below (CVE-2025-27591)
A local privilege escalation vulnerability in the 'below' system monitoring tool allows attackers to gain root access via a symlink attack targeting log files.
CVE search metadata
CVE search record: CVE-2025-27591. Severity: medium. CVSS: 6.8. EPSS: 0.36%. KEV: no. Product: Below (< 0.9.0). Brief: Local Privilege Escalation in Facebook Below (CVE-2025-27591). Brief link: https://feed.craftedsignal.io/briefs/2026-09-cve-2025-27591-below/
CVE-2025-27591 is a local privilege escalation vulnerability affecting the Facebook 'below' system monitoring tool, specifically versions prior to 0.9.0. The vulnerability originates from the insecure management of log files when the application is executed with elevated privileges, specifically using the 'below record' command. An attacker with local access to the system can leverage a symlink attack to redirect the application's error logging to critical system files, such as /etc/passwd. By exploiting this behavior, an attacker can append a malicious user entry to the password file, effectively granting them unauthorized root-level access. The proof-of-concept exploit is publicly available, increasing the risk for environments where 'below' is installed and used with sudo permissions.
Attack Chain
- The attacker ensures the application's target log file, typically located at /var/log/below/error_root.log, does not already exist.
- The attacker creates a symbolic link at /var/log/below/error_root.log that points to the system's /etc/passwd file.
- The attacker executes the 'below' binary with elevated privileges using the 'sudo /usr/bin/below record' command.
- The application, running as root, attempts to write error logs to the path redirected by the attacker.
- The attacker provides crafted input designed to trigger an error, causing the application to write data into the target /etc/passwd file.
- The attacker verifies that a new, unauthorized user has been successfully appended to the /etc/passwd configuration.
- The attacker uses the newly created credentials to authenticate and obtain a root shell on the system.
Impact
Successful exploitation of CVE-2025-27591 results in full system compromise. An unprivileged attacker can escalate to root privileges, gaining complete control over the affected host. This vulnerability impacts systems where 'below' is installed and invoked via sudo, common in development, testing, or infrastructure monitoring environments.
Recommendation
Prioritize the immediate upgrade of the Facebook 'below' monitoring tool to version 0.9.0 or later to remediate the insecure log file handling. If patching cannot be performed immediately, monitor for unauthorized symbolic link creation within the /var/log/below/ directory.
Tags
- privilege-escalation
- linux
Immediate actions
Upgrade Facebook Below to version 0.9.0 or later
Threat Hunt
Search for existing symlinks within /var/log/below pointing to /etc/passwd or /etc/shadow
Data: Filesystem audit logs
Mitigations
Remove existing symlinks in /var/log/below/ and apply strict permissions to the log directory
CVE-2025-27591
Detection coverage 1
Detect CVE-2025-27591 - Creation of Symbolic Link to Sensitive Files in Below Log Path
highDetects the creation of symbolic links in the /var/log/below directory pointing to /etc/passwd, indicative of preparation for CVE-2025-27591 exploitation
Detection queries are available on the platform. Get full rules →