Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. pheditor/pheditor
  4. ›
  5. CVE-2026-54540

CVE-2026-54540: Pheditor has an authenticated terminal command whitelist bypass

July 16, 2026

Pheditor 2.0.4 has 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.

References

  • github.com/advisories/GHSA-9643-6xjp-vx57
  • github.com/pheditor/pheditor/releases/tag/2.0.5
  • github.com/pheditor/pheditor/security/advisories/GHSA-9643-6xjp-vx57
  • nvd.nist.gov/vuln/detail/CVE-2026-54540

Code Behaviors & Features

Detect and mitigate CVE-2026-54540 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.0.5

Fixed versions

  • 2.0.5

Solution

Upgrade to version 2.0.5 or above.

Impact 8.8 HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Source file

packagist/pheditor/pheditor/CVE-2026-54540.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 11 Aug 2026 00:17:01 +0000.