Pheditor: OS Command Injection in terminal handler via unsanitized 'dir' parameter (CWE-78)
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-78.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| pheditor | pheditor | 2.0.1 to before 2.0.4 | 2.0.4 | Patch available | CNA |
| — | pheditor/pheditor (Packagist) | 2.0.1 to before 2.0.4 | 2.0.4 | Patch available | GHSA-jvc5-6g7q-c843 |
- pheditor Vendorpheditor Affected 2.0.1 to before 2.0.4 Fixed in 2.0.4 Patch available CNA
- pheditor/pheditor (Packagist) Vendor— Affected 2.0.1 to before 2.0.4 Fixed in 2.0.4 Patch available GHSA-jvc5-6g7q-c843
Remediation
- Fix · CNA pheditor (pheditor) Fixed in 2.0.4
- Fix · GHSA-jvc5-6g7q-c843 pheditor/pheditor (Packagist) Fixed in 2.0.4 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-48030
- 2026-10-03 Alias added: GHSA-jvc5-6g7q-c843
References
More pheditor vulnerabilities
- TI-2026-40118 Pheditor: Hardcoded default password 'admin' with no forced change enables full application compromise CVSS 3.1CRITICAL 9.8
- TI-2026-39379 Authenticated terminal command whitelist bypass in Pheditor CVSS 3.1HIGH 8.8
- TI-2026-40117 OS command injection in pheditor CVSS 3.1HIGH 8.8
Sources
- CVE-2026-48030 · CVE Program
- CVE-2026-48030 · NVD
- FIRST EPSS
- GHSA-jvc5-6g7q-c843 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences