Website owners and developers should take PHP security advisories seriously, especially when a vulnerability affects the PHP runtime itself. PHP2Shell is the name used in reporting about two critical PHP vulnerabilities identified as CVE-2026-109618 and CVE-2026-109619. Separate client advisories may also mention GitLab CVE-2026-110264. These are related to the broader security response, but they are distinct issues and need to be assessed separately.

This guide explains what the PHP2Shell reports mean, how to check your hosting environment, and what to ask your hosting provider or development team to do. Security details and fixed-version information can change, so verify the official PHP and GitLab advisories before acting.

What is PHP2Shell?

PHP2Shell is a label used by security researchers for two reported vulnerabilities in the PHP core. The reported issues involve unsafe handling of request-related state and memory-related behavior. Depending on the affected code path and configuration, a successful attack may have serious consequences, potentially including remote code execution. Treat the issue as urgent, but do not assume every PHP website is exploitable in the same way.

Because the reported weakness is in PHP itself, updating a Laravel application, WordPress plugin or theme alone does not fix the underlying runtime. The PHP installation serving web requests must be patched or replaced with a supported, fixed release.

Which PHP versions are affected?

Published reporting identifies affected PHP releases extending from PHP 5.4 through PHP 8.5.11. The PHP project announced fixes in PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35. Check the official PHP security announcement for the definitive current version list and any vendor-specific backports.

Older PHP branches may be end-of-life and may not receive upstream fixes. Some operating-system or hosting vendors may provide their own security backports. Ask the vendor to confirm the exact package and patch status rather than relying on the version number alone.

Does this affect WordPress, Laravel and other PHP websites?

Potentially, yes. The key question is which PHP runtime processes requests for the site. WordPress, Laravel, Drupal, Magento and custom PHP applications can all run on PHP, but the exposure depends on the actual PHP version, patch status, server configuration and relevant request paths. A framework upgrade does not automatically patch PHP.

On shared hosting, different domains may use different PHP versions. Check every domain and subdomain, staging site, API endpoint and legacy application. Do not assume that the PHP version shown in a terminal is the same version used by the website.

How to check your PHP version in cPanel shared hosting

  1. Sign in to cPanel.
  2. Open MultiPHP Manager, Select PHP Version, or the equivalent tool provided by your host.
  3. Review the PHP version assigned to each domain and subdomain.
  4. Record the version and ask the hosting provider whether the web-facing runtime includes the relevant security fixes.
  5. If you have SSH access, remember that the command-line PHP version may differ from the web PHP version.
  6. Remove any temporary diagnostic PHP file immediately after use; do not leave phpinfo() publicly accessible.

If your cPanel interface does not let you change PHP versions, contact hosting support. On shared hosting, customers generally cannot patch the host's PHP packages themselves.

How to fix PHP2Shell

For cPanel shared hosting

  1. Open a support ticket that names CVE-2026-109618 and CVE-2026-109619.
  2. Ask the host to confirm whether every PHP handler serving your sites is patched, including legacy and alternate PHP versions.
  3. If the host cannot patch your current branch, ask for its supported remediation path: a vendor-backed security update or a tested migration to a supported PHP branch.
  4. Test the site in staging if possible after a runtime change. Check login, forms, payment journeys, scheduled jobs, APIs and key plugins.
  5. Keep a written record of the PHP version, patch confirmation, affected domains and completion date.

For VPS or dedicated servers

Use the official package source or your operating-system vendor's security advisory to install a fixed, supported PHP package. If PHP is managed through a control panel, follow that panel's supported update procedure. Back up first, test application compatibility and restart the relevant PHP-FPM or web services only as required by the vendor instructions.

Temporary mitigation

A temporary configuration change may be mentioned in some advisories, but its effectiveness depends on when and how the setting is applied. Do not assume that setting a value in .user.ini or calling ini_set() will protect a request if PHP has already parsed the relevant request data. Ask your hosting provider to apply only mitigations confirmed by the official advisory, and treat mitigation as a bridge to patching—not a substitute.

Look for signs of compromise

  • Review web server, PHP and application logs for unexpected requests, errors or unusual process activity.
  • Check for recently modified PHP files, unfamiliar scripts, new admin accounts, unexpected cron jobs and changed SSH keys.
  • Review outbound traffic and hosting resource usage for unexplained spikes.
  • Rotate credentials and API keys if compromise is suspected, after containing the incident and following a coordinated response plan.
  • Preserve logs and contact your hosting provider or incident-response specialist if you find suspicious activity.

What about GitLab CVE-2026-110264?

GitLab CVE-2026-110264 is a separate issue from the PHP core vulnerabilities. The relevant GitLab security release notes identify fixed versions for self-managed installations. Check the official GitLab patch release announcement and upgrade to a fixed release in the applicable supported branch. GitLab.com is managed by GitLab; self-managed administrators must verify their own instance. Do not assume that patching PHP also patches GitLab, or vice versa.

Quick checklist

  • Inventory every public PHP site, subdomain, staging environment and API.
  • Confirm the PHP runtime serving each site and its patch status.
  • Ask the host for written confirmation if you use shared hosting.
  • Upgrade self-managed GitLab separately if applicable.
  • Test application behavior after changes and monitor logs.
  • Keep PHP, framework, CMS, plugins and server packages maintained.

Frequently asked questions

Can I fix PHP2Shell by updating WordPress or Laravel? No. Update the underlying PHP runtime through your host or server administrator. Framework and CMS updates are still important but do not replace a PHP security patch.

I use cPanel shared hosting. Can I patch PHP myself? Usually not at the system-package level. Check the available PHP selector and ask the hosting provider to patch its runtime or provide a supported migration path.

Is changing the PHP version enough? Only if the selected version is supported and includes the relevant fix. Confirm with the official advisory or vendor.

Does the GitLab issue have the same fix? No. Treat GitLab CVE-2026-110264 as a separate product vulnerability and follow GitLab's own release guidance.

Conclusion

The safest response is to identify the PHP runtime serving each website, verify its patch status with the official PHP or hosting-vendor advisory, and move off unsupported branches where necessary. Shared-hosting customers should ask their provider to confirm the patch in writing. Handle GitLab separately, test changes carefully and investigate promptly if there are signs of compromise.

Sources:

  • PHP official archive: https://www.php.net/archive/2026.php
  • Google Cloud security analysis: https://cloud.google.com/blog/products/identity-security/responding-to-core-php-vulnerabilities-cve-2026-109618-cve-2026-109619/
  • Wiz Research: https://www.wiz.io/blog/php2shell-php-rce
  • Tenable FAQ: https://www.tenable.com/blog/php2shell-cve-2026-109618-cve-2026-109619-frequently-asked-questions-about-critical-php-remote
  • GitLab patch release: https://docs.gitlab.com/releases/patches/patch-release-gitlab-19-5-1-released/