Arbitrary file upload in Gravity Forms

CVE-2025-12974

The Gravity Forms plugin for WordPress is vulnerable to arbitrary file uploads due to missing file type validation in the legacy chunked upload mechanism in all versions up to, and including, 2.9.21.1. This is due to the extension blacklist not including .phar files, which can be uploaded through the chunked upload mechanism. This makes it possible for unauthenticated attackers to upload executable .phar files and achieve remote code execution on the server, granted they can discover or enumerate the upload path. In order for an attacker to achieve RCE, the web server needs to be set up to process .phar file as PHP via file handler mapping or similar.

Vulnerability class: Unrestricted File Upload

EPSS: 0.007 (48.9th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 8.1 (High). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H.

Affected products

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2025-12974?
CVE-2025-12974 is a high-severity vulnerability in Gravity Forms, classified under Unrestricted Upload of File with Dangerous Type. CVSS score: 8.1/10. Published 2025-11-18.
How severe is CVE-2025-12974?
High severity. CVSS v3 base score is 8.1 out of 10.