CVE-2024-3813·PHP vulnerability
The tagDiv Composer plugin for WordPress is vulnerable to Local File Inclusion in all versions up to, and including, 4.8 via the 'td_block_title' shortcode 'block_template_id' attribute. This makes it possible for authenticated attackers, with contributor-level and above permissions, 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 php file type can be uploaded and included.
- Severity
- high
- Software
- PHP
- Fixed in
- 4.9
- Published
- 2024-06-15
Affected versions
Until: 4.9
Fixed in: 4.9
How to fix this CVE
WordPress sites using the tagDiv Composer plugin must upgrade to version 4.9 or later to patch a local file inclusion vulnerability that allows authenticated contributors to execute arbitrary PHP code. Review your WordPress plugins immediately and apply the security update through the WordPress admin dashboard or via command line tools. Additionally, audit user permissions and restrict contributor-level access to trusted personnel only.
sudo dnf check-update && sudo dnf upgrade phpDefensia detects this vulnerability
What an exploitation attempt looks like
Sample log line indicative of exploitation attempts:
POST requests to wp-admin/admin-ajax.php with shortcode parameters containing 'td_block_title' and 'block_template_id' attributes pointing to files outside the expected template directory (e.g., ../../../../etc/passwd or paths containing ../ sequences)WAF mitigation (if patching is not yet possible)
Add this rule to your WAF to block exploitation attempts while you schedule the patch.
Block or rate-limit POST requests to wp-admin/admin-ajax.php that contain the 'td_block_title' shortcode with 'block_template_id' parameters including path traversal sequences (../, ..\ ) or absolute paths. Implement strict input validation to allow only alphanumeric characters and underscores in the block_template_id parameter.How to check if you are affected
- Step 1: Check installed PHP version with: php -v
- Step 2: Verify tagDiv Composer plugin version in WordPress by navigating to Plugins > Installed Plugins and locating 'tagDiv Composer' — note the version number displayed
- Step 3: Search WordPress error logs at wp-content/debug.log for patterns like 'td_block_title', 'block_template_id', or file inclusion attempts with unusual file paths
- Step 4: After updating to version 4.9+, re-run the WordPress admin plugin check to confirm the new version is active and no older files remain in the plugins directory
FAQ
What is CVE-2024-3813?
CVE-2024-3813 is a local file inclusion flaw in the tagDiv Composer WordPress plugin that permits authenticated contributors to include and execute arbitrary PHP files on the server, bypassing access controls and enabling remote code execution.
Is CVE-2024-3813 being actively exploited?
No, CVE-2024-3813 is not listed in the CISA Known Exploited Vulnerabilities catalog and no public exploits are currently available, though the vulnerability is trivial to weaponize.
What versions of the tagDiv Composer plugin are affected by CVE-2024-3813?
All versions of tagDiv Composer up to and including version 4.8 are vulnerable; version 4.9 and later include the security fix.
How do I check if my WordPress site is vulnerable to CVE-2024-3813?
Log into your WordPress admin panel, navigate to Plugins > Installed Plugins, find 'tagDiv Composer', and confirm the version is 4.8 or lower. If so, your site requires an immediate update.
Does Defensia detect CVE-2024-3813?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If the tagDiv Composer plugin is active on a monitored WordPress site, CVE-2024-3813 will appear in your dashboard with remediation steps.
Related PHP CVEs
References
- https://tagdiv.com/tagdiv-composer-page-builder-basics/
- https://www.wordfence.com/threat-intel/vulnerabilities/id/87b7bc4a-4d2f-4bcb-a9d5-72e31c95c09e?source=cve
- https://tagdiv.com/tagdiv-composer-page-builder-basics/
- https://www.wordfence.com/threat-intel/vulnerabilities/id/87b7bc4a-4d2f-4bcb-a9d5-72e31c95c09e?source=cve
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-3813. Free for 1 server.
Get started free