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

Critical 9.9 Published Updated

Authenticated users can execute arbitrary OS commands via the terminal handler's dir parameter, leading to remote code execution.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-48030?

CVE-2026-48030 is a critical command injection vulnerability in pheditor, published on 27 Jul 2026. Any signed-in user can exploit it over the network, with no action from the victim.

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.

Weakness: CWE-78

Which versions are affected by CVE-2026-48030?

2 open source packages ship an affected version, including pheditor/pheditor.

PackageAffectedFixed in
pheditor/pheditor PackagistFrom 2.0.12.0.4
pheditor/pheditor PackagistFrom 2.0.12.0.4

How do I fix CVE-2026-48030?

Upgrade pheditor/pheditor to 2.0.4 or later.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2026-48030 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-48030 exists.

Public exploit code: 1 Nuclei template and 1 proofs of concept on GitHub.

Sources

Also known as GHSA-jvc5-6g7q-c843.

Is CVE-2026-48030 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free