---
title: "The WordPress Chain Massacre"
description: "wp2root extends AssetNote's wp2shell pre-auth WordPress RCE from constrained PHP execution to native code execution and Linux root."
url: "https://swe.quest/articles/the-wordpress-chain-massacre-f4c4d6206cb6b273"
canonical: "https://blog.calif.io/p/the-wordpress-chain-massacre"
source: "Calif"
published: "2026-08-05"
difficulty: "hard"
kind: "Deep dive"
reading_minutes: 8
tags: ["vulnerability-research","memory-safety","php","linux"]
---

# The WordPress Chain Massacre

A post on [Calif](https://swe.quest/sources/calif.md), published 2026-08-05, 8 min read, Deep dive. Original: [https://blog.calif.io/p/the-wordpress-chain-massacre](https://blog.calif.io/p/the-wordpress-chain-massacre)

## Summary

wp2root extends AssetNote's wp2shell pre-auth WordPress RCE from constrained PHP execution to native code execution and Linux root. It exploits a legacy PHP Serializable recursive-unserialize use-after-free for arbitrary read, builds a self-resolving ROP chain, loads a helper via memfd, and uses the Copy Fail page-cache overwrite of setuid /usr/bin/su for a fileless root transition. The chain is designed to survive hardened hosts with disable\_functions and read-only filesystems, and the authors say Codex helped produce it in under an hour.

Written by swe.quest, not by the author.

**Difficulty:** Hard: written for specialists in the field

## Topics

- [Vulnerability research](https://swe.quest/tags/vulnerability-research.md) (Security)
- [Memory safety](https://swe.quest/tags/memory-safety.md) (Security)
- [PHP](https://swe.quest/tags/php.md) (Languages)
- [Linux](https://swe.quest/tags/linux.md) (Infrastructure)

## Prerequisites

- PHP internals and zvals ([easy posts on PHP](https://swe.quest/tags/php.md?difficulty=easy))
- use-after-free exploitation ([easy posts on Vulnerability research](https://swe.quest/tags/vulnerability-research.md?difficulty=easy))
- ROP chains
- Linux privilege escalation ([easy posts on Linux](https://swe.quest/tags/linux.md?difficulty=easy))

## Keywords

WordPress, wp2shell, wp2root, PHP, Serializable, Copy Fail, ROP, Codex

## Related posts

- [php2shell: patching PHP is easy, finding it is the hard part](https://swe.quest/articles/php2shell-patching-php-is-easy-finding-it-is-the-hard-part-9a45e6f935b2d2f4.md): Sourcegraph · 2026-10-21 · Medium · 5 min read · PHP, Vulnerability research, Supply chain security, Incidents & postmortems, Memory safety
  PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35 fix two unauthenticated RCE memory-safety bugs (CVE-2026-109618/109619, dubbed php2shell) in the request lifecycle, reachable on mod\_php via a crafted multipart POST before application code runs.
- [How Cloudflare WAF helps protect against phpAfterShell and other critical PHP flaws](https://swe.quest/articles/how-cloudflare-waf-helps-protect-against-phpaftershell-and-other-critical-php-3843ce810931b50e.md): Cloudflare · 2026-11-20 · Medium · 9 min read · PHP, Application security, Vulnerability research, Security
  phpAfterShell (CVE-2026-126714, CVSS 9.2) lets an interrupted write in PHP's default file-based session handler leave a mixed session file.
- [From 732 bytes to nowhere: shutting down Copy Fail in production](https://swe.quest/articles/from-732-bytes-to-nowhere-shutting-down-copy-fail-in-production-8dac32664e09abe4.md): Together AI · 2026-04-30 · Medium · 4 min read · Vulnerability research, Linux, Multi-tenancy, Incidents & postmortems, Security
  Copy Fail (CVE-2026-31431) is a logic bug in the Linux kernel's algif\_aead AF\_ALG interface.
- [How Cloudflare WAF protects against ruby2shell (CVE-2026-132825)](https://swe.quest/articles/how-cloudflare-waf-protects-against-ruby2shell-cve-2026-132825-7727483822350470.md): Cloudflare · 2026-11-20 · Medium · 6 min read · Vulnerability research, Ruby, Application security, Memory safety
  ruby2shell (CVE-2026-132825) is a heap buffer overflow in Ruby's string case conversion: in 14 legacy single-byte encodings, uppercasing the German ß writes two bytes (SS) but reserves room for one, so 21 sharp s characters overflow by a byte, with proofs of concept reaching remote code execution.
- [A Higgs-bugson in the Linux Kernel](https://swe.quest/articles/a-higgs-bugson-in-the-linux-kernel-ee1594bf1b749860.md): Jane Street Tech Blog · 2025-07-02 · Hard · 11 min read · Debugging, Linux, Storage systems, Identity & auth, Networking
  Rare EACCES failures during large file copies over Kerberized NFSv3 came from a Linux kernel bug in RPCSEC\_GSS reply verification.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
