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

- Severity: Critical 9.9 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 7.55%, higher than 95% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-09T22:00:35.000Z
- Modified: 2026-10-24T13:10:00.147Z
- Also known as: GHSA-jvc5-6g7q-c843
- Weaknesses: CWE-78
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- pheditor pheditor: >= 2.0.1, < 2.0.4
- pheditor/pheditor (Packagist): from 2.0.1 before 2.0.4

## Every score

- GitHub_M: CVSS:3.1 9.9 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.9 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`

## References

- <https://github.com/pheditor/pheditor/security/advisories/GHSA-jvc5-6g7q-c843> (exploit, web)
- <https://github.com/pheditor/pheditor/releases/tag/2.0.4>
- <https://github.com/pheditor/pheditor/commit/62b43df7cb8956a9b0deb9bec278ca8676c890c5> (web)
- <https://github.com/pheditor/pheditor> (package)

## Sources

- CVE List: [CVE-2026-48030](https://www.cve.org/CVERecord?id=CVE-2026-48030), CVE Terms of Use, modified 2026-07-27
- GitHub Advisory Database: [GHSA-jvc5-6g7q-c843](https://github.com/advisories/GHSA-jvc5-6g7q-c843), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-48030](https://nvd.nist.gov/vuln/detail/CVE-2026-48030), Public domain, modified 2026-10-24

---

Page: https://cve.day/CVE-2026-48030 · Whole record: https://cve.day/CVE-2026-48030.json · Rebuilt by cve.day 2026-11-25T22:59:30.219Z
