Pheditor
Authenticated terminal command whitelist bypass in Pheditor
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 terminal feature checks whether the submitted command starts with one of the configured TERMINAL_COMMANDS values, then passes the full command string to shell_exec(). Shell command substitution such as $() is not blocked, so an authenticated user with the terminal permission can bypass a restricted command allowlist and execute arbitrary shell commands as the web server user. This issue has been patched in version 2.0.5.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 2.0.5
Fixed in 2.0.5
Mitigation
Upgrade pheditor to 2.0.5 or later.
References
- Vendor advisory github.com/pheditor/pheditor/security/advisori…
- Release notes github.com/pheditor/pheditor/releases/tag/2.0.…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.