CVE-2026-54540

High

Description

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.

SeverityHigh
CVSS8.8
Exploit probability—
ProductPheditor/pheditor
PublishedJul 27, 2026
First seenJul 27, 2026

How to fix

Update
  • pheditor/pheditor2.0.5 or later

Affected products

ProductAffected versionsFixed in
pheditor/pheditorPackagistv < 2.0.52.0.5

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.