Gravity Forms <= 2.9.20 - Unauthenticated Arbitrary File Upload via 'copy_post_image'
Strategic Overview
- Status
- Patched in 2.9.21
- Affected Plugin
- Gravity Forms
- Affected Version
<= 2.9.20- CVSS
- 9.8Critical
- Weakness type
- CWE-434 · Unrestricted Upload of File with Dangerous Type
- CVE
CVE-2025-12352
At a glance
CVE-2025-12352 is a critical-severity Unrestricted Upload of File with Dangerous Type vulnerability in the Gravity Forms WordPress plugin, affecting versions <= 2.9.20. It carries a CVSS score of 9.8 (reachable over the network; low attack complexity; high confidentiality, integrity, availability impact). Exploitation requires no authentication. The issue is fixed in version 2.9.21; sites on affected versions should update now. Disclosed November 2025, reported by Talal Nasraddeen.
Vulnerability Overview
The Gravity Forms plugin for WordPress is vulnerable to arbitrary file uploads due to missing file type validation in the copy_post_image() function in all versions up to, and including, 2.9.20. This makes it possible for unauthenticated attackers to upload arbitrary files on the affected site's server which may make remote code execution possible. This only impacts sites that have allow_url_fopen set to `On`, the post creation form enabled along with a file upload field for the post
Technical Analysis
The vector marks this flaw as remotely reachable over the network, with low attack complexity — no special timing or configuration is needed, and no privileges on the target site, and no interaction from a victim user. A successful exploit has high impact on confidentiality, integrity, availability — full site compromise territory.
CWE-434: Unrestricted Upload of File with Dangerous Type
Gravity Forms <= 2.9.20 carries this weakness at copy_post_image(), and reaching it takes no account at all. An unrestricted file upload lets a caller store a file whose type or destination the application does not properly constrain.
If an uploaded file lands anywhere the server will execute, the flaw becomes remote code execution and the site should be treated as fully compromised. For Gravity Forms the fix is 2.9.21: builds <= 2.9.20 are affected, anything from 2.9.21 onward is not.
Remediation
Update to version 2.9.21, or a newer patched version
How does WordSec protect against this?
Requests carrying this pattern arrive without a session, so nothing upstream of the firewall gets a chance to reject them: WordSec's web application firewall inspects request payloads before WordPress loads them. Classes like this one can leave something behind, so the staged malware scanner is the second half: it looks for dropped files and modified code rather than for the request that created them. None of that substitutes for the fix: Gravity Forms 2.9.21 closes this, and updating the plugin is the step that ends it.
- Firewall
- Scanner
- Login Security
External References
Related records
Same weakness class
Other vulnerabilities in Gravity Forms
- 9.8CVE-2023-28782: Gravity Forms <= 2.7.3 PHP Object Injection
CVE-2023-28782 - 9.1CVE-2026-48866: Gravity Forms <= 2.10.0.1 Arbitrary File Deletion
CVE-2026-48866 - 9.1CVE-2015-2260: Gravityforms <= 1.9.3.5 SQL Injection
CVE-2015-2260 - 7.5CVE-2026-12997: Gravity Forms <= 2.10.4 Arbitrary File Read
CVE-2026-12997 - 7.5CVE-2020-13764: Gravityforms <= 2.4.8 Information Exposure
CVE-2020-13764 - 7.2CVE-2026-16649: Gravity Forms <= 2.10.5 Stored Cross-Site Scripting
CVE-2026-16649 - 7.2CVE-2026-5113: Gravity Forms <= 2.9.30 Stored Cross-Site Scripting
CVE-2026-5113 - 7.2CVE-2026-5112: Gravity Forms <= 2.10.0 Stored Cross-Site Scripting
CVE-2026-5112
Vulnerability data © Defiant, Inc., provided under the Wordfence Intelligence T&C