CVE-2025-12974: Gravity Forms <= 2.9.21.1 - Unauthenticated Arbitrary File Upload via Legacy Chunked Upload
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.
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2025-12974?
CVE-2025-12974 is considered a high-severity vulnerability due to the potential for arbitrary file uploads.
How do I fix CVE-2025-12974?
To fix CVE-2025-12974, update the Gravity Forms plugin to the latest version that addresses the file type validation issue.
Which versions are affected by CVE-2025-12974?
CVE-2025-12974 affects all versions of Gravity Forms up to and including 2.9.21.1.
What types of files can be uploaded due to CVE-2025-12974?
Due to CVE-2025-12974, attackers can exploit the vulnerability to upload .phar files, among other unvalidated file types.
Is the Gravity Forms plugin safe to use in its affected versions?
Using the affected versions of the Gravity Forms plugin poses significant security risks, and it is recommended to update immediately.