CVE-2026-5524 File upload in Divi Form Builder
Unauthenticated attackers can upload executable PHP files via the acceptFileTypes parameter to achieve remote code execution on WordPress sites using Divi Form Builder.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2026-5524?
CVE-2026-5524 is a critical vulnerability in Divi Form Builder, published on 2 Jul 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Weakness: CWE-434
Which versions are affected by CVE-2026-5524?
How do I fix CVE-2026-5524?
No fix has been published for CVE-2026-5524 yet. Limit exposure of the affected software until one is available.
Is CVE-2026-5524 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-5524 exists.
Public exploit code: 1 Nuclei template and 1 proofs of concept on GitHub.
Sources
Also known as GHSA-7ch9-34jx-wqhr.