
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2025-58449 is an authenticated remote code execution (RCE) vulnerability in Maho, a free and open-source ecommerce platform, caused by insufficient file upload extension validation in the product custom options feature. Authenticated staff users with Dashboard and Catalog\Manage Products permissions can configure a file upload custom option to allow .php extensions, bypassing the application's enforced extension blocklist. The vulnerability affects Maho versions prior to 25.9.0 (specifically confirmed in 25.7.0). It was published on September 7–8, 2025, and carries a CVSS v4.0 base score of 8.7 (High) (GitHub Advisory, Maho Security Advisory).
The root cause is classified as CWE-646 (Reliance on File Name or Extension of Externally-Supplied File). When a staff user creates a product custom option of type "file upload," the application allows the user to define their own extension whitelist without validating it against the server-side forbidden extensions list. This means a user can add .php (or variants like .phtml, .php5) to the allowed list, and subsequently uploaded files are written to a predictable, web-accessible path: /public/media/custom_options/<hash>/<option_id>/<filename>.php. Because this directory is under the application's webroot and served directly by the web server, an attacker can trigger PHP execution by making an HTTP request to the uploaded file's URL. The fix (commit db54a1b) enforces a server-side forbidden extensions blocklist — now covering php, php3, php4, php5, php7, php8, phtml, phar, exe, bat, cmd, asp, aspx, jsp, and others — at both save time and upload time (GitHub Advisory, Patch Commit).
Successful exploitation grants the attacker arbitrary PHP code execution on the web server, running as the web server process user. This enables full confidentiality, integrity, and availability compromise of the vulnerable system and potentially subsequent systems — including access to the database (customer PII, payment data), installation of persistent backdoors, lateral movement within the hosting environment, and complete service disruption. The impact is high across all three CIA dimensions for both the vulnerable and subsequent systems (Maho Security Advisory).
No public proof-of-concept exploit code has been identified, and there is no evidence of in-the-wild exploitation at this time (GitHub Advisory). The EPSS score is approximately 0.087% (0.201% per GitHub Advisory, 42nd percentile), indicating a relatively low near-term exploitation probability. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Exploitation requires authenticated access with specific staff-level permissions (Catalog\Manage Products), which limits the attacker pool but does not require full administrative access.
Dashboard and Catalog\Manage Products role permissions — this could be via phishing, credential stuffing, or insider threat./admin and authenticate with the staff account.php as an allowed extension.shell.php). Click "Add to Cart" to complete the upload./public/media/custom_options/<quote_id>/<option_id>/shell.php. The path components can be inferred from the cart/session data or by brute-forcing predictable values.https://<target>/media/custom_options/<quote_id>/<option_id>/shell.php to cause the web server to execute the PHP payload, establishing a reverse shell or enabling further post-exploitation (Maho Security Advisory)./admin/catalog_product/edit/) containing file_extension parameters with values like php, phtml, or other executable extensions; HTTP GET requests to paths matching /media/custom_options/*/*/*.php or similar executable extensions from external IPs..php, .phtml, or other script files under /public/media/custom_options/; unexpected web shells or reverse shell scripts in the media directory./media/custom_options/ paths with .php extensions, especially followed by outbound connections; admin access logs showing a staff user modifying product custom options with executable file extensions.bash, curl, wget, nc) originating from the web server process user (Maho Security Advisory).Upgrade Maho to version 25.9.0 or later, which enforces a server-side forbidden extensions blocklist (including php, php3–php8, phtml, phar, exe, bat, asp, aspx, jsp, and others) at both option save time and file upload time (Patch Commit). As interim mitigations: restrict the Catalog\Manage Products permission to fully trusted staff only; configure the web server to deny execution of scripts in the /public/media/ directory (e.g., via .htaccess or Nginx location blocks); and deploy a WAF rule to block file uploads with executable extensions to the custom options endpoint (GitHub Advisory).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."