{"id":"CVE-2026-55578","summary":"Pheditor: Incomplete command sanitization in terminal feature allows RCE via pipe operator, backtick substitution, and newline injection","details":"Pheditor is a single-file editor and file manager written in PHP. From version 2.0.1 to before version 2.0.6, the terminal feature in Pheditor uses an incomplete character blocklist to sanitize user-supplied commands before passing them to shell_exec(). After the fix for GHSA-9643-6xjp-vx57 (which added $ to the blocklist), the characters | (single pipe), ` (backtick), and the newline byte (0x0A) remain unblocked. An authenticated user with the terminal permission (enabled by default) can leverage any of these to bypass the TERMINAL_COMMANDS allowlist and execute arbitrary OS commands as the web server user. This issue has been patched in version 2.0.6.","aliases":["GHSA-wg4w-wr5q-6vjc"],"modified":"2026-08-12T03:51:25.116949406Z","published":"2026-07-27T17:54:29.407Z","related":["GHSA-9643-6xjp-vx57","GHSA-wg4w-wr5q-6vjc"],"database_specific":{"cwe_ids":["CWE-78"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/55xxx/CVE-2026-55578.json","cna_assigner":"GitHub_M"},"references":[{"type":"WEB","url":"https://github.com/pheditor/pheditor/releases/tag/2.0.6"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/55xxx/CVE-2026-55578.json"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-9643-6xjp-vx57"},{"type":"ADVISORY","url":"https://github.com/pheditor/pheditor/security/advisories/GHSA-wg4w-wr5q-6vjc"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-55578"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/pheditor/pheditor","events":[{"introduced":"44378852dbc5fe07893a09f2b59648fadbed1ce1"},{"fixed":"a64eb935ce699e43f1ea60e46d47f33e2f87ffd6"}],"database_specific":{"extracted_events":[{"introduced":"2.0.1"},{"fixed":"2.0.6"},{"introduced":"0"}],"source":["AFFECTED_FIELD","DESCRIPTION","REFERENCES"]}}],"versions":["2.0.5","2.0.4","2.0.3","2.0.2","2.0.1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-55578.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}