CVE-2026-48030
Received Received - Intake

OS Command Injection in Pheditor PHP Editor

Vulnerability report for CVE-2026-48030, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-07-27

Last updated on: 2026-07-27

Assigner: GitHub, Inc.

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-07-27
Last Modified
2026-07-27
Generated
2026-07-27
AI Q&A
2026-07-27
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Currently, no data is known.

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-78 The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This is an OS Command Injection vulnerability in Pheditor, a PHP-based editor and file manager. It affects versions 2.0.1 to 2.0.3. The flaw allows authenticated users to execute arbitrary OS commands by injecting shell metacharacters into the 'dir' POST parameter. This bypasses a command whitelist and achieves full Remote Code Execution with web server privileges.

Detection Guidance

To detect this vulnerability, check if your Pheditor installation is running version 2.0.1 to 2.0.3. Inspect the pheditor.php file for direct use of the 'dir' POST parameter in shell_exec() without sanitization. Look for unusual command execution patterns or unauthorized file modifications.

Impact Analysis

An attacker with valid credentials could run malicious commands on the server, deploy webshells, read/write/delete files, or compromise other applications sharing the same server. This could lead to data theft, system takeover, or service disruption.

Compliance Impact

This vulnerability could lead to unauthorized access, data breaches, or data destruction, violating GDPR's integrity and confidentiality requirements and HIPAA's safeguards for protected health information. Non-compliance risks include fines, legal action, and reputational damage.

Mitigation Strategies

Immediately upgrade Pheditor to version 2.0.4 or later. If upgrading is not possible, apply the fix by modifying the pheditor.php file to use escapeshellarg() on the 'dir' parameter before passing it to shell_exec(). Remove terminal permissions from non-admin users until patched.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-48030. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart