Skip to main content
← All vulnerabilities
CVE-2026-54540GHSA-9643-6XJP-VX57

Authenticated terminal command whitelist bypass in Pheditor

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 2.0.5
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: total

Summary

Pheditor is a single-file editor and file manager written in PHP. Prior to version 2.0.5, there is an authenticated terminal command whitelist bypass. The terminal feature checks whether the submitted command starts with one of the configured TERMINAL_COMMANDS values, then passes the full command string to shell_exec(). 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. This issue has been patched in version 2.0.5.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: total

  3. Record last updated

Affected versions

  • pheditor pheditor

    fixed in 2.0.5

  • pheditor/pheditorPackagist

    fixed in 2.0.5

References 2

GitHub · pheditor/pheditor