CVE-2024-8425: Arbitrary File Upload in WooCommerce Ultimate Gift Card plugin
- Vendor
- WP Swings
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.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
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.
Mitigation
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.
Remediation
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.
Exploits
1 exploit validated by Mallory's analysis.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2024-8425 exploited in the wild?
- Yes. As of Sep 25, 2026, Mallory has reports of exploitation in the wild.
- Is there a public exploit for CVE-2024-8425?
- Yes. Mallory tracks 1 public exploit or proof of concept for CVE-2024-8425, the earliest disclosed Apr 19, 2025.
- Is there a patch for CVE-2024-8425?
- 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.
- What products are affected by CVE-2024-8425?
- WP Swings Woocommerce Ultimate Gift Card.
- How severe is CVE-2024-8425?
- CVE-2024-8425 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 4.1% (91st percentile) as of Sep 25, 2026.
Recent activity
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.