PT-2026-60694 · Git+2 · Pheditor+1
CVE-2026-54540
·
Published
2026-07-16
·
Updated
2026-07-27
CVSS v3.1
8.8
High
| Vector | AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Name of the Vulnerable Software and Affected Versions
Pheditor versions prior to 2.0.5
Description
An authenticated user with terminal permissions can bypass the command whitelist to execute arbitrary shell commands as the web server user. The terminal feature verifies if the submitted command starts with one of the values defined in
TERMINAL COMMANDS before passing the full string to the shell exec() function. Because the check is prefix-based and does not block shell command substitution such as $(), an attacker can append malicious commands that the shell will still execute. The vulnerable logic processes the command parameter from a POST request.Recommendations
Update to version 2.0.5.
As a temporary mitigation, restrict or disable the terminal feature for users until the update is applied.
Exploit
Fix
OS Command Injection
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Pheditor
Pheditor/Pheditor