Skip to main content

Blocksy theme EUVDEUVD-2026-35379

| CVE-2026-8365 HIGH
Deserialization of Untrusted Data (CWE-502)
2026-06-09 Wordfence GHSA-r622-c48h-h6qq
8.8
CVSS 3.1 · Vendor: Wordfence
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Obtain contributor-level WordPress account
  2. Delivery
    Submit crafted serialized RaiiPattern via blocksy_meta REST field
  3. Exploit
    Payload stored in post meta (sanitizer bypassed)
  4. Install
    Admin upgrades Blocksy triggering V200 migration
  5. C2
    SearchReplacer @unserialize() instantiates object
  6. Execute
    RaiiPattern::__destruct calls call_user_func()
  7. Impact
    Arbitrary PHP code execution as web user

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V1 - Encoding and Sanitization Safe deserialization, type allowlists
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires an authenticated WordPress account at contributor level or above on a site running the Blocksy theme version ≤ 2.1.35 with the 'blocksy_meta' REST API field writable to that role; the attacker must additionally wait for (or induce) execution of the V200 database migration, which runs during a theme/database upgrade, to trigger the @unserialize() sink in SearchReplacer::run_recursively(). Exploitation is limited by: the PR:L authentication requirement (anonymous visitors cannot exploit), the need for the V200 migration code path to execute (sites that never upgrade past the pre-V200 state will not deserialize the payload), and the requirement that the Blocksy\RaiiPattern class be loadable in the target's PHP autoload context. No user interaction is required (UI:N) once the prerequisites are met.

Impact

The CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H) scoring 8.8 reflects network-reachable, low-complexity exploitation requiring only low privileges, with no user interaction and full confidentiality/integrity/availability impact - appropriate for a contributor-to-RCE chain on a CMS. EPSS data was not provided and the CVE is not listed in CISA KEV; no public exploit identified at time of analysis. The exploitation is not purely opportunistic: it requires (a) the attacker to obtain at least contributor-level WordPress credentials, and (b) the V200 migration to run, which happens during site upgrades - meaning a sleeper payload can sit dormant until the admin upgrades the theme/database. This makes risk highest for multi-author WordPress sites with permissive registration or weak account hygiene, and lower for single-author sites with locked-down registration. No conflicting signals were observed between CVSS, description, and Wordfence's reporting.

Exploit ScenarioDerived

An attacker registers or compromises a contributor-level WordPress account on a target site running Blocksy ≤ 2.1.35, then uses the REST API to write a crafted serialized Blocksy\RaiiPattern object into the 'blocksy_meta' post meta field of a draft post - the sanitizer accepts it because the payload contains no '<' or '>' characters. When the site administrator subsequently upgrades Blocksy and the V200 migration executes SearchReplacer::run_recursively(), the @unserialize() call instantiates the attacker's object; on tear-down, RaiiPattern::__destruct() invokes call_user_func() with attacker-supplied arguments, yielding arbitrary PHP execution under the web server account. No public exploit identified at time of analysis, but the gadget chain is fully described in the advisory.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.6% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 09, 2026

Authenticated PHP Object Injection in the Blocksy WordPress theme (versions ≤ 2.1.35) allows contributor-level users to escalate to remote code execution by storing a malicious serialized object in post meta that is later deserialized during the V200 database migration. Wordfence-reported flaw chains weak input sanitization in blocksy_sanitize_post_meta_options() with an unconditional @unserialize() call in SearchReplacer::run_recursively(), triggering RaiiPattern::__destruct() to invoke arbitrary callables via call_user_func(). No public exploit identified at time of analysis, but the low-privilege requirement and high impact make this a meaningful priority for sites running upgraded Blocksy installations.

RemediationAI

Upgrade the Blocksy theme to version 2.1.41 or later, where the fixed code paths (db-search-replacer.php, meta-boxes.php, validator.php, and raii.php) are visible at https://themes.trac.wordpress.org/browser/blocksy/2.1.41/. Until the upgrade can be applied, restrict who can author content by auditing all accounts at contributor level and above, disabling new-user self-registration (Settings → General → 'Anyone can register'), and enforcing strong passwords / MFA for editorial accounts - this directly raises the bar for the PR:L precondition, with the trade-off of inconveniencing legitimate contributors. As a stop-gap, defer running the V200 database migration on upgraded sites until the patched theme version is in place, since the deserialization sink only fires during migration; note this means delaying the upgrade itself, which leaves the storage-side sanitization weakness in place. Monitor wp_postmeta for suspicious 'blocksy_meta' values containing serialized object signatures (e.g. 'O:' followed by class names) as a detection control.

