


Perceptive Security
SOC/SIEM Consultancy

Pheditor is a single-file editor and file manager written in PHP. Prior to version 2.0.5, there is an authenticated terminal command whitelist bypass. The termi…
Published:
27 juli 2026 om 00:00:00
Alert date:
27 juli 2026 om 23:04:07
Source:
nvd.nist.gov
Web Technologies, Zero-Day Vulnerabilities
Pheditor, a single-file PHP editor and file manager, contains an authenticated terminal command whitelist bypass vulnerability prior to version 2.0.5. The terminal feature validates commands by checking if they start with values in the TERMINAL_COMMANDS allowlist, but passes the full command string to shell_exec() without sanitization. Shell command substitution syntax such as $() is not blocked, allowing authenticated users with terminal permissions to inject and execute arbitrary shell commands as the web server user. This effectively renders the command allowlist protection useless. The vulnerability requires authentication and the terminal permission to exploit. A patch has been released in version 2.0.5 addressing this bypass. Users are advised to upgrade immediately to mitigate the risk of arbitrary command execution.
Technical details
Mitigation steps:
Affected products:
Pheditor
Related links:
https://nvd.nist.gov/vuln/detail/CVE-2026-54540
https://github.com/pheditor/pheditor/releases/tag/2.0.5
https://github.com/pheditor/pheditor/security/advisories/GHSA-9643-6xjp-vx57
Related CVE's:
Related threat actors:
IOC's:
This article was created with the assistance of AI technology by Perceptive.
