Description
Pheditor is a single-file editor and file manager written in PHP. From version 2.0.1 to before version 2.0.4, an OS Command Injection vulnerability in the terminal action handler allows any authenticated user to execute arbitrary OS commands by injecting shell metacharacters into the 'dir' POST parameter, completely bypassing the TERMINAL_COMMANDS whitelist and achieving full Remote Code Execution with web server privileges. This issue has been patched in version 2.0.4.
Published: 2026-07-27
Score: 9.9 Critical
EPSS: 5.2% Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

An OS Command Injection vulnerability in the terminal action handler of Pheditor allows any authenticated user, on versions 2.0.1 through 2.0.3, to inject shell metacharacters into the "dir" POST parameter. This bypasses the TERMINAL_COMMANDS whitelist and enables arbitrary OS command execution with web server privileges. The flaw follows CWE-78 and results in full Remote Code Execution.

Affected Systems

The vulnerability exists only in the pheditor single-file PHP editor, affecting versions between 2.0.1 up to but excluding 2.0.4. Users running 2.0.1, 2.0.2, or 2.0.3 are impacted.

Risk and Exploitability

With a CVSS score of 9.9, the risk is extremely high. The EPSS score is 5%, indicating a higher but still nonzero exploitation probability. Although the vulnerability is not listed in CISA KEV, the authentication requirement and the web interface path make exploitation likely for sites using pheditor with default or weak credentials. Attackers must authenticate, then issue a crafted POST request that injects shell metacharacters into the "dir" parameter to execute arbitrary commands on the server.

Generated by OpenCVE AI on August 9, 2026 at 14:25 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to pheditor version 2.0.4 or later, which removes the injection point.
  • Revoke or tighten authentication for the web interface to limit exposure to authenticated attackers.
  • Enforce strict input validation on the "dir" parameter as an interim control, ensuring only safe characters are accepted.

Generated by OpenCVE AI on August 9, 2026 at 14:25 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-jvc5-6g7q-c843 Pheditor: OS Command Injection in terminal handler via unsanitized 'dir' parameter
History

Tue, 28 Jul 2026 21:00:00 +0000

Type Values Removed Values Added
First Time appeared Pheditor
Pheditor pheditor
Vendors & Products Pheditor
Pheditor pheditor

Mon, 27 Jul 2026 20:30:00 +0000

Type Values Removed Values Added
Description Pheditor is a single-file editor and file manager written in PHP. From version 2.0.1 to before version 2.0.4, an OS Command Injection vulnerability in the terminal action handler allows any authenticated user to execute arbitrary OS commands by injecting shell metacharacters into the 'dir' POST parameter, completely bypassing the TERMINAL_COMMANDS whitelist and achieving full Remote Code Execution with web server privileges. This issue has been patched in version 2.0.4.
Title Pheditor: OS Command Injection in terminal handler via unsanitized 'dir' parameter (CWE-78)
Weaknesses CWE-78
References
Metrics cvssV3_1

{'score': 9.9, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Subscriptions

Pheditor Pheditor
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-27T18:53:42.856Z

Reserved: 2026-05-20T17:44:09.588Z

Link: CVE-2026-48030

cve-icon Vulnrichment

Updated: 2026-07-27T18:53:16.903Z

cve-icon NVD

Status : Deferred

Published: 2026-07-27T18:16:55.347

Modified: 2026-07-27T20:32:11.620

Link: CVE-2026-48030

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-09T14:30:01Z

Weaknesses
  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')