Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
Tools/GitHubGitHub/muslimbek-0x/cve-2026-48030
Vulnerability AnalysisCode AnalysisExploitationWeb Application ExploitationPapers & ResearchLearning & Education
GitHubmuslimbek-0x/cve-2026-48030

CVE-2026-48030

Proof-of-concept exploit for CVE-2026-48030, a critical OS command injection in Pheditor 2.0.1-2.0.3. Includes vulnerable code analysis, PoC script, and patching guidance for security researchers.

View Repository
53 months agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2026-48030 — OS Command Injection in Pheditor

Overview

FieldDetails
CVE IDCVE-2026-48030
Productpheditor
VendorHamid Samak
Affected Versions2.0.1, 2.0.2, 2.0.3
Patched Version2.0.4
SeverityCritical
CVSS Score9.9
CVSS VectorCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
CWECWE-78 (OS Command Injection)
Discovered byMuslimbek Burxonov

Description

A critical OS Command Injection vulnerability exists in the terminal action handler of pheditor.php. The dir POST parameter is concatenated directly into shell_exec() without sanitization, allowing an authenticated attacker to bypass the TERMINAL_COMMANDS whitelist and execute arbitrary OS commands.


Vulnerable Code

pheditor.php, line 586:

root@kitploit:~
$command = $_POST['command'];  // ✓ metacharacters checked
$dir     = $_POST['dir'];      // ✗ NOT checked — vulnerable

// Check applies to $command only, NOT $dir
if (strpos($command, '&')  !== false ||
    strpos($command, ';')  !== false ||
    strpos($command, '||') !== false) {
    die(...);
}

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

Proof of Concept

root@kitploit:~
python3 poc.py --target http://TARGET/pheditor.php --password admin

See poc.py for full PoC script.


Fix

pheditor.php, line 586 — replace:

root@kitploit:~
// BEFORE (vulnerable)
'cd ' . $dir

// AFTER (patched)
'cd ' . escapeshellarg($dir)

References

  • GitHub Advisory GHSA-jvc5-6g7q-c843
  • pheditor v2.0.4 Release
  • pheditor Repository

Disclaimer

This PoC is provided for educational and research purposes only. Use only on systems you have explicit permission to test.

Download Tool