Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. pheditor/pheditor
  4. ›
  5. GHSA-g3hq-hphg-8fhh

GHSA-g3hq-hphg-8fhh: Pheditor: Terminal command-allowlist bypass via argument injection leads to RCE — surviving vector after the metacharacter-sanitization fixes

July 24, 2026

pheditor’s terminal feature restricts callers to an allowlist of commands (TERMINAL_COMMANDS) 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.

References

  • github.com/advisories/GHSA-g3hq-hphg-8fhh
  • github.com/pheditor/pheditor/commit/f40f5070d5a171b65359bc87568734d31de498e1
  • github.com/pheditor/pheditor/releases/tag/2.0.7
  • github.com/pheditor/pheditor/security/advisories/GHSA-g3hq-hphg-8fhh

Code Behaviors & Features

Detect and mitigate GHSA-g3hq-hphg-8fhh 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.7

Fixed versions

  • 2.0.7

Solution

Upgrade to version 2.0.7 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')
  • CWE-88: Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')

Source file

packagist/pheditor/pheditor/GHSA-g3hq-hphg-8fhh.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Fri, 14 Aug 2026 12:19:05 +0000.