Arbitrary File Upload in WooCommerce Ultimate Gift Card plugin
CVE-2024-8425 affects the WooCommerce Ultimate Gift Card plugin for WordPress in all versions up to and including 2.6.0. The vulnerability is caused by insufficient file type validation in the 'mwb_wgm_preview_mail' and 'mwb_wgm_woocommerce_add_cart_item_data' functions. Because uploaded files are not adequately restricted to safe types, an unauthenticated attacker can upload arbitrary files to the server hosting the affected WordPress site. If the uploaded file is placed in a web-accessible location and executable by the server-side environment, this can lead to remote code execution.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
Successful exploitation allows unauthenticated arbitrary file upload to the affected server. Depending on server configuration and upload location, this may enable remote code execution through upload of a malicious script or other executable payload. At minimum, the issue can permit unauthorized storage of attacker-controlled files on the server; in the worst case it can result in full compromise of the WordPress application context, including execution of arbitrary PHP code, site takeover, data access, and follow-on actions such as persistence or lateral movement within the hosting environment.
If you can’t patch tonight, do this now.
Restrict or disable public access to functionality invoking 'mwb_wgm_preview_mail' and 'mwb_wgm_woocommerce_add_cart_item_data' where feasible. Configure the web server and WordPress environment so uploaded files cannot be executed, especially in upload directories. Block dangerous extensions such as .php, .phtml, and similar server-executable types at the web server and application layers. Monitor upload directories for unexpected files, review logs for suspicious unauthenticated upload activity, and deploy WAF rules or custom filtering to detect and block malicious multipart upload requests targeting the plugin.
Patch, then assume compromise.
Update the WooCommerce Ultimate Gift Card plugin to a version newer than 2.6.0 if a fixed release is available from the vendor. If no patched version is yet available, remove or disable the plugin until a fix is released. The underlying issue should be remediated by enforcing strict server-side allowlisting of permitted file types, validating file content rather than relying solely on extensions or client-supplied MIME types, and ensuring uploaded files cannot be executed as code.
1 exploit validated by Mallory's analysis.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
6 sources tracked across advisories and community write-ups. News coverage will land here when it surfaces.
No news coverage yet. Advisories and community discussion only.