{"id":"CVE-2026-126537","published":"2026-11-11T13:17:23.810","lastModified":"2026-11-11T13:17:23.940","description":"The Ninja Forms - File Uploads add-on for WordPress is vulnerable to Arbitrary File Deletion (and arbitrary file read via S3/Dropbox/Google Drive exfiltration) in versions up to, and including, 3.3.36. The flaw spans NF_FU_Fields_Upload::process() in includes/fields/upload.php — which returns early (leaving the client-supplied files[] intact) whenever a public submission carries a nonempty extra.saveProgress — and NF_FU_External_Abstracts_Service::process_upload() in includes/external/abstracts/service.php, whose authoritative-path reload only fires when the client sends upload_id. By omitting upload_id, an attacker's data[file_path] survives into the Background Upload queue and is used by both upload_file_to_s3() (as SourceFile) and the maybe_delete_server_file() unlink() call in includes/external/abstracts/backgroundupload.php, with no canonicalization or upload-directory containment check (the plugin's own is_path_within_upload_dir() helper is only applied on admin paths). This makes it possible for unauthenticated attackers to delete arbitrary files on the affected site's server which may make remote code execution possible — specifically, deleting wp-config.php forces WordPress into its setup screen, enabling full site takeover.","cvssScore":9.1,"cvssSeverity":"CRITICAL","cvssVector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H","cwes":["CWE-22"],"vendors":[],"products":[],"references":[{"url":"https://ninjaforms.com/extensions/file-uploads/","tags":[]},{"url":"https://www.wordfence.com/threat-intel/vulnerabilities/id/3670e2aa-6d8e-4ba5-ab65-49bd2a3dcacc?source=cve","tags":[]}],"exploitRefs":[],"hasPoc":false,"ai":{"summary":"The Ninja Forms File Uploads add-on allows unauthenticated attackers to delete arbitrary server files due to missing input validation and path containment checks in its background upload handling. By omitting the upload_id parameter, an attacker can inject a malicious file_path into the upload queue, which later triggers unlink() on arbitrary paths like wp-config.php, potentially enabling full site takeover.","exploitability":"Exploitation is trivial for unauthenticated attackers as it requires only sending a crafted POST request with specific parameters to the public submission endpoint; no authentication or user interaction is needed.","blast_radius":"Successful exploitation could lead to complete site compromise by deleting critical WordPress files (e.g., wp-config.php), forcing reinstallation and enabling full administrative takeover.","remediation":"Upgrade to Ninja Forms File Uploads add-on version 3.3.37 or later, which addresses the path traversal and file deletion vulnerability.","detection":"Defenders should monitor web server access logs for POST requests to nf-fu-submit endpoints containing non-empty extra.saveProgress parameters and missing upload_id fields, especially when accompanied by data[file_path] values pointing outside the WordPress uploads directory (e.g., paths containing ../ or absolute paths like /var/www/html/wp-config.php).","tags":["arbitrary-file-deletion","path-traversal","rce-enabler","unauthenticated","wordpress-plugin"],"model":"garnet-coder","analyzedAt":"2026-11-12T09:51:05.909Z"}}