php2shell: patching PHP is easy, finding it is the hard part
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. PHP 8.1 and older get no fix. The hard part is inventorying every PHP runtime across Dockerfiles, OS package installs, Helm charts, CI workflows and Composer pins, and concrete regex searches are given for each. Remediation order: patch internet-facing mod_php first, restart workers, rotate credentials the web user can read, preserve forensics, rebuild images, and isolate EOL hosts. The rest is a pitch for Sourcegraph Deep Search and Agentic Batch Changes to automate the inventory and version bumps.
Related posts
- How Cloudflare WAF helps protect against phpAfterShell and other critical PHP flaws
Cloudflare mediumAdeptphpAfterShell (CVE-2026-126714, CVSS 9.2) lets an interrupted write in PHP's default file-based session handler leave a mixed session file. If an attacker controlled the old data, for example through session upload progress, PHP can deserialize objects the attacker chooses and possibly execute code. PHP fixed it in 8.2.36, 8.3.37, 8.4.28, 8.5.13 and 8.6.0 alongside six other critical flaws, including FastCGI request smuggling in PHP-FPM via connection reuse and several use-after-free bugs. Cloudflare's existing PHP RCE managed rule (Block, including Free plan) now covers phpAfterShell, and three new Log-mode rules target the PHP-FPM and SOAP CVEs. The WAF cannot see the deserialization step, session data from other sources, server-state bugs or traffic that bypasses it, so the real fix is to upgrade and restart all workers. Until then, disable session.upload_progress, turn off FastCGI keep-alive and set fatal_error_backtraces=0.
- The WordPress Chain Massacre
Calif hardMasterwp2root 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.
- Coding Agent Horror Stories: The CVE That Did Not Exist
Docker mediumAdeptA self-hosted, read-only AI code review bot running on Ollama answered a routine PostgreSQL 16.11→16.13 patch bump with a 1,500-word report alleging an "architectural takeover". The report cited a nonexistent CVE, named Kubernetes resources that did not exist and urged revoking all IAM access. Read-only permissions stopped the agent from acting, but its output could still push a human with real access into causing an outage, so agent output should be treated as untrusted input. The walkthrough moves the reviewer into a Docker Sandbox microVM with the repo mounted read-only, no credentials, and deny-all networking except the model port. It also adds a CI step that checks every cited CVE ID against the NVD API and flags the review when any ID is fake.
- Ruby2Shell (CVE-2026-132825): find vulnerable Ruby across your repos
Sourcegraph mediumAdept
Ruby2Shell (CVE-2026-132825) is a critical heap overflow in Ruby's string case conversion that researchers say default Rails and classic Sinatra apps expose without authentication, with remote code execution proofs of concept known. Fixed releases are 3.3.14, 3.4.13 and 4.0.10, and the hard part is finding which interpreter actually runs, because Dockerfiles, .ruby-version, Gemfile and Gemfile.lock can disagree and vendor products may bundle their own Ruby. Sourcegraph gives regex Code Search queries for affected version pins, a Deep Search prompt to reconcile pins per repo, and an Agentic Batch Changes prompt to bump exact pins within each series. Floating tags, unresolved build args and Ruby 3.2 or earlier are flagged for rebuild, review or migration rather than edited automatically.
- Well, That Wasn't Fun: October 16 '26
Fly.io mediumAdeptA Linux kernel bug in IPv4 checksum offload validation let a guest VM direct the host to write its computed checksum into an already-trusted IPv4 header field. This enabled a firewall bypass and a 32-byte out-of-bounds read that could leak host memory or packets from neighboring VMs. XDP rules ran too early to catch the rewrite, and disabling offload required a reboot anyway, so Fly.io patched and rebooted its entire fleet in 10 hours. Reboots were sequenced in waves so no Managed Postgres cluster lost both nodes (17 waves in iad), with some hosts stuck in BIOS or lost to a failed power supply. The write-up also covers the decision to label the work as 'maintenance' rather than disclose vulnerability, the move of incident comms to the exec team, and advice to encrypt internal traffic, scope and expire agent credentials, and rehearse rotation.