Executive Summary
PHP disclosed and patched two critical PHP2Shell remote-code-execution flaws, with exploit attempts reportedly emerging. Organizations running PHP-based web servers, including infrastructure supporting AI applications or agents, should identify affected versions and apply the listed updates.
What Happened
PHP has released emergency updates that fix two critical flaws in the language itself, letting an attacker without an account run code on a web server. The fixes are in PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35, and the PHP team says only updating fully protects a server. The flaws, together called PHP2Shell, sit in the PHP runtime, not in any application, so a site is exposed even when its own
Affected Products
- PHP 8.5.12
- PHP 8.4.27
- PHP 8.3.36
- PHP 8.2.35
- PHP runtime
Vulnerability / Attack Technique
Unauthenticated remote code execution
Technical Mechanism
The two flaws reportedly reside in the PHP runtime and allow an attacker without an account to run code on a web server. The article does not provide further technical details about the vulnerability mechanism.
AI Security Category
Not AI-specific
Relevant Frameworks
RealGround Analysis
Although the reported flaws are not AI-specific, a compromised PHP server could host or connect to AI agents, LLM applications, credentials, or supporting services. Teams should map PHP dependencies in AI application environments and verify that runtime patching is included in their AI infrastructure security process.
Recommended Controls
- Inventory PHP runtimes supporting AI applications, agent services, APIs, and administrative interfaces.
- Upgrade affected PHP installations to PHP 8.5.12, 8.4.27, 8.3.36, or 8.2.35 as applicable.
- Verify deployed versions and confirm that emergency patches reached production systems.
- Review web-server and application logs for suspected unauthenticated code-execution attempts.
- Maintain an SBOM and dependency map for infrastructure supporting AI agents and LLM applications.
Related RealGround Service
AI Agent SBOM and LLM Mapping · or start with the free AI Agent Security Scanner.
Sources
thehackernews.com: https://thehackernews.com/2026/10/php-issues-emergency-patches-for-two.html
Summary and analysis written by RealGround from the source above; last updated 2026-10-22.
