
PHP2Shell Was Probed Four Days Before the Patch, Amazon Says, and Attacks Are Now Widespread
Earlier this week we covered the two critical PHP flaws known as PHP2Shell in PHP2Shell: Critical PHP Flaws Force Urgent Patching. The story has moved on. On 22 October 2026, Amazon said someone tried to exploit the bugs four days before the patches were released, and that they are now "broadly exploited in the wild".
What happened
According to Amazon Threat Intelligence, its MadPot honeypot network recorded an exploitation attempt for CVE-2026-109618 and CVE-2026-109619 on 17 October, while the flaws were still under embargo. The attempt came from an IP address tied to a commercial anonymisation network, and Amazon says it is unclear how the attacker got exploit details early.
On the day of release, Amazon saw multiple proof-of-concept exploits, the earliest around 02:00 UTC on 21 October, hours before the embargo lifted at 14:00 UTC. Payloads and infrastructure varied, which suggests several different actors. BleepingComputer reports that the PHP project had already brought its release forward after some details, including the CVE IDs, leaked online.
How bad is it?
The picture is mixed, so here is what each source actually says:
| Source | What they report |
|---|---|
| Amazon (CJ Moses) | "Now being broadly exploited in the wild"; unclear whether attempts succeed |
| Dataminr TRACE, via BleepingComputer | So far limited to scanning, fingerprinting and non-working exploits, with no known compromises |
| VirusTotal data, via BleepingComputer | More than 5.1 million PHP hosts exposed online, about 3.8 million with at least one open port |
| UK NCSC, via BleepingComputer | Advised organisations to patch |
The Hacker News and WIRED also covered the early exploitation. Amazon's wider point is that AI-assisted analysis makes it cheaper to turn a patch or advisory into a working exploit, so the gap between disclosure and attack is shrinking to hours.
What PHP site owners should do
- Upgrade PHP now. Amazon says upgrading to the fixed versions is the only complete fix for both CVEs, with no configuration-only workaround.
- Check shared hosting too. If you are on managed or shared hosting, confirm with your host which PHP version your site runs and when it was patched.
- Look back to 17 October. Amazon advises starting investigations from the earliest known exploitation, not the disclosure date. Look for POST requests containing the string
PHP_SESSION_UPLOAD_PROGRESSin form uploads. - Think in hours, not weeks. For critical flaws in internet-facing systems, Amazon recommends measuring patch timelines in hours.
If you ship apps built with AI tools, our vibe coding security checklist and deployment guide cover keeping runtimes updated.
Timeline
- 17 Oct 2026: Amazon's MadPot records the first known exploit attempt, during the embargo.
- 20 Oct: The PHP project brings its release forward after details leak, per BleepingComputer.
- 21 Oct, ~02:00 UTC: Proof-of-concept exploits start appearing.
- 21 Oct, 14:00 UTC: Embargo lifts and patches ship.
- 22 Oct: Amazon says exploitation began four days early; Dataminr reports no known compromises yet.
Sources
- AWS Security Blog: Amazon Threat Intelligence identifies PHP2Shell exploitation prior to public disclosure in MadPot
- BleepingComputer: Amazon says PHP2Shell exploitation began 4 days before patches
- The Hacker News: Someone Tried to Exploit PHP2Shell 4 Days Before the Vulnerabilities Were Publicly Disclosed
- WIRED: Hackers exploited the PHP vulnerabilities days before they were patched
FAQ
What is PHP2Shell?
The name for two critical PHP vulnerabilities, CVE-2026-109618 and CVE-2026-109619, that can allow remote code execution on vulnerable servers.
Were sites actually hacked before the patch?
Amazon saw an exploit attempt against its honeypots on 17 October, but says it is unclear whether such attempts would have succeeded on real systems. Dataminr reported no known compromises as of 22 October.
Is there a workaround if I cannot upgrade?
Amazon says there is no configuration-only workaround that fully addresses both issues. Upgrading PHP is the only complete fix.
How do I check my logs?
Amazon suggests looking for POST requests with the PHP_SESSION_UPLOAD_PROGRESS string in form uploads, starting from at least 17 October.