CVE-2026-3141
WordPress vulnerability analysis and mitigation

Overview

CVE-2026-3141 is an unauthorized arbitrary file deletion vulnerability in the FormGent – Next-Gen AI Form Builder plugin for WordPress, developed by wpWax. The flaw exists in all versions up to and including 1.9.2, where the /wp-json/formgent/responses/attachments REST API endpoint is registered without any authentication middleware, allowing unauthenticated attackers to delete files. On Linux servers where the wp-content/uploads/formgent directory does not yet exist (the default post-installation state), path traversal protections can be bypassed, enabling deletion of arbitrary files including wp-config.php and potential complete site takeover. The vulnerability was published on August 1, 2026, and carries a CVSS v3.1 base score of 9.1 (Critical), assigned by Wordfence (Wordfence, GitHub Advisory).

Technical details

The root cause is a missing authorization check (CWE-862) on the REST API route registered in routes/rest/api.php, which lacks any authentication middleware, allowing any unauthenticated network request to invoke the attachment deletion logic in app/Http/Controllers/AttachmentController.php. Under normal conditions, file deletion is constrained to the wp-content/uploads/formgent directory; however, on Linux systems where this directory has not yet been created (the default state immediately after plugin installation), the path traversal guard fails, enabling attackers to supply ../ sequences to reach arbitrary filesystem paths. This allows deletion of critical files such as wp-config.php, which — when removed — triggers WordPress's installation wizard, enabling an attacker to reconfigure the site with their own database credentials and achieve full site takeover (Wordfence, GitHub Advisory).

Impact

Successful exploitation allows an unauthenticated remote attacker to delete arbitrary files on the WordPress server, with the most severe scenario being deletion of wp-config.php on Linux installations where the FormGent upload directory has not been initialized. This leads to complete site takeover, as the absence of wp-config.php causes WordPress to present the installation wizard, allowing the attacker to connect the site to an attacker-controlled database. While confidentiality impact is rated None (no direct data exfiltration), integrity and availability are both rated High, reflecting the ability to destroy site configuration and render the site inoperable or fully compromised (Wordfence, GitHub Advisory).

Exploitation steps

  1. Reconnaissance: Identify WordPress sites running the FormGent plugin (versions ≤ 1.9.2) using passive techniques such as checking wp-content/plugins/formgent/ paths, HTTP response headers, or plugin enumeration tools like WPScan.
  2. Verify vulnerable state: Confirm the target is a Linux server and that the wp-content/uploads/formgent directory does not exist (default post-installation state), which enables path traversal bypass.
  3. Craft malicious DELETE request: Send an unauthenticated HTTP DELETE or POST request to the /wp-json/formgent/responses/attachments REST API endpoint, including a path traversal payload (e.g., ../../wp-config.php) as the target file parameter.
  4. Trigger path traversal: Because the upload directory does not exist, the path traversal protection fails, and the AttachmentController.php processes the traversal sequence, deleting the specified file outside the intended directory.
  5. Delete wp-config.php: Successfully delete wp-config.php from the WordPress root, causing WordPress to lose its database configuration.
  6. Trigger installation wizard: Access the WordPress site in a browser; without wp-config.php, WordPress presents the fresh installation wizard.
  7. Complete site takeover: Supply attacker-controlled database credentials through the installation wizard to gain full administrative control of the WordPress instance (Wordfence, GitHub Advisory).

Indicators of compromise

  • Network: Unexpected HTTP DELETE or POST requests to /wp-json/formgent/responses/attachments from unauthenticated sources; requests containing ../ or URL-encoded path traversal sequences (%2e%2e%2f) in file parameters.
  • Logs: Web server access logs showing requests to the FormGent REST API endpoint from unknown or suspicious IPs without authentication tokens; WordPress debug logs indicating missing or inaccessible wp-config.php.
  • File System: Absence of wp-config.php in the WordPress root directory; unexpected deletion of files within or outside wp-content/uploads/formgent/; presence of a new wp-config.php created after the original was deleted (indicating attacker re-installation).
  • Process/Application: WordPress presenting the installation wizard (/wp-admin/setup-config.php) to visitors, indicating wp-config.php has been removed; unexpected new WordPress admin accounts created post-incident.

Mitigation and workarounds

The vulnerability is patched in FormGent version 1.10.0; users should update immediately from the WordPress plugin repository (WordPress Changeset). As a workaround prior to patching, administrators on Linux servers should manually create the wp-content/uploads/formgent directory with appropriate permissions to prevent path traversal exploitation. Additionally, restricting web server process permissions and implementing WAF rules to block unauthenticated requests to the /wp-json/formgent/responses/attachments endpoint can reduce exposure. Backing up wp-config.php and monitoring for its unexpected deletion is also recommended (Wordfence).

Community reactions

The vulnerability was discovered and reported by Wordfence, which assigned the CVE and published the advisory on August 1, 2026. No significant broader media coverage or notable researcher commentary beyond the initial Wordfence disclosure has been identified at this time (Wordfence).

Additional resources


SourceThis report was generated using AI

Related WordPress vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-3141CRITICAL9.1
  • formgent
NoYesAug 01, 2026
CVE-2026-15414HIGH8.8
  • subscriptions-for-woocommerce
NoYesAug 01, 2026
CVE-2026-15006HIGH7.5
  • bit-integrations
NoYesAug 01, 2026
CVE-2026-7623MEDIUM6.4
  • sureforms
NoYesAug 01, 2026
CVE-2026-15403MEDIUM4.9
  • booking-system
NoNoAug 01, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management