Blocksy <= 2.1.41 - Authenticated (Contributor+) PHP Object Injection via Deserialization of Untrusted Data via 'blocksy_meta' REST API Field
Strategic Overview
- Status
- Patched in 2.1.42
- Affected Theme
- Blocksy
- Affected Version
<= 2.1.41- CVSS
- 8.8High
- Weakness type
- CWE-502 · Deserialization of Untrusted Data
- CVE
CVE-2026-8365
At a glance
CVE-2026-8365 is a high-severity Deserialization of Untrusted Data vulnerability in the Blocksy WordPress theme, affecting versions <= 2.1.41. It carries a CVSS score of 8.8 (reachable over the network; low attack complexity; high confidentiality, integrity, availability impact). Exploitation requires an authenticated account at Contributor level or above. The issue is fixed in version 2.1.42; sites on affected versions should update now. Disclosed June 2026, reported by Quốc Huy (jtwings).
Vulnerability Overview
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().
Technical Analysis
The vector marks this flaw as remotely reachable over the network, with low attack complexity — no special timing or configuration is needed, and no interaction from a victim user. A successful exploit has high impact on confidentiality, integrity, availability — full site compromise territory.
CWE-502: Deserialization of Untrusted Data
Blocksy <= 2.1.41 carries this weakness at blocksy_meta, and reaching it takes an account at Contributor level or above. Deserialization of untrusted data means the application reconstructs objects from input a caller controls, letting the attacker choose which classes get instantiated and what their properties hold.
A workable chain turns deserialization into file writes, deletions or code execution, depending on what the loaded classes do in their magic methods. For Blocksy the fix is 2.1.42: builds <= 2.1.41 are affected, anything from 2.1.42 onward is not.
Remediation
Update to version 2.1.42, or a newer patched version
How does WordSec protect against this?
An attacker needs Contributor access first, so the firewall sees the attempt as traffic from a logged-in account: WordSec's web application firewall inspects request payloads before WordPress loads them. Classes like this one can leave something behind, so the staged malware scanner is the second half: it looks for dropped files and modified code rather than for the request that created them. None of that substitutes for the fix: Blocksy 2.1.42 closes this, and updating the theme is the step that ends it.
- Firewall
- Scanner
- Alerts
External References
Related records
Other vulnerabilities in Blocksy
- 6.4CVE-2026-2583: Blocksy <= 2.1.30 Stored Cross-Site Scripting
CVE-2026-2583 - 6.4CVE-2024-11420: Blocksy <= 2.0.77 Stored Cross-Site Scripting
CVE-2024-11420 - 6.4CVE-2024-5439: Blocksy <= 2.0.50 Stored Cross-Site Scripting
CVE-2024-5439 - 6.4CVE-2024-4943: Blocksy <= 2.0.46 Stored Cross-Site Scripting
CVE-2024-4943 - 6.4CVE-2024-4158: Blocksy <= 2.0.42 Stored Cross-Site Scripting
CVE-2024-4158 - 6.4CVE-2024-3747: Blocksy <= 2.0.39 Stored Cross-Site Scripting
CVE-2024-3747 - 6.4CVE-2024-32961: Blocksy <= 2.0.33 Stored Cross-Site Scripting
CVE-2024-32961 - 6.4CVE-2024-1767: Blocksy <= 2.0.26 Stored Cross-Site Scripting
CVE-2024-1767
Vulnerability data © Defiant, Inc., provided under the Wordfence Intelligence T&C