Vulnerability · Published Jul 27, 2026 · Assigned by GitHub_M
CVE-2026-48030Pheditor: OS Command Injection in terminal handler via unsanitized 'dir' parameter (CWE-78)
Critical 9.9
In plain English
A critical-severity OS command injection in pheditor from pheditor. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 7.5% (higher than 95% of all known vulnerabilities). Ready-made attack tooling exists: Nuclei, public proof-of-concept code. Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Packagist | pheditor/pheditor | 2.0.4 | GHSA-jvc5-6g7q-c843 |
Affected products (as reported)
Weakness: CWE-78 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
References
- https://github.com/pheditor/pheditor/security/advisories/GHSA-jvc5-6g7q-c843 x_refsource_CONFIRM
- https://github.com/pheditor/pheditor/releases/tag/2.0.4 x_refsource_MISC