CVE-2026-57724 Overview
CVE-2026-57724 is a PHP Object Injection vulnerability in the Themeum Kirki plugin for WordPress. The flaw stems from insecure deserialization of untrusted data [CWE-502] and affects all versions of Kirki up to and including 6.0.12. Attackers can send crafted serialized payloads over the network without authentication or user interaction, triggering object instantiation that can lead to arbitrary code execution, data tampering, or full site compromise when suitable PHP gadget chains are present in the WordPress runtime.
Critical Impact
Unauthenticated attackers can deliver serialized PHP objects to sites running Kirki <= 6.0.12, enabling object injection that may result in remote code execution and full site takeover.
Affected Products
- Themeum Kirki plugin for WordPress, versions up to and including 6.0.12
- WordPress sites bundling the Kirki Customizer Framework via themes
- Any deployment exposing Kirki endpoints to network requests
Discovery Timeline
- 2026-07-13 - CVE-2026-57724 published to NVD
- 2026-07-13 - Last updated in NVD database
Technical Details for CVE-2026-57724
Vulnerability Analysis
The Kirki Customizer Framework simplifies theme option management for WordPress developers. The vulnerability arises when Kirki passes untrusted input into a PHP deserialization routine such as unserialize() without validating the source or restricting acceptable classes. When an attacker supplies a crafted serialized string, PHP instantiates objects of arbitrary classes loaded in the current process and invokes magic methods including __wakeup, __destruct, and __toString.
WordPress cores, themes, and other active plugins commonly expose gadget chains that convert this object instantiation into file writes, SQL execution, or command execution. Because Kirki is widely deployed across theme ecosystems, the attack surface extends to any front-end or admin route that reaches the vulnerable deserialization sink.
Root Cause
The root cause is deserialization of untrusted data without a safe alternative such as json_decode() or unserialize() with an explicit allowed_classes => false option. The plugin trusts serialized input flowing through customizer options or request parameters, violating secure deserialization practices defined in [CWE-502].
Attack Vector
Exploitation occurs over the network without prior authentication or user interaction. An attacker submits a serialized PHP payload to an endpoint handled by Kirki. The vulnerable code path deserializes the payload, instantiating attacker-controlled objects that trigger gadget chains within loaded PHP classes. Successful exploitation can escalate to arbitrary code execution under the web server user.
No public proof-of-concept exploit is currently listed for this CVE. Refer to the Patchstack Vulnerability Report for additional technical context.
Detection Methods for CVE-2026-57724
Indicators of Compromise
- HTTP requests containing serialized PHP markers such as O:, a:, or s: inside Kirki-related parameters or cookies
- Unexpected PHP files or webshells created under wp-content/uploads/ or theme directories
- Outbound connections from the WordPress host to unfamiliar command-and-control infrastructure
- New administrative WordPress users or modified wp_options entries following suspicious requests
Detection Strategies
- Inspect WordPress and web server logs for POST or GET requests targeting Kirki endpoints with serialized object payloads
- Deploy WAF rules that flag PHP serialization patterns like O:\d+:" in request bodies and query strings
- Enable PHP error logging to surface __wakeup, __destruct, or class autoload errors triggered by malformed objects
Monitoring Recommendations
- Continuously monitor plugin file integrity for Kirki and adjacent theme files
- Alert on process spawning from PHP-FPM or Apache workers, such as sh, bash, or curl invocations
- Track outbound network traffic from WordPress hosts and baseline expected destinations
How to Mitigate CVE-2026-57724
Immediate Actions Required
- Update Kirki to a fixed release above 6.0.12 as soon as the vendor publishes a patched version
- Audit installed themes to confirm whether they bundle a vulnerable copy of the Kirki framework
- Restrict administrative and customizer endpoints to trusted IP ranges until patching is complete
- Rotate WordPress secrets, API keys, and administrator credentials if exploitation is suspected
Patch Information
At the time of publication, review the Patchstack Vulnerability Report for the latest fixed version guidance. Sites running Kirki <= 6.0.12 remain exposed until upgraded.
Workarounds
- Disable the Kirki plugin on sites that cannot be immediately updated
- Deploy virtual patching via a web application firewall to block PHP serialization payloads
- Remove or replace themes that bundle a vulnerable Kirki version with alternatives that use safe configuration handling
# WAF rule concept: block requests containing PHP serialized objects
# ModSecurity example
SecRule ARGS|ARGS_NAMES|REQUEST_COOKIES|REQUEST_BODY "@rx O:[0-9]+:\"[a-zA-Z_\\\\]+\"" \
"id:1057724,phase:2,deny,status:403,log,msg:'Possible PHP Object Injection targeting Kirki (CVE-2026-57724)'"
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

