BuzzPHP
LightDarkSystem

Pheditor: Incomplete command sanitization in terminal feature allows RCE via pipe operator, backtick substitution, and newline injection

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

Which versions are affected?

PackageAffected versionsFixed in
pheditor/pheditor (opens in a new tab)>= 2.0.1, < 2.0.62.0.6

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-55578 (opens in a new tab)
GHSAGHSA-wg4w-wr5q-6vjc (opens in a new tab)
WeaknessCWE-78

What the advisory says

Summary

The terminal feature in Pheditor uses an incomplete character blocklist to sanitize user-supplied commands before passing them to shellexec(). After the fix for GHSA-9643-6xjp-vx57 (which added $ to the blocklist), the characters | (single pipe), (backtick), and the newline byte (0x0A) remain unblocked. An authenticated user with the terminal permission (enabled by default) can leverage any of these to bypass the TERMINALCOMMANDS allowlist and execute arbitrary OS commands as the web server user.

Details

Tested repository: https://github.com/pheditor/pheditor

Tested commit: e538f05b6faec99e5b23726bc9c17d6b57774297 (current HEAD on main)

Affected version: Pheditor 2.0.1+

Source: GHSA-wg4w-wr5q-6vjc (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