{"id":"CVE-2026-55578","state":"PUBLISHED","title":"Pheditor: Incomplete command sanitization in terminal feature allows RCE via pipe operator, backtick substitution, and newline injection","description":"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.","publishedAt":"2026-07-27T17:54:29.407Z","updatedAt":"2026-07-28T14:03:57.628Z","severity":{"score":8.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"GitHub_M"},"assigner":"GitHub_M","products":["pheditor pheditor"],"affected":[{"vendor":"pheditor","product":"pheditor","versions":[{"version":">= 2.0.1, < 2.0.6","status":"affected"}]}],"references":["https://github.com/pheditor/pheditor/security/advisories/GHSA-wg4w-wr5q-6vjc","https://github.com/advisories/GHSA-9643-6xjp-vx57","https://github.com/pheditor/pheditor/releases/tag/2.0.6"],"weaknesses":["CWE-78"],"ingestedAt":"2026-10-29T20:12:24.861Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/55xxx/CVE-2026-55578.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-55578","state":"PUBLISHED","datePublished":"2026-07-27T17:54:29.407Z","dateUpdated":"2026-07-28T14:03:57.628Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-06-16T23:18:03.169Z"},"containers":{"cna":{"title":"Pheditor: Incomplete command sanitization in terminal feature allows RCE via pipe operator, backtick substitution, and newline injection","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"pheditor","product":"pheditor","versions":[{"version":">= 2.0.1, < 2.0.6","status":"affected"}]}],"references":[{"url":"https://github.com/pheditor/pheditor/security/advisories/GHSA-wg4w-wr5q-6vjc","name":"https://github.com/pheditor/pheditor/security/advisories/GHSA-wg4w-wr5q-6vjc","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/advisories/GHSA-9643-6xjp-vx57","name":"https://github.com/advisories/GHSA-9643-6xjp-vx57","tags":["x_refsource_MISC"]},{"url":"https://github.com/pheditor/pheditor/releases/tag/2.0.6","name":"https://github.com/pheditor/pheditor/releases/tag/2.0.6","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":8.8,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-78","lang":"en","description":"CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-07-27T17:54:29.407Z"},"source":{"advisory":"GHSA-wg4w-wr5q-6vjc","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","references":[{"url":"https://github.com/pheditor/pheditor/security/advisories/GHSA-wg4w-wr5q-6vjc","tags":["exploit"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-07-28T14:03:49.769768Z","id":"CVE-2026-55578","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-07-28T14:03:57.628Z"}}]}}}