CVE-2025-58449
PHP vulnerability analysis and mitigation

Overview

Maho, a free and open source ecommerce platform, disclosed a high-severity vulnerability (CVE-2025-58449) affecting versions prior to 25.9.0. The vulnerability was discovered on September 7, 2025, and involves an authenticated remote code execution risk through file upload functionality (GitHub Advisory).

Technical details

The vulnerability allows an authenticated staff user with Dashboard and Catalog\Manage Products permissions to create a custom option on a product listing with a file input field. By configuring the allowed file extensions to include .php, an attacker can upload malicious PHP files to gain remote code execution. The uploaded files are stored in a predictable location under /public/media/custom_options/ and are directly accessible via HTTP requests. The vulnerability has received a CVSS v4.0 base score of 8.7 (High) with the vector string CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H (GitHub Advisory).

Impact

The vulnerability enables remote code execution (RCE) on the server, allowing attackers to execute arbitrary PHP code within the webroot. This can lead to complete system compromise, despite requiring authenticated access with specific permissions. The high CVSS score reflects the severe potential impact on system confidentiality, integrity, and availability (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in Maho version 25.9.0. The fix implements enhanced file extension security validation for product custom options, preventing the upload of dangerous file types. The patch enforces a whitelist of allowed extensions and blocks potentially malicious extensions including php, php3, php4, php5, php7, php8, phtml, phar, exe, bat, cmd, com, scr, vbs, js, jar, py, pl, rb, sh, asp, aspx, jsp, and cgi (GitHub Commit).

Additional resources


SourceThis report was generated using AI

Related PHP vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-65346CRITICAL9.1
  • PHPPHP
  • alexusmai/laravel-file-manager
NoNoDec 04, 2025
CVE-2025-66468HIGH7.6
  • PHPPHP
  • aimeos/ai-cms-grapesjs
NoYesDec 02, 2025
CVE-2025-65345MEDIUM6.5
  • PHPPHP
  • alexusmai/laravel-file-manager
NoNoDec 03, 2025
CVE-2025-65657MEDIUM6.5
  • PHPPHP
  • feehi/cms
NoNoDec 02, 2025
CVE-2025-65186MEDIUM6.1
  • PHPPHP
  • getgrav/grav
NoNoDec 02, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management