CVE-2025-12974CWE-434unrestricted-file-upload

CVE-2025-12974

High · published November 18, 2025

CVSS v3.1
8.1
EPSS
1%
Percentile
53.3
In the wild
Unconfirmed
What it is

⚡ A missing file type validation in Gravity Forms could let anyone upload malicious .phar files directly to your server! Think of this like a restaurant that allows any customer to bring in their own ingredients without checking what’s in them — a recipe for disaster if someone walks in with a box of spoiled food! If an attacker finds the upload path, they could upload a .phar file that allows them to execute any code on your server. This means they could potentially take control of your site, manipulate data, or even wipe everything clean — devastating consequences!

Put simply

Think of this like a restaurant that allows any customer to bring in their own ingredients without checking what’s in them — a recipe for disaster if someone walks in with a box of spoiled food! This vulnerability arises from the Gravity Forms plugin's failure to properly validate file types during uploads, specifically missing .phar files from its blacklist. If the web server treats these uploaded .phar files as PHP scripts, attackers could execute arbitrary code remotely.

What to do

If an attacker finds the upload path, they could upload a .phar file that allows them to execute any code on your server. This means they could potentially take control of your site, manipulate data, or even wipe everything clean — devastating consequences! To secure your site, immediately update Gravity Forms to the latest version, which addresses this vulnerability. Additionally, implement strict file type validation to block any unauthorized uploads, and consider restricting upload paths to trusted directories only. You've got this! Follow these steps, and you’ll have your Gravity Forms locked down in no time! 🛡️

The record
Technical detail
CVSS v3.1
8.1 · HIGH
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00717 · 53.3th percentile
Weakness
CWE-434 · Unrestricted Upload of File with Dangerous Type
Published
2025-11-18T09:15Z
References (4)
EPSS history
Timeline
  • 18 NOV 03:27Z
    Gravity Forms <= 2.9.21.1 - Unauthenticated Arbitrary File Upload via Legacy Chunked Upload
    cvelistv5