Affected VersionsENISA

Blocksy 0 ≤2.1.41

Affected Packages

euvd blocksy no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Blocksy is a popular WordPress theme by CreativeThemesHQ (CPE cpe:2.3:a:creativethemeshq:blocksy). The root cause is CWE-502 (Deserialization of Untrusted Data). Two code paths combine to create the vulnerability: blocksy_sanitize_post_meta_options() in admin/helpers/meta-boxes.php performs only superficial sanitization that rejects values containing '<' or '>' but permits PHP serialized object strings (which use characters like 'O:', ':', '{', '}', '"') to be persisted into the 'blocksy_meta' REST API field. Separately, the database migration utility SearchReplacer::run_recursively() in inc/classes/db-versioning/utils/db-search-replacer.php calls @unserialize() on stored string values without an allowed_classes restriction, instantiating attacker-controlled objects. The Blocksy\RaiiPattern class (inc/classes/raii.php) defines a __destruct() magic method that invokes call_user_func() on an instance-controlled callable, providing a classic POP gadget for arbitrary PHP execution within the WordPress process context.

Know when Blocksy gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (Wordfence) PRIMARY 8.8 HIGH
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Primary rating from Vendor (Wordfence) · only source for this CVE.

CVSS VectorVendor: Wordfence

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

DescriptionCVE.org

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().

Executive ViewAI

Why It Matters

Blocksy WordPress theme versions 2.1.35 and below allow contributor-level users to gain remote code execution; no public exploit identified at time of analysis. Organizations using this theme face elevated risk if contributor accounts are compromised or become malicious, enabling attackers to fully compromise websites and potentially access sensitive data.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Restrict contributor-level user permissions to essential personnel with enforced multi-factor authentication; (2) Implement post meta database monitoring and alerting for unauthorized modifications; (3) Deploy intrusion detection to monitor for suspicious PHP object serialization patterns; (4) Maintain automated daily backups with tested recovery procedures; (5) Segregate affected WordPress instances from critical business systems; (6) Enable comprehensive audit logging for all user account activities.

Threat Intelligence Overview

EPSS Score
0.6%
Top 29% exploitable
Social Media
2
Sightings
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.6%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

45
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Insecure deserialization occurs when an application converts serialized data (a stream of bytes representing an object's state) back into a living object without proper validation.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

CVE-2024-32961 MEDIUM
6.5 Apr 25

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in creativethemeshq B

CVE-2024-24871 MEDIUM
6.5 Feb 08

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in creativethemeshq B

CVE-2024-5439 MEDIUM
6.4 Jun 05

The Blocksy theme for WordPress is vulnerable to Reflected Cross-Site Scripting via the custom_url parameter in all vers

CVE-2024-4943 MEDIUM
6.4 May 21

The Blocksy theme for WordPress is vulnerable to Stored Cross-Site Scripting via the ‘has_field_link_rel’ parameter in a

CVE-2024-3747 MEDIUM
6.4 May 02

The Blocksy theme for WordPress is vulnerable to Stored Cross-Site Scripting via the className parameter in the About Me

CVE-2024-4158 MEDIUM
6.4 May 14

The Blocksy theme for WordPress is vulnerable to Stored Cross-Site Scripting via the ‘tagName’ parameter in versions up

CVE-2024-1767 MEDIUM
6.4 Mar 09

The Blocksy theme for WordPress is vulnerable to Stored Cross-Site Scripting via the plugin's blocks in all versions up

CVE-2024-37469 MEDIUM
5.4 Jan 02

Cross-Site Request Forgery (CSRF) vulnerability in CreativeThemes Blocksy allows Cross Site Request Forgery.0.22. Rated

CVE-2024-11420 MEDIUM
5.4 Dec 05

The Blocksy theme for WordPress is vulnerable to Stored Cross-Site Scripting via the Contact Info Block link parameter i

CVE-2024-31382 MEDIUM
4.3 Apr 15

Cross-Site Request Forgery (CSRF) vulnerability in creativethemeshq Blocksy blocksy.0.22. Rated medium severity (CVSS 4.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy