# Pheditor: Terminal command-allowlist bypass via argument injection leads to RCE — surviving vector after the metacharacter-sanitization fixes

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

Canonical URL: https://buzzphp.com/security/ghsa-g3hq-hphg-8fhh · Data from GitHub as of 2026-11-25.

| | |
| --- | --- |
| Severity | high (CVSS 8.8) |
| Published | 2026-07-24 |
| Updated | 2026-07-24 |
| GHSA | [GHSA-g3hq-hphg-8fhh](https://github.com/advisories/GHSA-g3hq-hphg-8fhh) |
| Weakness | CWE-78, CWE-88 |

| Package | Affected versions | Fixed in |
| --- | --- | --- |
| pheditor/pheditor | <= 2.0.6 | 2.0.7 |

## What to do

Update pheditor/pheditor to 2.0.7 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

pheditor's terminal feature restricts callers to an allowlist of commands (TERMINALCOMMANDS) and rejects shell metacharacters. The allowlist is enforced as a PREFIX match with no argument validation, and the allowlist includes binaries that grant arbitrary command execution through their own options (find, git, php, tar, grep). A caller can therefore run any command using only allowlisted binaries and no rejected metacharacter, escaping the allowlist restriction the terminal feature relies on.

Relationship to the prior terminal advisories (this is a surviving, distinct vector)



## Links

- [GHSA-g3hq-hphg-8fhh on GitHub](https://github.com/advisories/GHSA-g3hq-hphg-8fhh)
- [All Composer security advisories](https://buzzphp.com/security)
