PHP’s critical remote-code-execution advisory lists PHP 8.2.35, 8.3.36, 8.4.27 and 8.5.12 as patched releases. Updating to a release containing the fix is the only complete mitigation for that issue, according to the maintainers.
Those releases are part of the October 21, 2026 coordinated disclosure of vulnerabilities described as PHP2Shell. OpenAI says Calif identified one critical flaw using GPT-5.6 Sol through its existing Patch the Planet program. Wiz independently discovered and reported both vulnerabilities, according to OpenAI, while PHP maintainers led the fixes and release.
OpenAI also published an open-source version checker, available as Codex skills or a Node command-line tool. It can help identify outdated PHP installations, with an important limit: an “OK” result is a version comparison, not independent verification that a security fix is installed.
Patch the PHP Runtime, Not Just the Application
The immediate response should follow PHP’s advisories and the security guidance for the package or hosting service actually running the site.
Updating a WordPress plugin or changing application code does not, by itself, replace a vulnerable PHP interpreter. In its PHP2Shell research, Wiz reports demonstrating unauthenticated remote code execution against deployments of WordPress, Drupal and Joomla using their latest container images at the time of testing. Those applications were demonstration targets, not a complete list of affected software.
For operators, the practical sequence is:
- Identify the PHP runtime serving production requests, including separate pools, containers and hosting environments.
- Apply the relevant PHP release or a provider-confirmed package containing the fixes.
- Restart the affected PHP workers and verify the runtime now serving traffic.
- Check the related PHP advisories and provider guidance rather than treating one version check as complete remediation evidence.
A local command-line PHP installation may differ from the one used by the web server, especially on a host with several PHP versions or separately managed application containers.
Distribution packages create another complication: a vendor may backport a security fix without changing the upstream version number. In that case, the vendor’s package advisory is more informative than a simple comparison against upstream release numbers.
For installations that cannot update immediately, PHP documents configuration mitigations but explicitly warns that they are incomplete. Temporary controls should buy time for an update, not become a reason to postpone it indefinitely.
One OpenAI-Assisted Finding, With Independent Wiz Research
The discovery credit needs more precision than “OpenAI found PHP2Shell.”
OpenAI’s account attributes one critical finding to Calif using GPT-5.6 Sol through Patch the Planet. It separately credits Wiz with independently discovering and reporting both vulnerabilities. PHP maintainers led the fixes and release, with Wiz, Cloudflare, OpenAI and other partners coordinating research, mitigations and disclosure.
Wiz’s account describes multiple memory-safety bugs grouped under CVE-2026-109618 and CVE-2026-109619. It credits the PHP team, Calif and OpenAI for work on discovery, coordination and patch verification.
Several models contributed to the research. Wiz says it used Wiz Atlas, Gemini 4 Argon and GPT-5.6 Sol, and specifically credits Gemini 4 Argon with contributions to discovery, exploit development, detection and patch validation. That account is consistent with OpenAI’s description of Calif’s finding, though a single-model discovery narrative would be incomplete.
Patch the Planet was already operating before this disclosure. The new developer-facing release is the PHP version checker, published alongside the coordinated disclosure of the vulnerabilities and fixes.
The Risk Comes From PHP’s Error Handling
Wiz describes the underlying problem as PHP retaining invalid internal state after fatal errors, particularly out-of-memory errors. A request can end unexpectedly while internal bookkeeping still refers to memory that is no longer valid. Later processing can then encounter that stale state, creating opportunities for memory disclosure or corruption.
PHP’s advisory explains a related failure in its handling of allocation errors. PHP uses longjmp to leave the current execution context when it runs out of memory. Some code paths do not safely account for that abrupt exit, allowing request shutdown to process invalid state.
The fix replaces the unsafe out-of-memory exit mechanism with delayed handling at a safe execution point, plus immediate process termination if memory consumption reaches a higher threshold.
PHP reports confirmed unauthenticated remote code execution over HTTP against Apache mod_php, with execution as the web worker account. Its advisory distinguishes that result from PHP-FPM, where source analysis indicates susceptibility but no complete exploit had been demonstrated for that interface.
The advisory carries a CVSS v4 score of 9.2. That documented severity assessment is distinct from OpenAI’s broader characterization of the disclosure as exceptionally consequential.
Wiz also reports memory-disclosure demonstrations that could expose information such as passwords, tokens and API keys held in PHP process memory. Neither the supplied disclosure material nor those demonstrations establish how many deployed systems are exploitable, how many have been compromised, or whether active exploitation has occurred. PHP’s prevalence is not itself a count of exposed servers.
The Codex Checker Reads Versions, Not Security State
OpenAI’s PHP version checker is licensed under Apache-2.0 and provides two Codex skills: phpcheck-server for situations with server access, and phpcheck-url when the operator has only a URL. It compares versions; it does not independently verify that a security fix is installed.
The repository documents installing both through Codex:
$skill-installer install both skills from https://github.com/openai/php2shell-checker
The same checker can run directly with Node from a local copy of the repository:
node phpcheck.js "https://example.com"
node phpcheck.js --local
URL mode evaluates PHP version strings exposed through the X-Powered-By and Server response headers. Local mode reads the output of php -v.
Its three results have deliberately narrow meanings:
- OK: A recognized stable PHP patch version is above the embedded cutoff for that branch.
- VULNERABLE: The detected version is at or below the embedded cutoff.
- UNKNOWN: The tool cannot obtain or recognize a usable version, or encounters another unsupported case, including a newer prerelease build.
The checker supports for machine-readable output. Its exit codes are for OK, for VULNERABLE and for UNKNOWN; invalid arguments return .