Pheditor
Pheditor: OS Command Injection in terminal handler via unsanitized 'dir' parameter (CWE-78)
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 versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 2.0.1, < 2.0.4
Fixed in 2.0.4
Mitigation
Upgrade pheditor to 2.0.4 or later.
References
- Vendor advisory github.com/pheditor/pheditor/security/advisori…
- Release notes github.com/pheditor/pheditor/releases/tag/2.0.…
Timeline
Days relative to CVE publicationFirst public PoC 60 days before publication; not in CISA KEV. First PoC: muslimbek-0x/CVE-2026-48030 (created 28 May 2026, found by us: backfilled).
PoC repositories
Found on GitHub.1 PoCs
PoCs 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| muslimbek-0x/CVE-2026-48030 | 28 May 2026 −60 d | 0 | PoC |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
Other public exploits
Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.| Source | Title | Published | Found by us |
|---|---|---|---|
| nuclei template | nuclei template: Pheditor 2.0.1-2.0.3 - OS Command Injection | 1 Aug 2026 | 14 Nov 2026 |
PoC characteristics
What to hunt for in your logs · from 1 PoC repoPOST /pheditor.php
- Body markers
pheditor_password=action=terminaltoken=command=lsdir=/tmp; {var} #inapplication/x-www-form-urlencoded- PoC User-Agent
Mozilla/5.0- Seen in
- 1 repo: muslimbek-0x/CVE-2026-48030
- Evidence
- muslimbek-0x/CVE-2026-48030/poc.py:40-46 muslimbek-0x/CVE-2026-48030/poc.py:53-61
GET /shell.php
- Query
c=id- PoC User-Agent
Mozilla/5.0- Seen in
- 1 repo: muslimbek-0x/CVE-2026-48030
- Evidence
- muslimbek-0x/CVE-2026-48030/poc.py:104-105
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/pheditor\.php(?:[?#].*)?$
(?i)^/shell\.php\?(?:.*&)?c=id
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2026-48030 pheditor pheditor exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/pheditor.php"; http.request_body; content:"pheditor_password="; http.request_body; content:"action=terminal"; http.request_body; content:"token="; http.request_body; content:"command=ls"; http.request_body; content:"dir=/tmp|3b| "; reference:url,poc.griffinguard.io/cve/CVE-2026-48030; classtype:web-application-attack; sid:9648806; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2026-48030 pheditor pheditor exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/shell.php"; http.uri; content:"c=id"; reference:url,poc.griffinguard.io/cve/CVE-2026-48030; classtype:web-application-attack; sid:9151105; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: pheditor pheditor exploit attempt (CVE-2026-48030)
id: gg-pocmon-cve-2026-48030-9648806
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-48030. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-48030
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/pheditor.php'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.48030
title: pheditor pheditor exploit attempt (CVE-2026-48030)
id: gg-pocmon-cve-2026-48030-9151105
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-48030. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-48030
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/shell.php'
cs-uri-query|contains|all:
- 'c=id'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.48030