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

High severity, published 2026-07-16. Update pheditor/pheditor to 2.0.6 or later: composer update pheditor/pheditor.

Canonical URL: https://buzzphp.com/security/ghsa-wg4w-wr5q-6vjc · Data from GitHub as of 2026-11-25.

| | |
| --- | --- |
| Severity | high (CVSS 8.8) |
| Published | 2026-07-16 |
| Updated | 2026-07-16 |
| CVE | [CVE-2026-55578](https://nvd.nist.gov/vuln/detail/CVE-2026-55578) |
| GHSA | [GHSA-wg4w-wr5q-6vjc](https://github.com/advisories/GHSA-wg4w-wr5q-6vjc) |
| Weakness | CWE-78 |

| Package | Affected versions | Fixed in |
| --- | --- | --- |
| pheditor/pheditor | >= 2.0.1, < 2.0.6 | 2.0.6 |

## What to do

Update pheditor/pheditor to 2.0.6 or later: composer update pheditor/pheditor.

Check which version you run with `composer show pheditor/pheditor`, and every affected package with `composer audit`.

## About this advisory

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+



## Links

- [GHSA-wg4w-wr5q-6vjc on GitHub](https://github.com/advisories/GHSA-wg4w-wr5q-6vjc)
- [CVE-2026-55578 on the National Vulnerability Database](https://nvd.nist.gov/vuln/detail/CVE-2026-55578)
- [All Composer security advisories](https://buzzphp.com/security)
