CVE-2025-12352

Gravity Forms <= 2.9.20 - Unauthenticated Arbitrary File Upload via 'copy_post_image'

Published Nov 7, 2025 CVSS 3.1 · 9.8 Critical EPSS 1.4% KEV · Not listed
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

Analysis

AI-generated

Technical impact

The plugin omits file‑type checks in copy_post_image(), letting any file be stored on the server. An unauthenticated attacker can then place executable code or other malicious files, creating a pathway to remote code execution. The flaw is a classic file‑upload vulnerability (CWE‑434).

Affected Systems

Any WordPress site running Gravity Forms version 2.9.20 or earlier is affected. The risk materializes only when allow_url_fopen is enabled, the public post‑creation form is active, and that form contains a file‑upload field. Sites that have disabled the form or turned off allow_url_fopen are not directly exploitable.

Risk and Exploitability

The severity is high with a CVSS score of 9.8, but the EPSS score of <1% indicates that exploitation is presently unlikely on a large scale, and the vulnerability is not listed in the CISA KEV catalog. Because the flaw is user‑controlled and requires no authentication, the attack vector is likely a simple HTTP request to the front‑end form, potentially accompanied by a crafted URL that injects a malicious file. Enforcing proper file‑type validation would close the window for malicious uploads.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest Gravity Forms release (2.9.21 or later) to remove the vulnerable function.
  • Disable allow_url_fopen in the PHP configuration or set allow_url_fopen=Off for the WordPress environment.
  • Remove or lock down any public post‑creation forms that include file‑upload fields until the patch is applied.
  • Implement server‑side file‑type checks or use a security plugin to restrict uploads to trusted MIME types.

Generated by OpenCVE AI on April 22, 2026 at 12:02 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Gravityforms
Gravityforms gravity Forms
Wordpress
Wordpress wordpress
Vendors & Products Gravityforms
Gravityforms gravity Forms
Wordpress
Wordpress wordpress
Type Values Removed Values Added
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
Title Gravity Forms <= 2.9.20 - Unauthenticated Arbitrary File Upload via 'copy_post_image'
Weaknesses CWE-434
References
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

Weaknesses
  • CWE-434

    Unrestricted Upload of File with Dangerous Type

Sources

Status
PUBLISHED
Assigner
Wordfence
Published
Updated
Apr 8, 2026, 4:48 PM
Reserved
Oct 27, 2025, 3:06 PM
Status
Deferred
Published
Nov 7, 2025, 5:15 AM
Modified
Oct 19, 2026, 1:10 PM