CVE-2025-12352
Gravity Forms <= 2.9.20 - Unauthenticated Arbitrary File Upload via 'copy_post_image'
Description
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
In plain language
AI Act nowGravity Forms (up to 2.9.20) lets an attacker upload files to your WordPress server without logging in, which can be a serious problem if your site has the required post-creation file upload setup—this is urgent for affected sites.
In Gravity Forms <= 2.9.20, missing file type validation in copy_post_image() enables unauthenticated arbitrary file upload over the network; with allow_url_fopen enabled and a post-creation form that includes a file upload field, this can lead to server compromise.
What to do now
- Check your WordPress site for the installed Gravity Forms version (confirm whether it is 2.9.20 or earlier).
- Check whether “post creation” is enabled in Gravity Forms and that the relevant form includes a file upload field.
- Check your PHP setting allow_url_fopen; if it is “On”, your risk is higher for this issue.
- If all of the above are true, disable the affected Gravity Forms post creation/file-upload capability immediately (temporarily remove the file upload field and/or disable post creation).
- Contact your Gravity Forms/WordPress vendor or IT team to obtain an official fix for CVE-2025-12352; this report does not include a known fixed version you can upgrade to right now.
- If you cannot quickly remediate, restrict access to the affected upload functionality (e.g., network/WAF rules or access controls) until the plugin can be fixed.
CVSS Vector Breakdown
AV:NAttack VectorAC:LAttack ComplexityPR:NPrivileges RequiredUI:NUser InteractionS:UScopeC:HConfidentialityI:HIntegrityA:HAvailabilityWeaknesses
Affected Products
Exploitability
Attack Graph
Click technique nodes for MITRE ATT&CK details · drag to pan · Ctrl/⌘ + scroll to zoom, or go fullscreen.
MITRE ATT&CK
3 techniquesReferences
Unlock Complete Vulnerability Intelligence
Get the full picture for CVE-2025-12352 and every CVE in our database. Create a free account — no credit card required.
Create Free Account