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.
Published: 2026-07-02
Score: 9.8 Critical
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The Divi Form Builder plugin for WordPress contains an arbitrary file upload flaw that allows an unauthenticated attacker to upload executable PHP files. The flaw is located in the do_image_upload() function where the acceptFileTypes POST parameter is interpolated directly into a regular expression used for file‑type validation. Because this expression does not reject executable extensions such as .phtml, .phar, .php5, or .php7, a malicious file can be stored in the publicly accessible /wp-content/uploads/de_fb_uploads/ directory. When accessed via HTTP, the server executes the file with the privileges of the web server, giving the attacker full remote control. This issue is classified as CWE‑434. The vulnerability requires no authentication; any visitor to a public form can obtain the necessary nonce, craft a POST request with a malicious acceptFileTypes value, upload a PHP payload to and then trigger it by browsing to the file. Because the upload directory is publicly writable and executable, the flaw provides a direct path to compromise the hosting server, potentially affecting all stored community or corporate data and enabling further lateral movement.

Affected Systems

All WordPress sites that use the Divi Form Builder plugin from Divi Engine with versions 5.1.8 or earlier are affected. The vulnerability exists in the plugin’s directory and uploads files under /wp-content/uploads/de_fb_uploads/ any web server that exposes that directory, including Apache (where .htaccess protection is limited to .php files only) and Nginx (where .htaccess files are ignored).

Risk and Exploitability

The CVSS score of 9.8 classifies this flaw as Critical. The EPSS score of < 1% indicates a very low but nonzero exploitation probability. The flaw does not require authentication; any internet‑reachable WordPress site with a public form is vulnerable. The attack path is straightforward: gather a form nonce, send a crafted POST request with a malicious acceptFileTypes value, upload the executable payload to the uploads directory, and access the file via remote code execution. Once PHP is executed, the attacker gains full control of the web server.

Generated by OpenCVE AI on July 21, 2026 at 11:21 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the Divi Form Builder plugin to the latest released version that provides a complete fix.
  • If an upgrade cannot be performed immediately, configure the web server so that PHP‑style files are not executable in the /wp-content/uploads/de_fb_uploads/ directory – for Apache place an .htaccess file containing e.g. "php_flag engine off" or "AddHandler none .php .phtml .phar", or for that serves the directory as static content or that denies execution of .php, .phtml, and .phar extensions.
  • If the plugin cannot be upgraded or reconfigured, disable or remove the Divi Form Builder from the WordPress installation until a patched version is available.

Generated by OpenCVE AI on July 21, 2026 at 11:21 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 02 Jul 2026 15:00:00 +0000

Type Values Removed Values Added
First Time appeared Divi Engine
Divi Engine divi Form Builder
Wordpress
Wordpress wordpress
Vendors & Products Divi Engine
Divi Engine divi Form Builder
Wordpress
Wordpress wordpress

Thu, 02 Jul 2026 13:00:00 +0000

Type Values Removed Values Added
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.
Title Divi Form Builder <= 5.1.8 - Unauthenticated Arbitrary File Upload Leading to Remote Code Execution via 'acceptFileTypes' Parameter
Weaknesses CWE-434
References
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}


Subscriptions

Divi Engine Divi Form Builder
Wordpress Wordpress
cve-icon MITRE

Status: PUBLISHED

Assigner: Wordfence

Published:

Updated: 2026-07-02T15:00:12.782Z

Reserved: 2026-04-04T01:50:49.629Z

Link: CVE-2026-5524

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-21T11:30:06Z

Weaknesses
  • CWE-434

    Unrestricted Upload of File with Dangerous Type