CVE-2026-8365 Details
Description
The Blocksy theme for WordPress is vulnerable to PHP Object Injection leading to Remote Code Execution via the 'blocksy_meta' REST API field and the V200 database migration in versions up to and including 2.1.35. This is due to insufficient input sanitization in the blocksy_sanitize_post_meta_options() function, which only blocks values containing '<' or '>' and does not prevent serialized PHP object strings from being stored in post meta, combined with the SearchReplacer::run_recursively() function unconditionally deserializing all string values via @unserialize() during migration without restricting allowed classes. This makes it possible for authenticated attackers, with contributor-level access and above, to inject a serialized Blocksy\RaiiPattern object into post meta that, when the V200 migration runs on an upgraded site, is deserialized and triggers RaiiPattern::__destruct(), which executes arbitrary PHP callables via call_user_func().
A vulnerability exists in the Blocksy theme for WordPress, specifically in versions through 2.1.35, allowing PHP object injection that could lead to remote code execution. This issue arises from inadequate input sanitization in the 'blocksy_post_meta_options' REST API field. The 'blocksy_sanitize_post_meta_options' function only filters out values containing '<' or '>', failing to prevent serialized PHP object strings from being saved in post metadata. During the V200 database migration, the 'SearchReplacer::run_recursively' function automatically deserializes all string values without class restrictions, enabling authenticated attackers with contributor-level access or higher to inject a serialized 'Blocksy\RaiiPattern' object into the post meta. When the V200 migration is executed on an updated site, this object is deserialized, and its destructor is triggered, executing arbitrary PHP functions via 'call_user_func'.
Users are advised to update the Blocksy theme to version 2.1.42 or later, where this vulnerability has been patched.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jun 9, 2026CISA-ADP
Assessed Jun 9, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-502 | Deserialization of Untrusted Data | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Blocksy | <= 2.1.41 (semver) |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 23, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 9, 2026 | New CVE Received | [email protected] |
Volerion