CVE-2026-48030

Pheditor: OS Command Injection in terminal handler via unsanitized 'dir' parameter (CWE-78)

Published Jul 27, 2026 CVSS 3.1 · 9.9 Critical EPSS 7.5% KEV · Not listed
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.

Analysis

AI-generated

Technical 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 8%, 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.

Remediation

No solution or workaround provided in the CVE record.

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 September 24, 2026 at 21:51 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
Type Values Removed Values Added
First Time appeared Pheditor
Pheditor pheditor
Vendors & Products Pheditor
Pheditor pheditor
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'}

Weaknesses
  • CWE-78

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

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jul 27, 2026, 6:53 PM
Reserved
May 20, 2026, 5:44 PM
Status
Deferred
Published
Jul 27, 2026, 6:16 PM
Modified
Oct 24, 2026, 1:10 PM