Skip to content
OpenAdvisories
Critical · 9.9 Scanner template Public exploit CVE-2026-48030 EUVD-2026-49384GHSA-jvc5-6g7q-c843

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

Published Jul 27, 2026 · Updated Jul 27, 2026 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
pheditor pheditor >= 2.0.1, < 2.0.4 —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Automated scanner template

A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.

Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.

Affected packages

EcosystemPackageAffectedFixedRecord
Packagist pheditor/pheditor >= 2.0.1, < 2.0.4 2.0.4 GHSA-jvc5-6g7q-c843

References