High, CVSS 8.7PackagistPublished
Maho is Vulnerable to Authenticated Remote Code Execution via File Upload
CVE-2025-58449 · GHSA-vgmm-27fc-vmgp
- Affected
- Packagist mahocommerce/maho < 25.9.0
- Fixed in
- 25.9.0· Vendor fix available
- Issue
- In Maho 25.7.0, an authenticated staff user with access to the Dashboard and Catalog\Manage Products permissions can create a custom option on a listing with a file input field. By allowing file uploads with a .php extension, the user can use the filed to upload malicious PHP files, gaining remote code execution Details An user with the Dashboard and Catalog\Manage Products permissions can abuse the product custom options feature to bypass the application’s file upload restrictions. When creating a product custom option of type file upload, the user is allowed to define their own extension whitelist. This bypasses the application’s normal enforced whitelist and permits disallowed extensions, including .php. The file uploaded by the custom option is then written to a predictable location: Because this path is directly accessible under the application’s webroot, an attacker can then request the uploaded file via HTTP, causing the server to execute the PHP payload. PoC 1. Sign…
Recommended action: Upgrade to 25.9.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.