CVE-2024-5147·PHP vulnerability
The WPZOOM Addons for Elementor (Templates, Widgets) plugin for WordPress is vulnerable to Local File Inclusion in all versions up to, and including, 1.1.37 via the 'grid_style' parameter. This makes it possible for unauthenticated attackers to include and execute arbitrary files on the server, allowing the execution of any PHP code in those files. This can be used to bypass access controls, obtain sensitive data, or achieve code execution in cases where images and other “safe” file types can be uploaded and included.
- Severity
- critical
- Software
- PHP
- Fixed in
- 1.1.38
- Published
- 2024-05-22
Affected versions
Until: 1.1.38
Fixed in: 1.1.38
How to fix this CVE
Update the WPZOOM Addons for Elementor plugin to version 1.1.38 or later to patch the local file inclusion vulnerability in the grid_style parameter. If you are running PHP with this plugin installed, apply the update immediately as this flaw allows unauthenticated attackers to include and execute arbitrary PHP files on your server. After updating, verify the plugin version and test your site to ensure functionality is preserved.
sudo dnf update php php-common php-cliDefensia detects this vulnerability
What an exploitation attempt looks like
Sample log line indicative of exploitation attempts:
POST /wp-admin/admin-ajax.php?action=wpzoom_elementor_ajax_posts_grid - Request body containing 'grid_style' parameter with path traversal sequences (e.g., '../', '..\', '%2e%2e', or absolute file paths like '/etc/passwd' or 'php://filter/convert.base64-encode/resource=...'); Successful exploitation results in HTTP 200 with PHP execution output or file contents in responseWAF mitigation (if patching is not yet possible)
Add this rule to your WAF to block exploitation attempts while you schedule the patch.
Block requests to /wp-admin/admin-ajax.php with action=wpzoom_elementor_ajax_posts_grid that contain grid_style parameters with special characters, path traversal patterns (../, ..\ ), or PHP wrappers (php://, data://, file://). Implement strict input validation requiring grid_style to match whitelisted CSS class names only.How to check if you are affected
- Check installed WPZOOM plugin version: grep -r 'Version:' /path/to/wordpress/wp-content/plugins/wpzoom-elementor-addons/wpzoom-elementor-addons.php | head -1
- Verify if the vulnerable grid_style AJAX endpoint is accessible: curl -s http://your-site/wp-admin/admin-ajax.php?action=wpzoom_elementor_ajax_posts_grid | grep -i grid_style
- Search WordPress debug logs for suspicious grid_style parameter usage: grep -i 'grid_style' /path/to/wordpress/wp-content/debug.log
- Confirm the patch by checking if plugin version is 1.1.38 or higher and test the AJAX grid functionality without errors
FAQ
What is CVE-2024-5147?
CVE-2024-5147 is a critical local file inclusion (LFI) vulnerability in WPZOOM Addons for Elementor that allows unauthenticated attackers to include and execute arbitrary PHP files through an unsanitized grid_style parameter passed to the plugin's AJAX handler.
Is CVE-2024-5147 being actively exploited?
No, CVE-2024-5147 is not currently listed on the CISA Known Exploited Vulnerabilities (KEV) catalog and no public exploit code has been released, though the vulnerability's critical severity warrants immediate patching.
What versions of the WPZOOM Addons for Elementor plugin are affected by CVE-2024-5147?
All versions up to and including 1.1.37 are affected; the vulnerability is patched in version 1.1.38 and later.
How do I check if my WordPress installation is vulnerable to CVE-2024-5147?
Navigate to Plugins in your WordPress admin dashboard and locate WPZOOM Addons for Elementor; if the version displayed is 1.1.37 or lower, your installation is vulnerable and requires immediate update to 1.1.38 or higher.
Does Defensia detect CVE-2024-5147?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If the WPZOOM Addons for Elementor plugin is active on a monitored WordPress site, CVE-2024-5147 will appear in your dashboard with remediation steps.
Related PHP CVEs
References
- https://plugins.trac.wordpress.org/browser/wpzoom-elementor-addons/trunk/includes/wpzoom-elementor-ajax-posts-grid.php#L105
- https://plugins.trac.wordpress.org/browser/wpzoom-elementor-addons/trunk/includes/wpzoom-elementor-ajax-posts-grid.php#L112
- https://plugins.trac.wordpress.org/changeset/3090236#file6
- https://www.wordfence.com/threat-intel/vulnerabilities/id/f006bb33-d017-445b-9c02-bd848c199671?source=cve
- https://plugins.trac.wordpress.org/browser/wpzoom-elementor-addons/trunk/includes/wpzoom-elementor-ajax-posts-grid.php#L105
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-5147. Free for 1 server.
Get started free