Introduction
The National Cyber Security Agency (NACSA), through the National Cyber Coordination and Command Centre (NC4), highlights two critical vulnerabilities in the PHP runtime, collectively known as PHP2Shell.
On 21 October 2026, the PHP security team released security updates addressing the following vulnerabilities:
These vulnerabilities exist within the PHP engine itself, rather than application code, and could allow unauthenticated attackers to compromise vulnerable web servers.
Impact
Successful exploitation could result in:
System Affected
The vulnerabilities affect PHP installations serving web requests, including PHP-FPM, Apache mod_php, PHP-CGI, LiteSpeed and FrankenPHP.
The PHP security team identifies Apache mod_php as the highest-risk configuration, based on demonstrated exploitation before application code execution.
| PHP Version | Fixed Version |
|---|---|
| PHP 8.5.x | 8.5.12 |
| PHP 8.4.x | 8.4.27 |
| PHP 8.3.x | 8.3.36 |
| PHP 8.2.x | 8.2.35 |
| PHP 8.1 and older | Unsupported upstream; upgrade or obtain verified vendor fixes |
Recommendation
NC4 strongly recommends that organisations take the following actions immediately:
1. Apply Security Updates
2. Temporary Mitigation (If Patching Is Delayed)
The PHP security team recommends the following measures to reduce exposure to specific attack paths:
memory_limit=-1 and restricting post_max_size, subject to application requirements and appropriate infrastructure memory limits.session.upload_progress.enabled=0 and restart all PHP workers.fatal_error_backtraces=0 and restart all PHP workers.Important: These measures do not fully prevent exploitation. Applying the official security updates remains the only complete remediation.
3. Monitoring and Incident Response
NC4 urges all organisations operating internet-facing PHP applications to prioritise immediate security updates and conduct vulnerability assessments.
References
PHP Official Security Advisory (21 October 2026) https://www.php.net/archive/2026.php#2026-10-21-5
NC4-ALR-2026-000011 : Critical Vulnerabilities in PHP https://www.nc4.gov.my/alertAdvisory-detail/NC4-ALR-2026-000011
21.10.2026