Gravity Forms <= 3.1.2 - Unauthenticated PHP Object Injection via Post Custom Field

9.8
Deserialization of Untrusted Data
CVE CVE-2026-103039
CVSS 9.8 (Critical)
Publicly Published October 29, 2026
Last Updated October 30, 2026
Researchers Tin Pham (TF1T)
Hao Ngo
Trong Pham

Description

The Gravity Forms plugin for WordPress is vulnerable to PHP Object Injection in all versions up to, and including, 3.1.2 via a Post Custom Field whose input type is List. This is due to GFFormsModel::create_post() passing the submitted value to WordPress' unrestricted global maybe_unserialize() rather than the plugin's own hardened GFCommon::maybe_unserialize(), which was added in 3.1.1 and passes allowed_classes => false precisely to prevent object instantiation. Where the field has a content template enabled, the submitted row reaches that call verbatim. This makes it possible for unauthenticated attackers to inject a PHP object into post meta. No PHP Object Injection gadget chain is present in the plugin itself; however, if a gadget chain is present via an additional plugin or theme, it could allow the attacker to perform actions such as remote code execution. Where the custom field is mapped to the protected _wp_page_template meta key, WordPress itself supplies the chain: validate_file() accepts non-scalars, WP_Theme::__toString() then resolves an attacker-controlled path, and on hosts with a readable PEAR install and register_argc_argv enabled this yields remote code execution.

References

Share

Vulnerability Details for Gravity Forms

Software Type Plugin
Software Slug gravityforms
Patched? Yes
Remediation Update to version 3.1.3, or a newer patched version
Affected Version
  • <= 3.1.2
Patched Version
  • 3.1.3

Recent vulnerabilities in Gravity Forms

# Title CVE ID CVSS Researchers Date
1 Gravity Forms <= 3.1.1 - Unauthenticated Stored Cross-Site Scripting via Post Excerpt / Post Custom Field / Rich-Text Paragraph Field Values CVE-2026-90437 7.2 daroo October 29, 2026
2 Gravity Forms <= 3.1.2 - Unauthenticated Stored Cross-Site Scripting via List Field CVE-2026-97645 7.2 Supakiad S. (m3ez) October 29, 2026
3 Gravity Forms < 3.1.1 - Unauthenticated PHP Object Injection CVE-2026-97296 8.1 0xd4rk5id3 October 14, 2026
4 Gravity Forms <= 3.1.0.4 - Unauthenticated Arbitrary File Upload via Hidden File Upload Field CVE-2026-84434 9.8 0xd4rk5id3 September 18, 2026
5 Gravity Forms <= 2.10.5 - Unauthenticated Stored Cross-Site Scripting via Post Body Field Value CVE-2026-16649 7.2 daroo September 4, 2026
6 Gravity Forms <= 3.0.2 - Unauthenticated Arbitrary File Upload via State/Chunk Hash Confusion CVE-2026-19513 8.1 Alex Thomas, Wordfence Argus September 1, 2026
7 Gravity Forms <= 2.10.4 - Unauthenticated Arbitrary File Read via 'gform_uploaded_files' Parameter CVE-2026-12997 7.5 daroo July 15, 2026
8 Gravity Forms <= 2.10.0.1 - Unauthenticated Arbitrary File Deletion CVE-2026-48866 9.1 daroo June 1, 2026
9 Gravity Forms <= 2.9.30 - Unauthenticated Stored Cross-Site Scripting via Consent Field Hidden Input CVE-2026-5113 7.2 Huynh Pham Thanh Luc May 1, 2026
10 Gravity Forms <= 2.10.0 - Unauthenticated Stored Cross-Site Scripting via Single Product Field Inside Repeater CVE-2026-5110 7.2 Huynh Pham Thanh Luc May 1, 2026

Did you know Wordfence Intelligence provides free personal and commercial API access to our comprehensive WordPress vulnerability database, along with a free webhook integration to stay on top of the latest vulnerabilities added and updated in the database? Get started today!

Learn more

Want to get notified of the latest vulnerabilities that may affect your WordPress site?
Install Wordfence on your site today to get notified immediately if your site is affected by a vulnerability that has been added to our database.

Get Wordfence

The Wordfence Intelligence WordPress vulnerability database is completely free to access and query via API. Please review the documentation on how to access and consume the vulnerability data via API.

Documentation