CVE-2026-5524: Divi Form Builder <= 5.1.8 - Unauthenticated Arbitrary File Upload Leading to Remote Code Execution via 'acceptFileTypes' Parameter

Published Jul 2, 2026
·
Updated

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 doimageupload() 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/defbuploads/ directory and achieve Remote Code Execution by accessing the uploaded file via HTTP. The vulnerability was partially patched in version 5.1.3.

Affected Software

1 affected component
Elegant Themes Divi Form Builder<=5.1.8

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Divi Form Builder (WordPress plugin) to a version that resolves this vulnerability.

    Fixed in 5.1.8
  2. Configuration

    Do not rely on .htaccess for protection on Nginx servers because Nginx does not process .htaccess files.

    Nginx-based servers .htaccess protection = ineffective
  3. Compensating control

    Mitigate by blocking direct HTTP access to the upload directory path /wp-content/uploads/de_fb_uploads/ (e.g., via Nginx location rules or firewall/ACL), since uploaded executable files can be accessed for Remote Code Execution.

Event History

Jul 2, 2026
CVE Published
via MITRE·12:34 PM
Data Sourced
via MITRE·12:34 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·01:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What is the severity of CVE-2026-5524?

CVE-2026-5524 has a critical severity score of 9.8.

2

How do I fix CVE-2026-5524?

To fix CVE-2026-5524, upgrade the Divi Form Builder plugin to a version greater than 5.1.8.

3

What type of vulnerability is CVE-2026-5524?

CVE-2026-5524 is an arbitrary file upload vulnerability that can lead to remote code execution.

4

Which versions of Divi Form Builder are affected by CVE-2026-5524?

All versions of Divi Form Builder up to and including 5.1.8 are affected by CVE-2026-5524.

5

What causes the vulnerability in CVE-2026-5524?

The vulnerability in CVE-2026-5524 is caused by insufficient file extension validation in the do_image_upload() function.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203