# CVE-2026-54540: Authenticated terminal command whitelist bypass in Pheditor

- Severity: High 8.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/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): 0.71%, higher than 54% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-07-16T20:01:05.000Z
- Modified: 2026-07-28T04:14:47.222Z
- Also known as: GHSA-9643-6xjp-vx57
- Related: CVE-2026-55578
- 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. Prior to version 2.0.5, there is an authenticated terminal command whitelist bypass. The terminal feature checks whether the submitted command starts with one of the configured TERMINAL_COMMANDS values, then passes the full command string to shell_exec(). Shell command substitution such as $() is not blocked, so an authenticated user with the terminal permission can bypass a restricted command allowlist and execute arbitrary shell commands as the web server user. This issue has been patched in version 2.0.5.

(As written by CVE List.)

## Affected

- pheditor pheditor: < 2.0.5
- pheditor/pheditor (Packagist): before 2.0.5

## Every score

- GitHub_M: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/pheditor/pheditor/security/advisories/GHSA-9643-6xjp-vx57> (exploit, web)
- <https://github.com/pheditor/pheditor/releases/tag/2.0.5> (web)
- <https://github.com/pheditor/pheditor> (package)

## Sources

- CVE List: [CVE-2026-54540](https://www.cve.org/CVERecord?id=CVE-2026-54540), CVE Terms of Use, modified 2026-07-27
- GitHub Advisory Database: [GHSA-9643-6xjp-vx57](https://github.com/advisories/GHSA-9643-6xjp-vx57), CC-BY-4.0, modified 2026-07-28
- NVD: [CVE-2026-54540](https://nvd.nist.gov/vuln/detail/CVE-2026-54540), Public domain, modified 2026-07-27

---

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