A small behavioural check for the PHP security fixes released on 21st October 2026:
- [CVE-2026-109618]( RCE via OOM corruption
- [CVE-2026-109619]( RCE via stale global state
It does not use an exploit payload or send HTTP requests. It runs a short-lived PHP CLI process with an 8 MiB memory limit and checks how PHP terminates when the limit is reached.
Pass a path when the binary is not named `php`:
./check-php-security-fixes.sh /usr/bin/php8.1
Run it inside every PHP container or image you deploy. A check on the host does not inspect PHP inside containers.
docker exec -i CONTAINER bash -s < check-php-security-fixes.sh
| `1` | Old, unpatched bailout behaviour observed |
| `2` | The result was inconclusive or PHP was not found |
Unpatched PHP runs registered shutdown functions after the tested out-of-memory condition. The security patch changes that behaviour so PHP terminates before shutdown processing can touch incomplete or stale request state.
Current supported PHP releases use a new hard memory limit and exit with status 137. PHP's official 7.4, 8.0 and 8.1 source backports use an immediate safe exit with status 1. The script recognises both implementations.
The complete upstream change covers both CVEs. The stale-global-state issue cannot be independently distinguished on an arbitrary production binary without deliberately shaping the heap, which this checker does not attempt.
- runs only against a local PHP CLI binary;
- loads no `php.ini` or extensions because it invokes PHP with `-n`;
- does not restart or reconfigure any service.
- [PHP security announcement](
- [Upstream fix](
- [PHP 7.4 source backport](
- [PHP 8.0 source backport](
- [PHP 8.1 source backport](
The full story
This article is one source in a clustered incident — the cluster page carries the summary, timeline and every other outlet covering it.
