Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2024-12333 Overview
CVE-2024-12333 is an arbitrary shortcode execution vulnerability in the Woodmart theme for WordPress. The flaw affects all versions up to and including 8.0.3. The theme fails to validate input before passing it to do_shortcode through the woodmart_instagram_ajax_query AJAX action. Unauthenticated attackers can invoke arbitrary WordPress shortcodes against vulnerable sites over the network.
Critical Impact
Unauthenticated remote attackers can execute arbitrary WordPress shortcodes, enabling abuse of plugin and theme functionality exposed through the shortcode API.
Affected Products
- Woodmart theme for WordPress versions up to and including 8.0.3
- WordPress sites running WooCommerce storefronts built on Woodmart
- Any site exposing the woodmart_instagram_ajax_query AJAX endpoint
Discovery Timeline
- 2024-12-12 - CVE-2024-12333 published to the National Vulnerability Database (NVD)
- 2026-06-17 - Last updated in NVD
Technical Details for CVE-2024-12333
Vulnerability Analysis
The vulnerability resides in the Woodmart theme's Instagram AJAX handler. The woodmart_instagram_ajax_query action accepts a user-supplied value and forwards it to WordPress's do_shortcode function without validating that the value corresponds to an expected shortcode or safe input. Because the AJAX endpoint is registered for unauthenticated users, any remote attacker can trigger it.
Shortcode execution is a legitimate WordPress feature, but it exposes server-side functionality implemented by plugins and themes. When attackers control the shortcode string, they can execute any registered shortcode on the site. The impact depends on which plugins are installed, but commonly includes information disclosure, content manipulation, and abuse of administrative shortcode handlers.
This issue is classified under CWE-94: Improper Control of Generation of Code.
Root Cause
The root cause is missing input validation on data passed to do_shortcode. The AJAX handler treats attacker-controlled input as trusted shortcode content. There is no allowlist restricting which shortcodes the endpoint may process, and no capability check preventing anonymous requests.
Attack Vector
The attack is network-based and requires no authentication or user interaction. An attacker sends a crafted HTTP POST request to /wp-admin/admin-ajax.php with action=woodmart_instagram_ajax_query and a parameter containing the target shortcode. The server renders the shortcode and returns its output. Attackers can chain this with vulnerable or sensitive shortcodes exposed by other installed plugins to escalate impact.
See the Wordfence vulnerability report for additional technical context.
Stop Remote Code Execution Before It Runs
Singularity™ Endpoint detects and blocks exploit attempts at machine speed, including zero-days and novel attack techniques.
Stop Exploit AttemptsDetection Methods for CVE-2024-12333
Indicators of Compromise
- Unauthenticated POST requests to /wp-admin/admin-ajax.php with action=woodmart_instagram_ajax_query
- Request bodies containing WordPress shortcode syntax such as [shortcode_name ...] in unexpected parameters
- Anomalous spikes in AJAX traffic from a single IP targeting the Instagram query endpoint
- Access log entries referencing woodmart_instagram_ajax_query from clients that never load theme front-end pages
Detection Strategies
- Inspect WordPress access logs for admin-ajax.php requests invoking the vulnerable action and parse parameters for shortcode brackets
- Deploy web application firewall (WAF) rules that block requests to the woodmart_instagram_ajax_query action containing [ or ] characters in untrusted parameters
- Correlate AJAX requests with the installed Woodmart version to prioritize alerts on unpatched hosts
Monitoring Recommendations
- Enable verbose logging on admin-ajax.php and forward events to a central SIEM for retention and search
- Baseline normal volume of Instagram widget requests and alert on deviations
- Monitor outbound HTTP traffic from the web server for secondary callbacks triggered by executed shortcodes
How to Mitigate CVE-2024-12333
Immediate Actions Required
- Identify every WordPress site running the Woodmart theme and record the installed version
- Update Woodmart to a version later than 8.0.3 as soon as a fixed release is available from the vendor
- Restrict access to admin-ajax.php from untrusted networks where feasible
- Audit installed plugins for shortcodes that expose sensitive data or administrative actions
Patch Information
Users should obtain the latest Woodmart release through their ThemeForest account and apply updates in a staging environment before production rollout. Confirm the fix by validating that the woodmart_instagram_ajax_query handler rejects unexpected shortcode input.
Workarounds
- Disable the Instagram widget feature in Woodmart if the fixed version cannot be deployed immediately
- Add a WAF rule blocking POST requests to admin-ajax.php where action=woodmart_instagram_ajax_query and parameters contain [ characters
- Remove or restrict high-risk shortcodes registered by other plugins while remediation is pending
# Example ModSecurity rule blocking exploitation attempts
SecRule REQUEST_URI "@contains /wp-admin/admin-ajax.php" \
"chain,phase:2,deny,status:403,id:1012333,msg:'CVE-2024-12333 Woodmart shortcode injection attempt'"
SecRule ARGS:action "@streq woodmart_instagram_ajax_query" \
"chain"
SecRule ARGS "@rx \\[[a-zA-Z_]+" "t:none"
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

