WP Libre Form WordPress plugin – Unauthenticated File Upload (CVE-2026-118423)
Overview
The WP Libre Form WordPress plugin (version 1.5.0.1) provides a form-based file upload feature. The plugin does not enforce proper file type validation, so any file, including PHP scripts, can be uploaded to a location that is publicly accessible via the web server. This lack of validation enables remote code execution without authentication.
Technical Details
The vulnerability stems from the plugin’s handling of multipart/form-data requests. When a user submits a file through the form, the plugin stores the file without checking its MIME type or extension. An attacker can craft a request that uploads a PHP file to a web-accessible directory. Because the uploaded file is then executable by the web server, the attacker can run arbitrary code. Exploitation requires only network access to the WordPress site with the plugin installed; no authentication is needed.
Impact
An attacker who successfully uploads a PHP script can execute arbitrary commands on the hosting server, potentially leading to full system compromise, data theft, or deployment of additional malicious payloads. All WordPress sites that have the WP Libre Form plugin version 1.5.0.1 installed are vulnerable, regardless of the underlying WordPress core version.
Recommended Actions
- Apply the vendor-released patch as soon as it is available.
- Remove or deactivate the WP Libre Form plugin if a patch is not yet released.
- Restrict file upload capabilities to trusted authenticated users only.
- Monitor web server access logs for unexpected PHP file uploads.
- Configure a web application firewall to block execution of uploaded scripts.
Detection
Review web server access and error logs for requests that result in the creation of .php files in upload directories associated with the WP Libre Form plugin. Look for POST requests to the plugin’s upload endpoint from unauthenticated IPs. Enable auditing of file creation events and alert on newly added executable files in web-accessible paths.