- NCSC advisory covers CVE-2026-109618 and CVE-2026-109619.
- Issue could permit unauthenticated remote code execution under certain conditions.
- NCSC says organizations using any PHP version are affected.
- Update to the latest fixed PHP version; temporary mitigations exist.
The UK National Cyber Security Centre has published an advisory on a critical PHP security issue tracked as CVE-2026-109618 and CVE-2026-109619, warning that it could allow attackers to execute commands on web servers running PHP. The NCSC is encouraging UK organizations to take immediate action and says PHP has released a security update.
Sources: UK NCSC: Critical security issue affecting PHP
What the advisory says
According to the NCSC, the issue can trigger an out-of-memory condition in PHP that leads to memory corruption. Under certain conditions, the agency says, that corruption could be exploited to achieve unauthenticated remote code execution. The NCSC states that the issue has now been fixed.
Sources: UK NCSC: Critical security issue affecting PHP
Two CVE tracks
CVE-2026-109618 covers out-of-memory handling that can interrupt PHP when data tied to a request is only partly initialized; cleanup could then accept bad data as though it were valid, the NCSC says. CVE-2026-109619 covers request-owned internal state that can survive after its backing memory is freed, with a later request on the same worker potentially using stale state before normal initialization resets it.
Sources: UK NCSC: Critical security issue affecting PHP
Who is affected
The NCSC says organizations using any version of PHP are affected and highly encourages all to update to the latest fixed version. It also encourages organizations on older PHP versions to move to a fully supported version. The advisory tells organizations not to limit discovery to outdated PHP versions and to assess exposure to both CVEs.
Sources: UK NCSC: Critical security issue affecting PHP
Priority actions
The NCSC's priority actions are to identify PHP systems across infrastructure, prioritizing internet-facing systems; update to the latest PHP version, again prioritizing internet-facing systems before internal ones; and continue monitoring for future updates. Organizations unable to update should use temporary mitigations provided by the PHP Foundation, the advisory says. If those mitigations cannot be applied or would take too long, the NCSC says organizations should weigh taking the system out of service until full mitigation is in place.
Sources: UK NCSC: Critical security issue affecting PHP
Compromise checks and bundled PHP
If a system cannot be updated or disabled immediately, the NCSC says organizations should assess it for evidence of compromise before upgrading or mitigating and look for attacker-installed backdoors. It suggests seeking help from an NCSC-assured Cyber Incident Response provider if needed. The advisory also says NCSC-NL has published an inventory of software products with a PHP dependency that may be affected, and it urges organizations to monitor third-party vendors, including appliances and services that may bundle PHP, and apply relevant updates.
Sources: UK NCSC: Critical security issue affecting PHP
What you can do
- Identify all systems running PHP, prioritizing internet-facing systems, and assess exposure to CVE-2026-109618 and CVE-2026-109619.
- Update internet-facing PHP systems first, then internal systems, to the latest fixed PHP version and monitor for further updates.
- If updating is not possible, apply the PHP Foundation's temporary mitigations; if that cannot be done or would take too long, consider taking the system out of service until full mitigation is in place.
- If immediate update or disablement is not possible, check for compromise and attacker-installed backdoors before upgrading; seek NCSC-assured incident response help if needed.