CVE-2026-8365
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedThe 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 summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceThe Blocksy theme for WordPress versions up to 2.1.35 have a PHP Object Injection vulnerability. The blocksy_sanitize_post_meta_options() function only filters values containing '<' or '>' characters, failing to block serialized PHP objects. Combined with the SearchReplacer::run_recursively() function that unconditionally deserializes strings via @unserialize() without restricting allowed classes, this allows authenticated attackers with contributor-level access to inject a serialized Blocksy\RaiiPattern object into post meta. When the V200 migration runs, this object is deserialized, triggering RaiiPattern::__destruct() which executes arbitrary PHP callables via call_user_func().
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- Low
- Privileges
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Identify Blocksy theme versionCheck the theme's style.css file in wp-content/themes/blocksy/ for the 'Version:' header, or query via WordPress REST API at /wp-json/wp/v2/themes?status=activeAffected if Version is 2.1.35 or lower
-
Verify blocksy_meta REST API endpoint accessibilityTest access to the /wp-json/blocksy/v1/meta endpoint using a contributor-level user account credentials via POST requestAffected if Endpoint returns 200 OK and accepts post meta data for contributor-level authentication
-
Confirm database migration V200 statusQuery wp_options table for a setting named 'blocksy_migration_version' or similar, or inspect wp_postmeta table for any meta_key starting with 'blocksy_' containing serialized PHP data (look for 'O:' or 'C:' patterns)Affected if Migration version is below V200 or serialized objects exist in blocksy post meta fields
-
Check for Blocksy RaiiPattern objects in post metaSearch wp_postmeta for any meta_value containing the string 'Blocksy\RaiiPattern' or examine serialized data patterns (O:... or C:... with 'RaiiPattern' class name)Affected if Serialized Blocksy\RaiiPattern objects are present in any blocksy_ prefixed post meta entries
User is affected if Blocksy theme version is 2.1.35 or lower AND contributor-level users have access to the blocksy_meta REST API endpoint AND the V200 migration has processed serialized data in post meta fields.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scopedUpgrade Blocksy theme to version 2.1.36 or later which implements proper input sanitization and restricts unserialize() to allowed classes. If immediate upgrade is not possible, disable contributor-level API access and monitor for suspicious post meta entries.
Latest stable release of Blocksy theme (check themes.trac.wordpress.org for the most current version)
- Check the currently installed Blocksy theme version in WordPress under Appearance > Themes
- Visit the official Blocksy theme page or WordPress theme repository to identify the latest stable release
- Update the Blocksy theme to the latest available version
- After updating, verify the site still functions correctly and review theme settings
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation3.0 h
- Implementation6.0 h
- Testing3.0 h
- Review / QA2.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $3,984.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2026-8365 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sources- themes.trac.wordpress.org
- themes.trac.wordpress.org
- themes.trac.wordpress.org
- themes.trac.wordpress.org
- themes.trac.wordpress.org
- themes.trac.wordpress.org
- themes.trac.wordpress.org
- themes.trac.wordpress.org
- themes.trac.wordpress.org
- themes.trac.wordpress.org
- themes.trac.wordpress.org
- themes.trac.wordpress.org
- www.wordfence.com
- nvd.nist.gov
Practitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2026-8365 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data