Skip to main content

Divi Form Builder CVE-2026-5524

| EUVDEUVD-2026-41368 CRITICAL
Unrestricted Upload of File with Dangerous Type (CWE-434)
2026-07-02 Wordfence GHSA-7ch9-34jx-wqhr
9.8
CVSS 3.1 · Vendor: Wordfence
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Fetch nonce from public form page
  2. Delivery
    Craft upload with malicious acceptFileTypes regex
  3. Exploit
    Upload .phtml/.phar payload to de_fb_uploads
  4. Execution
    Request uploaded file over HTTP
  5. Impact
    Execute web shell as web server user

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V5 - File Handling File type validation, storage isolation
MITRE ATT&CK

2 techniques across 2 tactics: Command and Control, Persistence

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that the target run the Divi Form Builder plugin at version 5.1.8 or earlier with at least one publicly reachable page containing a Divi form, since the attacker must first harvest a valid nonce from that page. The attacker then abuses the acceptFileTypes POST parameter of the do_image_upload() function to whitelist a PHP-executable extension. Exploitation is materially easier - and the plugin's built-in .htaccess mitigation is entirely bypassed - on Nginx-based servers; on Apache/mod_php it still succeeds because the .htaccess rule blocks only literal .php while .phtml/.phar/.php5/.php7 remain executable in typical configs. Limiting factors: a public form (hence an obtainable nonce) must exist, the uploaded extension must be one the server maps to the PHP interpreter, and the de_fb_uploads directory must be web-accessible; there is no authentication or user-interaction requirement.

Impact

The CVSS 3.1 vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (9.8) is internally consistent with the description: network-reachable, low-complexity, no privileges or user interaction, full compromise of confidentiality, integrity, and availability via code execution. One nuance to verify: exploitation requires obtaining a valid nonce from a public page that contains a form, which is trivial to script but is a real precondition - it slightly raises attack complexity in practice without changing the unauthenticated nature, so PR:N remains appropriate. No EPSS score, KEV entry, or public POC is present in the provided data, so real-world exploitation cannot be confirmed; the signals available (unauthenticated RCE, popular ecosystem, credible Wordfence disclosure) point to genuine high priority rather than a high-CVSS/low-real-risk case, but the absence of exploitation telemetry should temper claims of active abuse. A notable complication: the description states the flaw was only 'partially patched' in 5.1.3 yet lists all versions through 5.1.8 as vulnerable, meaning even the latest analyzed release is affected - verify a fully fixed version with the vendor before assuming remediation.

Exploit ScenarioDerived

An unauthenticated attacker scrapes a nonce from any public page hosting a Divi form, then submits a crafted multipart upload setting acceptFileTypes so the validation regex permits a .phtml (or .phar/.php5/.php7) payload. The malicious file is written to the public /wp-content/uploads/de_fb_uploads/ directory, and the attacker fetches it over HTTP to execute a web shell - trivially reliable on Nginx where the .htaccess safeguard has no effect. No public POC is identified at time of analysis, but the low attack complexity and network attack vector make weaponization straightforward.

Act Now Prioritize within 24-48h. Why: CRITICAL severity + public POC available.
No patch listed yet 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 02, 2026

Arbitrary file upload leading to remote code execution in the Divi Form Builder WordPress plugin (versions through 5.1.8) lets unauthenticated attackers upload executable PHP files and run arbitrary code on the server. Attacker-controlled input from the acceptFileTypes POST parameter is interpolated directly into the file-validation regex in do_image_upload(), allowing alternate PHP extensions (.phtml, .phar, .php5, .php7) that evade the plugin's .php-only .htaccess block - and on Nginx the .htaccess protection does not apply at all. There is no public exploit identified at time of analysis and it is not in CISA KEV, but the CVSS 9.8 rating and Wordfence's technical disclosure make this a high-priority patching target.

RemediationAI

