OpenAI released php2shell-checker, an official Codex skill that tells you if a site or server uses a PHP version exposed to PHP2Shell (CVE-2026-109618 and CVE-2026-109619) without sending a single exploit request. It installs in Codex with one instruction, and the same script also works standalone with just Node.js.
yoDEV Tested · October 21, 2026 We ran php2shell-checker (commit 40a4746, Node.js 22.22, and distribution PHP 8.3.6) against a local PHP installation, a local PHP server, a simulated patched server, and a public site without PHP. The results we report as ours come from that test.
What is the php2shell-checker Codex skill?
It’s a small Node.js script plus two Codex skills that OpenAI released on October 21, 2026 alongside their Patch the Planet announcement about PHP vulnerabilities. OpenAI presents it as a PHP version checker distributed as a Codex skill, designed for operators to identify potentially vulnerable PHP versions.
The repository is licensed under Apache-2.0 and has no dependencies: you don’t need npm install. It contains three pieces:
skills/phpcheck-url: checks the PHP version announced by a URL. Includes the actual script.skills/phpcheck-server: instructions only, no script. Tells Codex how to check the PHP actually served by a site when you have server access.phpcheck.jsat the root: a one-line wrapper around the URL skill script, so you can run it without Codex.
Most importantly, here’s what it doesn’t do: it never tests the vulnerability. It reads version strings and compares them against a table of cutoff versions.
At the time this note was published, the repository had 7 commits and no tagged releases (the script identifies itself as 1.0.0), and OpenAI indicates it does not accept external code contributions. It changed twice on the same day it was published, so check the README before relying on any of the commands below.
What PHP versions does PHP2Shell patch?
PHP 8.5.12, 8.4.27, 8.3.36, and 8.2.35, released on October 21, 2026. They’re exactly one patch above the cutoff limits the checker includes (8.5.11, 8.4.26, 8.3.35, and 8.2.34), so a server with any of them returns OK.
PHP 8.1 and earlier don’t receive an official version. The PHP security team released minimal backports in source code for 7.4, 8.0, and 8.1, and Linux distributions and LTS vendors received patches in advance. We explain the vulnerabilities, mitigations, and unsupported branches in our PHP2Shell article.
How do I install the skill in Codex CLI?
Ask Codex within a session:
$skill-installer install both skills from https://github.com/openai/php2shell-checker
$skill-installer is Codex’s built-in skill for adding skills. Codex documentation indicates it can also download skills from other repositories, not just the official catalog. Codex automatically detects newly installed skills; if any don’t appear, restart Codex.
Then invoke the one that matches your case:
$phpcheck-server check the PHP version serving my site
$phpcheck-url check example.com
Use phpcheck-server when you have access to the machine, and phpcheck-url when you only have a URL.
How do I check the PHP version of a website without Codex?
Clone the repository and run the script directly. Node.js is the only requirement.
git clone https://github.com/openai/php2shell-checker
cd php2shell-checker
node phpcheck.js "https://example.com"
node phpcheck.js --local
Useful flags: --json for machine-readable output, --php PATH to point --local at a specific binary, and --timeout SECONDS for slow hosts.
One detail we ran into: the CLI needs a complete URL. Passing it a host:port without a scheme returned UNKNOWN: Invalid URL. The URL skill solves this for you, because its instructions ask Codex to add https:// to scheme-less hostnames.
What results did we get when testing it?
The test suite (node --test phpcheck.test.js) passed 39 of 39. Then we ran it against four targets:
| Target | Output | Exit Code |
|---|---|---|
--local, distribution PHP 8.3.6 |
VULNERABLE: PHP 8.3.6 |
1 |
Local server php -S with PHP 8.3.6 |
VULNERABLE: PHP 8.3.6 |
1 |
Local server sending X-Powered-By: PHP/8.3.36 |
OK: PHP 8.3.36 |
0 |
| github.com (no PHP header) | UNKNOWN — “PHP version not found” |
3 |
With --json, the local check returned:
{"patch_status":"vulnerable","php_version":"8.3.6","reason":"PHP 8.3.6","exit_code":1}
The first row is the most instructive. That PHP 8.3.6 comes from distribution packages, and distributions typically apply security backports without changing the upstream version number. The checker can’t see it. In our case it was right to alert, because the build predated the fix, but with an already-patched distribution package it would say exactly the same thing.
What do OK, VULNERABLE, and UNKNOWN mean?
They mean less than they sound, and the README makes it clear.
OK(code 0): the version is above the cutoff for its branch. It’s a version comparison, not a fix verification. Headers can be rewritten, and anOKfrom a hand-crafted header is worthless: that’s exactly how we got ourOKrow.VULNERABLE(code 1): the version is equal to or below the cutoff. If you use distribution packages, confirm it with your vendor’s security advisory before panicking. On 8.1 and earlier it will still sayVULNERABLEeven if you apply a source backport, because the version string doesn’t change.UNKNOWN(code 3): it didn’t find a version, the branch isn’t in the table, or it’s a pre-release build. It doesn’t mean it’s patched. Any site that hidesX-Powered-By, a common hardening measure, falls here. So do PHP 8.6 release candidates, because the 8.6 branch isn’t in the table, even though 8.6.0 RC4 already includes the fix.
Invalid arguments return code 2. Codes 1 and 3 are results, not execution failures: useful if you integrate this into CI or a monitoring script.
Why isn’t checking the URL enough?
Because it only sees what the server chooses to announce. URL mode reads X-Powered-By and Server headers, sends a HEAD request (falling back to GET only if it gets 405 or 501), doesn’t follow redirects, and doesn’t read the page body.
That makes it a quick triage tool for a list of sites, not a test. The phpcheck-server skill exists for more solid verification: it tells Codex to start with php -v, but verify that the CLI matches the PHP-FPM or Apache build actually serving the site, and compare the full package revision against PHP or vendor advisories. If it can’t verify the version serving the site, the instruction is to report unknown.
Both skills include the same rule: don’t run exploit tests.
Why does it matter that it’s a Codex skill?
It’s the first time we’ve seen OpenAI publish an official Codex skill as a standalone repository tied to a security response, rather than include it in their skill catalog or documentation. The skill is the distribution mechanism: one instruction puts a reviewed checker into every Codex user’s agent, with the safeguards (“don’t run exploit tests”) written into the skill itself.
For English speakers searching: these are Codex skills that work in Codex CLI, and the $skill-installer installation pattern works the same for any other skill repository.
The same announcement commits subscriptions for open source maintainers through Codex for OSS. We couldn’t confirm when that program opened, so today’s news is the skill, not the subscription.
And you? How many PHP servers do you have to check this week?
- By hand with php -v or phpinfo()
- With php2shell-checker, with or without Codex
- My hosting or distribution tells me
- I prefer another option (tell us which)
Comment below or, if this article reached you by email, reply directly to the email: your reply gets published here.
Related: CVE-2026-109618 and CVE-2026-109619: what PHP version you need and when the patch comes out