On October 21, 2026, the PHP project shipped a security release for two pre-authentication remote code execution (RCE) bugs now known as PHP2Shell. Several other critical disclosures landed the same day. For teams practicing agentic vulnerability management, it became the clearest live test so far: one advisory, thousands of repositories, almost no warning.
The CVE IDs leaked ahead of the planned date. Proof-of-concept code circulated early, exploitation attempts appeared before public disclosure, and the patch arrived 17 hours after the leak, according to the Black October 2026 incident write-up. The PHP security advisory put every installation serving web requests at risk, from PHP-FPM to Apache with mod_php, and was blunt that "only an update is a complete solution."
Every security team asked the same two questions that morning. Where are we exposed? What do we fix first? Agentic vulnerability management answers both by splitting the investigation across specialized security AI agents that share one context and hand work to each other, from the first signal to a verified fix. This article follows one PHP2Shell finding through that chain, agent by agent.
Key takeaways
- During PHP2Shell, Rival's agents were triaging customer exposure hours before vulnerability scanners could detect the CVEs.
- Exploitability decides the order of work. Agents ranked PHP2Shell exposure by reachability, putting unauthenticated internet-facing workloads first and images with no running instances last.
- One root cause, such as a pinned base image, can sit under dozens of workloads, so fixing at the root closes many findings with a single reviewed pull request.
- Closure in agentic vulnerability management requires evidence that the patch or mitigation actually landed, followed by an automatic ticket update carrying the full investigation context.
The Traditional Vulnerability Management Challenge
Findings are cheap. A scanner that flags a vulnerable PHP version has done the easy part, and during PHP2Shell even that part lagged: scanners could detect the CVEs only hours after agents had started triaging. Everything after the finding is investigation, and it runs on human time.
Here is what one analyst has to do by hand for a single PHP2Shell finding:
- Inventory: find every repository, Dockerfile, base image and virtual machine image that ships PHP, including legacy code nobody remembers deploying.
- Exposure: check which of those builds run today, under which server API, behind which load balancer, security group or Web Application Firewall (WAF).
- Ownership: work out which team owns the service when CODEOWNERS, cloud tags and the service catalog disagree.
- Fix and follow-through: write the change, open the pull request, chase the review, confirm the deploy and update the Jira ticket.
Each step lives in a different system, and each hand-off between security and development can cost days. Many AI vulnerability management tools reorder the queue with better scores but leave the investigation to the security team. That does not add the capacity needed to validate exposure, find the owner and complete the fix.
One Vulnerability, Multiple Specialized Agents
Take CVE-2026-109618, "RCE via OOM corruption," rated 9.2. Out-of-memory handling can interrupt PHP while internal request data is only partly initialized, and cleanup may then treat that data as valid. Picture one affected service: a PHP application in a GitHub repository, built into a container image and running on a cloud workload.
Moving that finding from detection to a verified fix requires five stages: detection, exploitability validation, root cause and ownership, remediation, and validation and closure. Each stage receives evidence from the previous one and produces what the next stage needs.
| Stage | Receives | Decides | Passes on |
|---|---|---|---|
| Detection | The PHP advisory, CVE IDs, connected repositories and cloud accounts | Which repositories and workloads may run a vulnerable PHP build | Candidate list of repositories, images and hosts |
| Exploitability validation | Candidate list plus network, identity and WAF context | Whether each instance is reachable and exploitable, and its priority tier | Evidence-backed verdicts ranked by reachability |
| Root cause and ownership | Ranked verdicts plus build files, commit history and team structure | Where the vulnerable version is set and who owns the fix | Root cause, affected assets and named owner |
| Remediation | Root cause, affected assets, owner and customer approval policy | Whether to patch, apply an interim mitigation or add a compensating control, and who must approve it | Pull request, configuration change or WAF rule, plus owner notification |
| Validation and closure | Completed changes and the original verdict | Whether the fix reached every affected workload | Ticket update, validation evidence and a memory record of the investigation |
From Detection to Remediation, Step by Step
Each stage ends with a hand-off: input, decision, output.
Detection
The trigger wasn't a scanner alert. Rival's 0-day rapid response monitors vendor advisories and threat intelligence feeds; in this walkthrough, Threat Exposure Analysis plays that role and starts the run from the PHP2Shell advisory. Per the write-up, a triaging agent then searched the connected code. For one customer it found 60 repositories containing PHP, 29 of them potentially vulnerable. A further check found more than 30 additional hosts and workloads running PHP. Other customers turned up production systems and a legacy repository still deployed in production. Across customers, agents scanned more than 80,000 repositories in hours.
- Agent: Threat Exposure Analysis, CVE Triage, App Inventory
- Receives: the advisory, affected versions, connected GitHub orgs, registries and cloud accounts
- Decides: which version pins, base images and hosts fall in the vulnerable range
- Passes on: a candidate list, each entry tied to its repo, image and workload
Exploitability Validation
A vulnerable version isn't the same as an exploitable service. The PHP advisory rates the risk highest for mod_php, where an unauthenticated request can trigger the attack before any application code runs. Settings like memory_limit, post_max_size and session upload progress change which paths remain open. In this walkthrough, Attack Surface Review traces each candidate from code to its running workload and network path, then checks authentication, IP restrictions and WAF rules.
The agents ranked PHP2Shell exposure in five reachability tiers:
- Public, internet-exposed workloads with no authentication
- IP-restricted public services
- Internal services that are partly internet-reachable
- Services with no public IP
- Images and code without any running instances
Red Team Simulation can add an environment-specific, runnable proof of concept as evidence, without ever executing it against production assets.
- Agent: Attack Surface Review, Red Team Simulation
- Receives: the candidate list, plus cloud network, identity and WAF configuration
- Decides: reachable or not, which tier, with what confidence
- Passes on: ranked verdicts with evidence and reasoning attached
Root Cause and Ownership
"PHP is vulnerable" isn't a root cause. Agentic vulnerability management looks for the line where the vulnerable version gets decided: a FROM php:8.x-apache tag in a Dockerfile, a package pinned in a virtual machine image, a vendored runtime in a legacy repo. One shared base image can sit under a dozen services, so fixing it once closes all of them. The Map Code to Cloud workflow links each repository to the servers and resources it deploys to. The Find Vulnerability Owners workflow then weighs that root cause against team structure and memories from past investigations to identify who should fix it.
- Rival workflows: Map Code to Cloud, Find Vulnerability Owners
- Receives: ranked verdicts, build files, commit history, cloud tags
- Decides: where the fix belongs and which team owns that line
- Passes on: one remediation unit per root cause, with affected assets and owner
Remediation
Rival's Autonomous Remediation workflow runs a fixed sequence: gather findings, root cause, remediation plan, pull request creation, human follow-up and remediation tracking. For PHP2Shell, the plan separates immediate containment from the full patch. The full fix moves the runtime to PHP 8.5.12, 8.4.27, 8.3.36 or 8.2.35, here through a pull request on the base image. Where a patch can't ship today, the advisory's interim settings or a WAF rule reduce exposure, though only the update closes it. The write-up describes the agents acting directly once analysis is complete: messaging the relevant employees, opening pull requests, suggesting WAF rules and applying configurations.
Approval sits wherever the customer puts it. A team can let base image bumps merge automatically, or require an owner's review on every pull request.
- Rival workflow: Autonomous Remediation
- Receives: the root cause, owner and the customer's approval policy
- Decides: patch, mitigate or both, and the order across tiers
- Passes on: an open pull request or applied change, plus a notified owner
Validation and Closure
A merged pull request isn't a closed finding. During PHP2Shell, agents helped customers verify that early mitigations, and later patches, actually landed in code. In this walkthrough, validation also checks the rebuilt image and running workload against the original verdict. Only then does the agent update the Jira, ServiceNow or Linear ticket with the investigation context and remediation status. The full investigation is written to memory, so the next PHP advisory starts from what the agents already know.
- Rival workflow: Autonomous Remediation, tracking step
- Receives: the merged change and the original exploitability verdict
- Decides: whether the fix is live everywhere the verdict said it mattered
- Passes on: a closed ticket with evidence, and a memory record
What Makes Multi-Agent Orchestration Possible
None of those hand-offs works without an agent harness. An agent harness combines organizational context, memory, tools, integrations and orchestration so specialized agents can work reliably in a specific environment. Rival calls itself the agent harness for cybersecurity, and multi-agent orchestration is the part of it this walkthrough relies on most.
- Shared context: every agent reads and writes the same investigation, so Attack Surface Review starts from the exact repo-to-workload links CVE Triage found.
- Knowledge graph: a security knowledge graph holds infrastructure, vulnerabilities and security findings, mapping code to the cloud resources it runs on.
- Persistent memory: ownership decisions and past investigations carry forward, so agents don't repeat mistakes.
- Integrations and triggers: scanners such as Wiz; code hosts such as GitHub, GitLab and Bitbucket; AWS, Azure, GCP and Kubernetes; plus Jira, ServiceNow and Linear. Runs start on demand, on a schedule or on an event.
- Security expertise and evidence: specialized subagents bring built-in security expertise a team may not have in-house, and every verdict ships with evidence, reasoning and a confidence level.
- Controlled execution: agents run in a sandbox, hosted or self-hosted, with approval gates set by customer policy.
Together, these capabilities let specialized agents work from the same investigation and pass evidence between stages.
Beyond Individual Agent Capabilities
A script that chains eight independent agents would pass output from one prompt to the next, but it would not provide the shared context and coordination this workflow requires. AI agent orchestration needs three things a chain doesn't have:
- Coordination: fanning out across 29 repositories and 30+ hosts in parallel, then merging the results into one ranked picture.
- Decision-making: choosing patch or mitigation, which tier goes first, and when a verdict needs a human.
- Acting inside the environment: holding scoped credentials, running in a sandbox, opening pull requests and updating tickets under the customer's approval rules.
Rival's research on its Conductor reasoning engine names the failure a naive chain hits. "[T]oday's agentic approaches excel at toy examples and trivial problems, but their reasoning falls apart at the scale of problems that human reasoning faces in enterprise scenarios." The post calls this reasoning collapse at enterprise scale. Conductor's answer is to split the work into plan generation and plan orchestration, with discrete steps that have defined inputs and outputs. That architecture shows how work at the scale of 80,000 repositories can be divided into inspectable steps instead of one giant prompt.
Effective security automation requires specialized security AI agents that share context, coordinate decisions and act under the customer's approval policy. When the next 0-day lands, evaluate agentic vulnerability management by whether it produces a ranked, owned and verified fix. Rival's remediation and 0-day use cases show these workflows in operation, with remediation reduced from three or four weeks to minutes.
Sources
- Cohen, Y. (2026, November 2). Black October 2026: How Rival's agents triaged PHP2Shell. Rival Security. https://rival.security/blog/php2shell-black-october-2026
- Feiglin, J. (2025, June 30). How to scale agentic reasoning without breaking. Rival Security. https://rival.security/blog/scaling-agentic-reasoning-with-conductor
- The PHP Group. (2026, October 21). Security advisory: Critical remote code execution vulnerabilities, update now [News archive entry]. PHP. https://www.php.net/archive/2026.php#2026-10-21-5
- Rival Security. (n.d.). Use cases. Retrieved November 3, 2026, from https://rival.security/use-cases