BuzzPHP
LightDarkSystem

Pheditor has an authenticated terminal command whitelist bypass

High severity. Published 16 July 2026. Update pheditor/pheditor to 2.0.5 or later: composer update pheditor/pheditor.

Which versions are affected?

PackageAffected versionsFixed in
pheditor/pheditor (opens in a new tab)<= 2.0.42.0.5

What should you do?

Update every affected package you use to its fixed version, then check that nothing else in your project matches an advisory. To see which version you run, and whether anything is still affected:

composer show pheditor/pheditor
composer audit

Advisory details

SeverityHighCVSS 8.8
Published
Updated
CVECVE-2026-54540 (opens in a new tab)
GHSAGHSA-9643-6xjp-vx57 (opens in a new tab)
WeaknessCWE-78

What the advisory says

Summary

Pheditor 2.0.4 has an authenticated terminal command whitelist bypass.

The terminal feature checks whether the submitted command starts with one of the configured TERMINALCOMMANDS values, then passes the full command string to shellexec(). 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.

Details

Tested repository:

https://github.com/pheditor/pheditor

Tested commit:

62b43df7cb8956a9b0deb9bec278ca8676c890c5

Affected version:

Pheditor 2.0.4

Relevant code in pheditor.php:

Source: GHSA-9643-6xjp-vx57 (opens in a new tab) in the GitHub Advisory Database (CC BY 4.0). Data from GitHub (opens in a new tab) as of .

Other recent advisories for this package

All Composer security advisories