Skip to content

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

CriticalCVSS 9.9 EPSS 7.5% Scanner template
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: total
Technology
PHP

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.

Upgrade path

2 packages: 1 fixed.

PackageAffectedFixed inStatus
pheditor/pheditor(Packagist) = 2.0.1; = 2.0.2; = 2.0.3; >= 2.0.1, < 2.0.4 +1 more 2.0.4 Fixed
pheditor/pheditor = >= 2.0.1, < 2.0.4 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
pheditor/pheditor = >= 2.0.1, < 2.0.4 No fix listed
pheditor/pheditor(Packagist) >= 2.0.1, < 2.0.4 2.0.4
pheditor/pheditor(Packagist) = 2.0.1 No fix listed
pheditor/pheditor(Packagist) = 2.0.2 No fix listed
pheditor/pheditor(Packagist) = 2.0.3 No fix listed
pheditor/pheditor(Packagist) >= 2.0.1, <= 2.0.3 No fix listed

References