Because the description marks version 5.1.3 as only a partial fix and lists all versions up to and including 5.1.8 as vulnerable, no fully patched release is independently confirmed from the available data; consult the vendor changelog at https://diviengine.com/divi-form-builder-changelog/ and upgrade to the newest release published after 5.1.8 that explicitly notes the file-upload fix, and confirm the fixed version with the vendor before relying on it. As immediate compensating controls, restrict or block public HTTP access to /wp-content/uploads/de_fb_uploads/ and configure the web server to refuse execution of PHP in the uploads tree - critically, do this at the server level rather than via .htaccess, e.g. an Nginx location block that returns 403 for \.ph(p[0-9]?|tml|ar)$ under /wp-content/uploads/, since Nginx ignores .htaccess and the plugin's default rule only covers .php (side effect: legitimate uploads with those extensions, which should not exist, are blocked). If forms are not needed, deactivate the Divi Form Builder plugin, or place the site behind a WAF/virtual patch (Wordfence provides one per its advisory https://www.wordfence.com/threat-intel/vulnerabilities/id/9692deb2-2526-4983-8a13-93a382e230c8?source=cve) as a stopgap. Review the de_fb_uploads directory for already-uploaded PHP/phtml/phar files as a compromise check.

Affected VersionsENISA

Divi Form Builder 0 ≤5.1.8

Affected Packages

euvd divi_form_builder no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The affected component is the Divi Form Builder plugin (CPE cpe:2.3:a:divi_engine:divi_form_builder), an add-on that provides form functionality within the widely used Divi/Elegant Themes WordPress ecosystem. The root cause is CWE-434 (Unrestricted Upload of File with Dangerous Type): the do_image_upload() function builds a regular expression from the client-supplied acceptFileTypes value and uses it to decide which uploads are allowed, so an attacker who controls that parameter controls the allow-list. The plugin attempts a defense-in-depth control via an .htaccess file that denies execution of *.php, but this is both incomplete (it does not cover .phtml/.phar/.php5/.php7, which many PHP-FPM/mod_php configurations still execute) and platform-dependent (Nginx ignores .htaccess entirely, nullifying the control). Uploaded files land in the world-reachable /wp-content/uploads/de_fb_uploads/ directory, so a successful upload is directly requestable over HTTP.

Know when Divi Form Builder gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (Wordfence) PRIMARY 9.8 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 9.8 CRITICAL

Unauthenticated network upload (PR:N) with a trivially scriptable nonce fetch keeps AC:L; resulting RCE yields full C/I/A impact within the WordPress host (S:U).

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (Wordfence).

CVSS VectorVendor: Wordfence

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

The Divi Form Builder WordPress plugin (versions through 5.1.8) contains a critical vulnerability enabling unauthenticated attackers to upload and execute arbitrary code on affected web servers. This vulnerability poses immediate risk of system compromise, data exfiltration, and operational disruption for any organization using this plugin, requiring urgent mitigation within 24 hours regardless of patch availability.

Business Impact: Severe
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Disable Divi Form Builder plugin immediately; (2) Configure web server to deny execution of alternate PHP extensions (.phtml, .phar, .php5, .php7) via .htaccess (Apache) or location blocks (nginx); (3) Restrict upload directory permissions to 644 and disable PHP execution within upload folders; (4) Deploy WAF rules to block POST requests containing suspicious file extension payloads; (5) Enable comprehensive logging and monitoring of upload requests and file creation in upload directories; (6) Review server access logs for evidence of prior exploitation.

Threat Intelligence Overview

EPSS Score
0.5%
Top 58% exploitable
Prevalence
Medium
add-on within the very popular Divi WordPress ecosystem, but a plugin subset
Exploit
POC
Public exploit code exists
Social Media
2
Sightings
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC Yes
EPSS 0.5%
Patch available No
Active threat No
Deciding rule
CRITICAL severity + public POC available
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
Very High
Technical Impact
Total

Priority Score

70
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +49
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Malicious file upload attacks exploit insufficient validation when web applications accept user-provided files.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy