Gravity Forms ≤ 3.1.0.4 — Unauthenticated Arbitrary File Upload via Hidden File Upload Field (CVE-2026-84434)
Published: 2026-11-25 • Researcher: murrez (PoC repo); 0xd4rk5id3 / EnvoraSec (researcher credited in the upstream README; advisory via Wordfence)
- Severity
- Critical
- CVE
- CVE-2026-84434
- Category
- web
- Affected product
- Gravity Forms plugin for WordPress
- Affected versions
- All versions up to and including 3.1.0.4 (fixed in 3.1.0.5; vendor security release 3.1.1)
- Disclosed
- 2026-11-25
- Patch status
- Patched
Tags
References
Archive entry
intelseclab/poc-archiveOn this page
Metadata
| Field | Value |
|---|---|
| Date Added | 2026-11-25 |
| Last Updated | 2026-09-19 |
| Author / Researcher | murrez (PoC repo); 0xd4rk5id3 / EnvoraSec (researcher credited in the upstream README; advisory via Wordfence) |
| CVE / Advisory | CVE-2026-84434 |
| Category | web |
| Severity | Critical |
| CVSS Score | 9.8 (CVSSv3.x; the worklist/NVD record does not publish a vector string — see references) |
| Status | PoC |
| Tags | arbitrary-file-upload, CWE-434, WordPress, Gravity-Forms, unauthenticated, RCE, hidden-field, upload_file, multipart, webshell |
| Related | N/A |
Affected Target
| Field | Value |
|---|---|
| Software / System | Gravity Forms plugin for WordPress |
| Versions Affected | All versions up to and including 3.1.0.4 (fixed in 3.1.0.5; vendor security release 3.1.1) |
| Language / Platform | PHP / WordPress (any web server: Apache, nginx, LiteSpeed); PoC runs on Python 3.9+ |
| Authentication Required | No |
| Network Access Required | Yes |
Summary
Gravity Forms, a commercial WordPress form plugin, is vulnerable to unauthenticated arbitrary file upload in versions up to and including 3.1.0.4. Validation and persistence are handled by different code paths: a File Upload field whose Visibility is set to Hidden skips extension validation, and a rejected file’s intact upload state is later handed to the upload file handler without being re-checked. An unauthenticated attacker can therefore POST a file of their choosing to any public form that contains such a hidden File Upload field, and the file is written under the plugin’s uploads directory. If the server executes PHP from that directory, the upload becomes remote code execution; otherwise it still allows hosting of arbitrary content on the victim site.
Vulnerability Details
Root Cause
The plugin’s form validation pipeline and its file persistence pipeline disagree about hidden File Upload fields. When a File Upload field is configured with Visibility set to Hidden, the validation stage does not apply the normal extension allow-list to the submitted file. If validation rejects the submission, the uploaded file’s state is not discarded; the still-intact upload state is later passed to the upload_file() function during persistence, where it is processed without repeating the extension check. The result is an unrestricted upload primitive reachable by an unauthenticated visitor to a public form.
Attack Vector
An unauthenticated attacker identifies a public Gravity Form that renders a File Upload field with Visibility set to Hidden, then submits a multipart POST to the page hosting the form (or to /wp-admin/admin-ajax.php for AJAX-enabled forms) containing the usual Gravity Forms hidden fields (gform_submit, is_submit_{form_id}), plausible values for visible required fields, and an attacker-controlled file part named after the hidden input (input_{form_id}_{field_id}). The submitted filename and extension are attacker-controlled, for example a PHP file. The upstream PoC automates discovery of the version, form, and hidden file field, then performs the upload.
Impact
Arbitrary file write to a web-accessible directory as the WordPress web user. Where the uploads path permits script execution (for example nginx configurations that do not inherit the plugin’s .htaccess PHP-execution block, an alternate document root, or permissive handler mapping), this yields remote code execution and full site compromise. Even where execution is blocked, an attacker can host arbitrary files, phishing content, or malware on the victim domain, and can overwrite or fill the uploads directory. No authentication is required.
Environment / Lab Setup
OS: Linux (any) or a disposable container
Target: WordPress with Gravity Forms <= 3.1.0.4 and a public form
containing a File Upload field with Visibility = Hidden
Attacker: Any Linux/macOS host with Python 3.9+
Tools: Python 3, requests, urllib3, curl (optional)Setup Steps
| |
Proof of Concept
Step-by-Step Reproduction
Check the target — detect Gravity Forms and read the plugin version from the asset
ver=parameter, the plugin header, or the changelog.Shell script1python3 poc.py -u https://target.example --mode checkRead the candidate metadata — a vulnerable version plus a public form with a hidden File Upload field yields
status: candidateand thebest_formdetails (form_id,page_url,file_field). Mass check mode also writes these tocandidates.jsonl, which exploit mode can consume directly.Shell script1 2python3 poc.py -u https://target.example --mode check \ --form-id 3 --page-url /contact/ --file-field 7Upload a benign probe — in exploit mode the default payload is an in-memory
.txtmarker; the script submits it on the hidden input and looks for a confirmation message or an upload URL in the response.Shell script1 2python3 poc.py -u https://target.example --mode exploit \ --form-id 3 --page-url /contact/ --file-field 7Optional: supply your own file —
--payload-fileuploads a local file of your choosing (for example a PHP file on an authorized test target); the script sends the file with a MIME type derived from its extension and does not ship a webshell.Shell script1 2 3python3 poc.py -u https://target.example --mode exploit \ --form-id 3 --page-url /contact/ --file-field 7 \ --payload-file probe.txtVerify — a successful upload returns
exploited: truewith either an upload URL hint underwp-content/uploads/gravity_forms/or a success confirmation; when a URL hint is present the script re-fetches it and checks for the marker.
Exploit Code
See
poc.py(about 1.1k lines) in this folder; upstream usage is inupstream-README.md.
The upload request is a standard Gravity Forms multipart submission:
| |
Expected Output
| |
A non-vulnerable or non-matching target returns a diagnostic status such as patched, forms_no_hidden_upload, or plugin_no_public_forms with exploited: false.
Detection & Indicators of Compromise
- Multipart POSTs to public form pages or
/wp-admin/admin-ajax.phpwhere the file part name matches a hiddeninput_{form}_{field}and the submitted filename has a script extension (.php,.phtml,.phar). - New files under
wp-content/uploads/gravity_forms/with unexpected extensions, non-image MIME content, or randomized names, especially clustered with form submissions from the same source. - Gravity Forms validation errors followed by a successful persistence/confirmation for the same submission (the validation bypass signature).
- Requests that include
gform_submitandis_submit_{id}but reference a file field that is not visible in the rendered form HTML. - WAF alerts for upload attempts carrying
<?phpin the request body; webserver errors from executing uploaded files.
Example access-log pattern:
POST /contact/ HTTP/1.1 200
Content-Type: multipart/form-data; boundary=...
... name="input_3_7"; filename="probe.php" ... <?php ... ?>SIEM / IDS rule (example):
| |
Remediation
| Action | Detail |
|---|---|
| Patch | Upgrade Gravity Forms to 3.1.0.5 or later (vendor security release 3.1.1 or later); update via the WordPress plugin dashboard or your managed plugin pipeline. |
| Workaround | Remove hidden File Upload fields from public forms or disable the file upload field type on forms that anonymous visitors can reach, until the patch is applied. |
| Config Hardening | Block PHP execution under wp-content/uploads/ at the web-server level (nginx location ~* /uploads/.*\.php$ { deny all; } and equivalent), keep the plugin’s .htaccess protections in place, deploy a WAF rule for script uploads, and restrict file permissions for the web user. |
References
Notes
Auto-ingested from https://github.com/murrez/CVE-2026-84434 on 2026-11-25.
Review verdict: ingested as a PoC. The repository is labeled a “PoC scanner and exploit”; its check mode is reconnaissance, but it also contains a real exploit path. submission_success() and submit_upload() perform the actual unauthenticated multipart upload to the hidden field and confirm the stored file, so this is not a detector-only project. It is a limited PoC, not a full weaponized RCE chain: RCE depends on the server executing PHP from wp-content/uploads/gravity_forms/, the targeted form must expose a visible-in-HTML hidden File Upload field, and the default exploit uploads a harmless .txt marker rather than a webshell (build_marker_payload() exists but is unused by the CLI; --payload-file lets an operator supply their own file). The repository is MIT licensed (see upstream-LICENSE); files are archived with attribution for authorized research only. The exploit was not executed during ingestion; only syntax was validated. Run only against systems you own or have written authorization to test.
| |