Mend.io Vulnerability Database
The largest open source vulnerability database
What is a Vulnerability ID?
New vulnerability? Tell us about it!
CVE-2026-54540
Published:July 27, 2026
Updated:August 04, 2026
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 Packages
https://github.com/pheditor/pheditor.git (GITHUB):
Affected version(s) >=2.0.0 <2.0.5
Fix Suggestion:
Update to version 2.0.5
pheditor/pheditor (PHP):
Affected version(s) >=dev-dependabot/npm_and_yarn/brace-expansion-1.1.12 <2.0.5
Fix Suggestion:
Update to version 2.0.5
pheditor/pheditor (PHP):
Affected version(s) >=dev-dependabot/npm_and_yarn/brace-expansion-1.1.12 <2.0.5
Fix Suggestion:
Update to version 2.0.5
Do you need more information?
Contact Us
CVSS v4
Base Score:
8.7
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
LOW
User Interaction
NONE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
HIGH
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
8.8
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Weakness Type (CWE)
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
EPSS
Base Score:
0.71