CVE-2026-103039
published critical CVSS 3.1 · 9.8Gravity Forms <= 3.1.2 - Unauthenticated PHP Object Injection via Post Custom Field
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Gravity Forms | — | Gravity Forms0 through 3.1.2 · Other versions: unaffected | Affected | Not stated | Wordfence |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 9.8 / 10
- Severity
- critical
- Provider
- Wordfence · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Gravity Forms | Gravity Forms | 0 through 3.1.2 (affected · semver)Default: unaffected | Wordfence · cna |
Weaknesses
1- CWE-502 CWE-502 Deserialization of Untrusted Data
References
2Provider assertions
2Wordfence · cna
Gravity Forms <= 3.1.2 - Unauthenticated PHP Object Injection via Post Custom Field
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 7677ea8e39d262668930c0cd2f98975aa692d47ddbcf9e7632ba9189863a3d32
- Ingested
- 30 Oct 2026, 16:02:46 UTC
- Source record
- Official CVE record