Tag: CVE-2026-109619

  • PHP2Shell: Two Critical PHP Vulnerabilities Explained

    PHP2Shell: Two Critical PHP Vulnerabilities Explained

    DD DIGITAL PROTECT SECURITY ADVISORY

    PHP2Shell: Understand your exposure. Verify your PHP. Know what to do next.

    Two critical PHP flaws were fixed on 21 October 2026. A third flaw, CVE-2026-115560, was reported on 23 October and has no fix in the versions listed below yet. This guide explains what is confirmed, what is not, and what to do this week. It includes a free decision guide and a route to free initial guidance from DD Digital.

    Last substantive update: 24 October 2026Reading time: 6 minutesFor: site owners, administrators and organisations that run PHP

    01 / Security overview

    Three CVEs, three separate assessments

    The NCSC and the PHP project describe three flaws. The first two have the same fixed versions. The third does not, and its impact is described differently. Do not read one card as a conclusion about another.

    CVE-2026-109618

    Memory corruption during out-of-memory handling

    Can allow remote code execution without logging in, according to the PHP project.

    Fixed in
    8.5.12, 8.4.27, 8.3.36, 8.2.35 (21 Oct 2026)
    Exploitation
    No confirmed successful attack in the sources reviewed
    CVE-2026-109619

    Stale global state reused by a later request

    Can allow remote code execution without logging in, according to the PHP project.

    Fixed in
    8.5.12, 8.4.27, 8.3.36, 8.2.35 (21 Oct 2026)
    Exploitation
    No confirmed successful attack in the sources reviewed
    CVE-2026-115560

    A separate flaw, reported 23 October

    According to the PHP Foundation, as reported by the NCSC, remote code execution through this flaw is unlikely. Its impact is not the same as the first two.

    Fixed in
    Not in the versions above. The fix will come in a future regular bugfix release.
    Exploitation
    Not reported in the sources reviewed

    Patch status and exposure must be checked for each CVE separately. A server that runs a fixed version for the first two CVEs is not automatically protected against the third.

    02 / What happened?

    What happened, and what is still unknown

    PHP is the programming language that runs much of the code behind websites, web shops and online applications. WordPress runs on PHP. So do many other content management systems, web applications and APIs. When a flaw in PHP is exploited, the attacker may run commands on the server. The web application on top does not need to be vulnerable for that to happen.

    The NCSC advisory of 21 October 2026 describes two critical flaws. The PHP project says both can lead to remote code execution through ordinary web requests, without authentication. The NCSC update of 23 October adds that one report of possible abuse abroad has been received. That report has not been confirmed as a successful attack. The NCSC also estimates that large-scale abuse is now less likely than it first thought.

    Confirmed

    Fixed versions exist for the first two CVEs. The NCSC says that vulnerable systems should be kept offline until they are updated. The third CVE has no fix in the listed versions yet.

    Not confirmed

    Whether these flaws have been used in attacks. One unconfirmed report of possible abuse abroad has been received. No conclusion can be drawn from the absence of alerts.

    Suspension bridge with several routes relying on a central pillar marked by a red fracture.
    Shared dependency: one weakness, multiple systems. One shared dependency can expose multiple applications; exposure does not establish compromise.

    A vulnerable PHP version does not prove that a system has been compromised. It means that the system could be attacked, and that the risk has to be assessed. Do not treat either an unpatched or a patched version as proof in itself. Evidence of compromise comes from logs and investigation, not from a version number.

    03 / Technical assessment

    What to verify on the server

    The version number is a starting point, not proof. Linux distributions and hosting providers often backport security fixes into older version labels. Ask for the vendor advisory or changelog entry in that case.

    Conceptual macro visualization of a localized red fracture within layered software execution pathways.
    PHP execution layer: a hidden weakness. A localized runtime weakness can exist beneath a website’s visible interface.

    Four things need checking separately:

    • Installed is not the same as active. A package can be updated while the web server or PHP-FPM workers still run the old code. Restart the PHP service or workers after the update, then check the version the web server actually uses.
    • Workers and restarts. Long-lived PHP workers can keep old state in memory. The PHP project recommends restarting every worker after an update. Some teams also limit how many requests a worker handles before it is recycled.
    • Internet reachability. Is the PHP functionality reachable from outside? The NCSC decision guide asks this question. A system that is only reachable on an internal network carries a different risk, but it still needs a patch.
    • Who manages what. If you run PHP yourself, you patch it. If a hosting provider runs PHP for you, the provider patches it. If a product you buy includes PHP, the vendor of that product is responsible for the fix. Ask who is responsible before you assume.
    Precision measurement probe inspecting a repaired mechanical component beside a removed damaged part.
    Patch deployment and verification. Applying a patch and verifying the active runtime are separate steps.

    Temporary measures and their limits

    The PHP project lists temporary settings that reduce specific attack paths. They are not a fix. Updating to a patched release is described as the only complete mitigation. Measures include setting memory_limit=-1 and enforcing it at every level, reducing max_input_nesting_level, keeping post_max_size conservative, and blocking multipart requests at the frontend where the application does not use them. On PHP 8.5 without an update, fatal_error_backtraces=0 is listed. session.upload_progress.enabled=0 is recommended as well. Every change needs a restart of the PHP workers, and it must be checked that no other setting restores the old behaviour.

    Clean logs are not proof of safety

    The PHP project says so explicitly. Logs help you find signs of abuse. They cannot show that nothing happened. If you suspect compromise, involve a specialist.

    For background on the wider risk picture, read Why WordPress Sites Get Hacked: 7 Hidden Risks Small Businesses Miss. It describes hosting and the server as one of six connected layers. This advisory is a reason to check the PHP runtime specifically, not only the hosting package.

    Access controls matter too, but they do not replace patching. After Login: Zero Trust, Tokens and Revocable Trust explains why a stolen login is not the only entry point. Multi-factor authentication protects important boundaries, but it does not fix a defect in PHP request handling.

    For the limits of what a check can show, see Build Log 004: Web Evidence Inspector. Observations from a defined session are evidence about that session. They are not absolute proof about a whole website. The PHP2Shell decision guide works the same way.

    The workflow we use to check and publish our own tools is described in Build Log 001: The First Artifact. Bundle inspection and the final publication decision remain separate gates, with a human as the final authority.

    04 / PROTECT decision guide

    PHP2Shell decision guide

    The guide follows the structure of the NCSC decision guide for PHP vulnerabilities (22 October 2026). It asks a few short questions about who manages PHP, what patch status applies, and whether the functionality can be reached from the internet. The outcome links to one of the four NCSC explanatory notes, and shows a separate status for each of the three CVEs.

    Unknown answers lead to a verification step. They never lead to a “safe” verdict. The guide is an independent addition by DD Digital. It is not an official NCSC tool.

    Central web application connected to a self-managed server room and an external hosting facility.
    Who manages the PHP runtime?. The appropriate response depends on who manages PHP and the product that uses it.
    Privacy: the guide runs in your browser. Your answers are not sent to DD Digital, to Darja Rihla or to any third party. You can download, copy or print the result.

    05 / What should you do next?

    Practical steps by situation

    Pick the situation that matches you. Each step says whether you can check it yourself or need your provider or a specialist.

    Website owners

    Ask your hosting provider which PHP version runs your site, and whether the fix for the first two CVEs is active. You can check yourself in your hosting control panel. If you cannot find the version, ask your provider.

    WordPress administrators

    Updating WordPress, themes and plugins does not update PHP. Check the PHP version in Site Health or in your hosting panel. Plugin updates are not a fix for these CVEs. For a broader check of your WordPress setup, see our WordPress Security Quick Check.

    Organisations with their own servers

    You manage PHP yourself, so you patch it. Install the fixed version, restart the PHP workers, and verify the version the web server uses. If a fixed version is not available for your release, plan an upgrade, and take the system offline until it is updated, as the NCSC advises.

    Users of managed hosting

    Ask your provider in writing for the patch status of PHP on your account, the date it was applied, and whether the service is reachable from the internet. You can check the version yourself. You cannot patch the server, so the provider must confirm the fix.

    Anyone who suspects compromise

    If you see unknown files, unknown accounts, changes you did not make, or unusual traffic, act today. Contact your provider or a security specialist. Keep logs and backups as they are, and do not delete anything yet. Do not wait for the update.

    06 / Free initial guidance from DD Digital

    Not sure whether your website is affected?

    Ask DD Digital for free initial guidance. You can send us a first question about:

    • Your PHP version, if you know it.
    • Your hosting provider and how PHP is managed.
    • The patch status you have been given.
    • The result of the PHP2Shell decision guide.
    • Possible next steps.

    This first guidance is not a full security audit, a penetration test, incident response, or a guarantee that your system is safe. It is a practical first answer to help you decide what to do next. Requests are reviewed first. The project form states a reply within 24 hours.

    Do not send passwords, MFA codes, API keys, tokens or database exports, through the form or by email.

    Ask DD Digital a Question

    Free and without obligation. Via the DD Digital project form.

    07 / Official sources and editorial notes

    Read the sources yourself

    We separate three things on this page: what the sources confirm, what they do not yet say, and what we recommend. Check the original sources before you act, because the situation may change.

    Related DD Digital and Darja Rihla reading

    Editorial note: this page is general information. It is not a security certification and does not confirm that any system is secure. The statements on CVE-2026-115560 come from the NCSC update of 23 October 2026 and the PHP Foundation statement it cites. Check the PHP Foundation source for the latest status. Mitigation settings are taken from the PHP advisories listed above, and are temporary.

    DD Digital · PROTECTDarja Rihla · Cybersecurity