CVE-2026-54540
HIGHAuthenticated terminal command whitelist bypass in Pheditor
Title source: cnaDescription
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.
References (2)
Core 2
Core References
X_Refsource_Confirm x_refsource_confirm
https://github.com/pheditor/pheditor/security/advisories/GHSA-9643-6xjp-vx57
X_Refsource_Misc x_refsource_misc
https://github.com/pheditor/pheditor/releases/tag/2.0.5
Scores
CVSS v3
8.8
EPSS
0.0071
EPSS Percentile
50.0%
Attack Vector
NETWORK
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CISA SSVC
Vulnrichment
Exploitation
poc
Automatable
no
Technical Impact
total
Details
CWE
CWE-78
Status
published
Products (1)
pheditor/pheditor
< 2.0.5
Published
Jul 27, 2026
Tracked Since
Jul 28, 2026