Unauthenticated Remote Code Execution in Drag and Drop File Upload for Elementor Forms
An arbitrary file upload vulnerability in the Drag and Drop File Upload for Elementor Forms WordPress plugin allows unauthenticated attackers to execute arbitrary code via MIME type validation bypass.
CVE search metadata
CVE search record: CVE-2026-18351. Severity: critical. CVSS: 9.8. KEV: no. Product: Drag and Drop File Upload for Elementor Forms (<= 1.6.0). Brief: Unauthenticated Remote Code Execution in Drag and Drop File Upload for Elementor Forms. Brief link: https://feed.craftedsignal.io/briefs/2026-09-drag-and-drop-file-upload-rce/
What's new
- 1. poc_available Sep 11, 04:27 via sploitus
The Drag and Drop File Upload for Elementor Forms WordPress plugin, version 1.6.0 and earlier, contains a critical arbitrary file upload vulnerability tracked as CVE-2026-18351. The vulnerability exists within the 'is_file_type_valid()' function, which improperly handles the 'type' parameter during file uploads. Specifically, the function uses this attacker-controlled parameter as a regex key when checking against MIME type allowlists. By crafting a request that influences this logic, an unauthenticated attacker can bypass existing file type restrictions. The 'sanitize_file_name()' function subsequently normalizes the filename, potentially converting a manipulated input into a executable PHP script. If successfully exploited, this flaw allows for unauthenticated remote code execution on the underlying WordPress server. Defenders should identify instances of this plugin in their environment and ensure they are patched beyond version 1.6.0.
Attack Chain
- Attacker performs reconnaissance to identify sites running the vulnerable Drag and Drop File Upload for Elementor Forms plugin.
- Attacker crafts an HTTP POST request targeting the 'elementor_file_upload' function endpoint.
- Attacker injects a malicious payload into the 'type' parameter to subvert the 'is_file_type_valid()' regex validation logic.
- Attacker uploads a file with a double extension or normalized name that bypasses the MIME type allowlist.
- The plugin's 'sanitize_file_name()' function normalizes the malicious filename into an executable PHP file.
- The web server saves the attacker-supplied PHP file to a publicly accessible directory.
- Attacker requests the uploaded PHP file via the web browser to trigger remote code execution.
Impact
Successful exploitation of CVE-2026-18351 enables unauthenticated remote code execution. This can lead to full site compromise, data exfiltration, installation of webshells for persistence, and further lateral movement within the hosting infrastructure.
Recommendation
- Immediately update the Drag and Drop File Upload for Elementor Forms plugin to the latest available version beyond 1.6.0.
- Audit web server logs for HTTP POST requests to the 'elementor_file_upload' endpoint containing irregular 'type' parameters or attempts to upload .php, .phtml, or .php5 files.
- Implement Web Application Firewall (WAF) rules to inspect and block requests containing suspicious MIME type strings or file upload attempts from unauthorized or non-standard sources.
- Use file integrity monitoring to detect the creation of new, unexpected files in plugin-associated upload directories.
Immediate actions
Patch Drag and Drop File Upload for Elementor Forms plugin to version 1.6.1 or later
Threat Hunt
Search web logs for POST requests to plugin upload endpoints with non-standard file extensions
Data: webserver access logs
Mitigations
Upgrade plugin to version 1.6.1+
CVE-2026-18351
Detection coverage 1
Detects CVE-2026-18351 Exploitation - Arbitrary File Upload via Elementor Forms Plugin
criticalDetects suspicious POST requests to the elementor_file_upload endpoint involving file uploads
Detection queries are available on the platform. Get full rules →