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

Critical 9.8 Published Updated

Unauthenticated attackers can upload arbitrary files leading to remote code execution on sites with specific configuration settings enabled.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2025-12352?

CVE-2025-12352 is a critical vulnerability in Gravity Forms, published on 7 Nov 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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

Weakness: CWE-434

Which versions are affected by CVE-2025-12352?

How do I fix CVE-2025-12352?

No fix has been published for CVE-2025-12352 yet. Limit exposure of the affected software until one is available.

Is CVE-2025-12352 being exploited?

There is no known exploitation of CVE-2025-12352 in the wild and no public exploit code.

Sources

Also known as GHSA-8ff8-c7j7-c996.

Is CVE-2025-12352 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free