CVE-2026-5524: CWE-434 Unrestricted Upload of File with Dangerous Type in Divi Engine Divi Form Builder
The Divi Form Builder plugin for WordPress is vulnerable to Arbitrary File Upload leading to Remote Code Execution in all versions up to and including 5.1.8. This is due to insufficient file extension validation in the do_image_upload() function where user-supplied input from the acceptFileTypes POST parameter is directly interpolated into a regular expression used to validate uploaded files. Attackers can specify PHP-executable extensions such as .phtml, .phar, .php5, or .php7 to bypass the plugin's .htaccess protection which only blocks .php files specifically. Additionally, on Nginx-based servers, the .htaccess protection is completely ineffective as Nginx does not process .htaccess files. This makes it possible for unauthenticated attackers (who can obtain a nonce from any public page containing a form) to upload executable PHP files to the publicly accessible /wp-content/uploads/de_fb_uploads/ directory and achieve Remote Code Execution by accessing the uploaded file via HTTP. The vulnerability was partially patched in version 5.1.3.
AI Analysis
Technical Summary
CVE-2026-5524 is a critical vulnerability in the Divi Form Builder WordPress plugin caused by insufficient validation of file extensions in the do_image_upload() function. The plugin uses user-supplied input from the acceptFileTypes POST parameter directly in a regular expression to validate uploads, allowing attackers to specify dangerous PHP-executable extensions beyond .php. The plugin's .htaccess file only blocks .php files, so extensions like .phtml, .phar, .php5, and .php7 can bypass this protection. Moreover, on Nginx-based servers, .htaccess files are ignored, rendering the protection ineffective. Unauthenticated attackers can obtain a nonce from any public page with a form and upload executable PHP files to the publicly accessible /wp-content/uploads/de_fb_uploads/ directory, leading to remote code execution upon HTTP access. Although a partial patch was released in version 5.1.3, versions up to 5.1.8 remain vulnerable.
Potential Impact
Successful exploitation allows unauthenticated remote attackers to upload arbitrary executable PHP files to the server, leading to full remote code execution. This compromises confidentiality, integrity, and availability of the affected system. The vulnerability is critical with a CVSS score of 9.8, reflecting network attack vector, no privileges required, no user interaction, and high impact on confidentiality, integrity, and availability.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. A partial patch was introduced in version 5.1.3, but versions up to and including 5.1.8 remain vulnerable. Until an official fix is confirmed, restrict access to the /wp-content/uploads/de_fb_uploads/ directory, disable file uploads if possible, and consider using a web application firewall to block suspicious upload attempts. Monitor vendor channels for an official patch or update addressing this vulnerability.
CVE-2026-5524: CWE-434 Unrestricted Upload of File with Dangerous Type in Divi Engine Divi Form Builder
Description
The Divi Form Builder plugin for WordPress is vulnerable to Arbitrary File Upload leading to Remote Code Execution in all versions up to and including 5.1.8. This is due to insufficient file extension validation in the do_image_upload() function where user-supplied input from the acceptFileTypes POST parameter is directly interpolated into a regular expression used to validate uploaded files. Attackers can specify PHP-executable extensions such as .phtml, .phar, .php5, or .php7 to bypass the plugin's .htaccess protection which only blocks .php files specifically. Additionally, on Nginx-based servers, the .htaccess protection is completely ineffective as Nginx does not process .htaccess files. This makes it possible for unauthenticated attackers (who can obtain a nonce from any public page containing a form) to upload executable PHP files to the publicly accessible /wp-content/uploads/de_fb_uploads/ directory and achieve Remote Code Execution by accessing the uploaded file via HTTP. The vulnerability was partially patched in version 5.1.3.
CVSS v3.1
Score 9.8critical
Affected software
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-5524 is a critical vulnerability in the Divi Form Builder WordPress plugin caused by insufficient validation of file extensions in the do_image_upload() function. The plugin uses user-supplied input from the acceptFileTypes POST parameter directly in a regular expression to validate uploads, allowing attackers to specify dangerous PHP-executable extensions beyond .php. The plugin's .htaccess file only blocks .php files, so extensions like .phtml, .phar, .php5, and .php7 can bypass this protection. Moreover, on Nginx-based servers, .htaccess files are ignored, rendering the protection ineffective. Unauthenticated attackers can obtain a nonce from any public page with a form and upload executable PHP files to the publicly accessible /wp-content/uploads/de_fb_uploads/ directory, leading to remote code execution upon HTTP access. Although a partial patch was released in version 5.1.3, versions up to 5.1.8 remain vulnerable.
Potential Impact
Successful exploitation allows unauthenticated remote attackers to upload arbitrary executable PHP files to the server, leading to full remote code execution. This compromises confidentiality, integrity, and availability of the affected system. The vulnerability is critical with a CVSS score of 9.8, reflecting network attack vector, no privileges required, no user interaction, and high impact on confidentiality, integrity, and availability.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. A partial patch was introduced in version 5.1.3, but versions up to and including 5.1.8 remain vulnerable. Until an official fix is confirmed, restrict access to the /wp-content/uploads/de_fb_uploads/ directory, disable file uploads if possible, and consider using a web application firewall to block suspicious upload attempts. Monitor vendor channels for an official patch or update addressing this vulnerability.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- Wordfence
- Date Reserved
- 2026-04-04T01:50:49.629Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a46626e27e9c797195ac140
Added to database: 07/02/2026, 13:06:54 UTC
Last enriched: 07/02/2026, 13:21:22 UTC
Last updated: 07/02/2026, 15:22:33 UTC
Views: 7
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.