UptechUptechRequest a free check

    PHP2Shell emergency patching: update and upgrade PHP for business websites

    Uptech, a technology company in Vietnam, checks which PHP version your websites run, updates them to builds fixed for PHP2Shell, upgrades sites still on PHP 7.4, 8.0 or 8.1, and reviews servers for signs of exploitation — for WordPress, WooCommerce, Laravel, Magento and custom PHP, on shared hosting or VPS.

    Quick answer

    PHP2Shell is the name for CVE-2026-109618 and CVE-2026-109619, two critical flaws in the PHP engine (CVSS 9.2) that let a remote, unauthenticated attacker run code on a web server. Almost every PHP version since 5.4 is affected. PHP released fixes on 21 October 2026 in 8.5.12, 8.4.27, 8.3.36 and 8.2.35; php.net states that updating is the only complete remediation.

    Which PHP version should you move to?

    PHP versions fixed for PHP2Shell (php.net, 21 Oct 2026)
    Branch you runUpdate toSupport status
    PHP 8.58.5.12Supported
    PHP 8.48.4.27Supported
    PHP 8.38.3.36Security fixes only
    PHP 8.28.2.35End of life on 31 Dec 2026
    PHP 8.1, 8.0, 7.4No official releaseEnd of life; minimal source backports or distribution patches only — upgrade recommended
    PHP 7.3 and older, 5.xNo fixUpgrade required

    Timeline

    • 17 Oct 2026 — Amazon Threat Intelligence records an exploitation attempt against its honeypots, four days before disclosure.
    • 20 Oct 2026 — php.net announces an upcoming critical security release.
    • 21 Oct 2026 — php.net publishes the advisory and releases PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35.

    Why PHP2Shell is serious

    Both bugs sit in how PHP handles out-of-memory conditions and cleans up state between requests. A crafted request can leave internal data half-initialised, and a later request handled by the same worker can reuse it — leading to remote code execution, and in one path to leaking worker memory through the PHPSESSID cookie.

    The bug triggers before your application code runs, so WordPress security plugins and application fixes cannot block it. It affects every way PHP serves web traffic: PHP-FPM, Apache mod_php, php-cgi, FrankenPHP and LiteSpeed.

    Temporary mitigations if you cannot update yet

    These reduce exposure but do not fix the vulnerabilities (Datadog Security Labs). Set them in php.ini or the FPM pool, not with ini_set() or .user.ini, and restart every worker.

    • session.upload_progress.enabled=0
    • On PHP 8.5: fatal_error_backtraces=0
    • memory_limit=-1 set by the administrator (php_admin_value), paired with request-size limits at the web server or proxy and memory limits on the container
    • Do not use RLIMIT_AS / RLIMIT_DATA process limits
    • Enable your CDN/WAF rules (Cloudflare published rules for known exploit vectors) — a partial layer only
    • Take systems you cannot patch offline or isolate them, as the UK NCSC advises

    Signals worth checking in logs

    No official indicators of compromise have been published. Useful signals (Wiz, Datadog):

    • “Allowed memory size … exhausted” together with “Unknown on line 0” in the PHP error log
    • Unusually large form fields or binary data in POST requests
    • Repeated HTTP 500 errors, worker crashes or segmentation faults
    • Oversized or malformed PHPSESSID cookies in responses
    • A web worker (for example www-data) spawning a shell

    How Uptech patches PHP2Shell

    1. Free check. We identify where each site is hosted, the PHP version actually serving web traffic and the risk level.
    2. Backup and shield. Off-server backups of code and databases; temporary WAF rules and settings while the update is prepared.
    3. Update or upgrade. Patch within the same branch, or upgrade PHP 7.4–8.1 after testing plugins, themes and custom code on a staging copy.
    4. Test and review. Key pages, checkout and forms are tested; servers are reviewed for signs of exploitation; a before/after report is delivered.

    Uptech provides technical services (checking, updating and upgrading PHP); it is not the PHP project. Facts on this page come from php.net and the security researchers listed below. No measure guarantees absolute security.

    Sources

    Frequently asked questions

    Is WordPress affected by PHP2Shell?

    Yes, if the server runs an unpatched PHP version. Updating WordPress or plugins does not fix it; PHP itself must be updated.

    Is Cloudflare enough?

    No. Cloudflare’s WAF rules block known exploit vectors and help as a temporary layer, but php.net says updating to a fixed version is the only complete remediation.

    We still run PHP 7.4. What now?

    There is no official fixed release for PHP 8.1 and older. Use a vendor-confirmed patched package if available, but plan an upgrade to PHP 8.3 or 8.4.

    Can Uptech work with servers outside Vietnam?

    Yes. We work remotely on VPS and cloud servers given access, and with your hosting provider for shared hosting. Contracts and invoices are issued by Uptech in Vietnam.

    Send your domains for a free PHP2Shell check

    Tell us the website domains and where they are hosted. We will check the PHP version and risk, then propose a patch plan and quote.

    Send your domains for a free PHP2Shell check