PHP2Shell: is your website affected, and what to do
What is PHP2Shell?
PHP2Shell is the name for two critical flaws in PHP, CVE-2026-109618 and CVE-2026-109619, for which the PHP team shipped emergency fixes on 21 October 2026. Both let an attacker who is not logged in run their own code on the server. They affect every PHP install that serves web requests, whether through PHP-FPM, Apache with mod_php, php-cgi, FrankenPHP or LiteSpeed, and the PHP team rates mod_php the highest risk.
Which PHP versions are fixed?
| PHP branch | Fixed in |
|---|---|
| 8.5 | 8.5.12 |
| 8.4 | 8.4.27 |
| 8.3 | 8.3.36 |
| 8.2 | 8.2.35 |
| 8.1, 8.0, 7.x and older | No upstream release. Upgrade to a supported branch, or ask your host or vendor for a backported fix. |
How can I tell if my website is affected?
- Find your PHP version. Your hosting control panel shows it; on your own server,
php -vprints it. - Compare it with the table above. Anything below the fixed release on its branch, or any branch older than 8.2, is exposed.
- Run the free Jralo security audit. If your server announces its PHP version in the
X-Powered-Byheader, the check flags PHP2Shell as critical. If it does not announce it, the check cannot tell, and the first two steps are the way to know.
For example (an illustration, not a real site): a server that answers with X-Powered-By: PHP/8.3.35 is one release short of the fix for its branch, so the report marks it critical and gives the fix as "upgrade PHP 8.3 to 8.3.36 or later".
What should I do if my site is affected?
- On shared or managed hosting: ask your host which PHP release your site runs and when they moved to a PHP2Shell-fixed release. Many hosts let you pick the PHP version in the control panel.
- On your own server: update the PHP packages to a fixed release and restart PHP-FPM or the web server so the new version is the one running.
- On PHP 8.1 or older: plan the upgrade to a supported branch; until then, ask your vendor for a backport.
- Afterwards: set
expose_php = Offso the server stops announcing its exact version to every visitor.
Does updating WordPress fix PHP2Shell?
No. PHP2Shell is in PHP itself, the language WordPress runs on. Updating WordPress, a theme or a plugin does not change the PHP version; the server or host has to.
How does Jralo help?
The free security audit flags PHP2Shell when a server announces its PHP version, along with missing security headers and files that must never be public, and gives you a score. Paid plans add the step-by-step fix for each finding and a report file you can hand to your developer, your host or a coding agent. Jralo reports; it does not change your server.
What else do people ask?
What is PHP2Shell?
Two critical PHP flaws, CVE-2026-109618 and CVE-2026-109619, disclosed on 21 October 2026, that let an attacker run code on a server without logging in.
Which PHP versions fix PHP2Shell?
PHP 8.2.35, 8.3.36, 8.4.27 and 8.5.12, or later releases of the same branches. PHP 8.1 and older get no upstream fix.
Does WordPress need a PHP update for PHP2Shell?
Yes, if WordPress runs on an affected PHP release. Updating WordPress itself does not change the PHP version; the server or host has to.
How can I check my PHP version?
Look in your hosting control panel, run php -v on the server, or run the free Jralo security audit, which reads the version if the server announces it.
Check your site now
Jralo's free check tests your homepage and up to five pages for accessibility (WCAG 2.2 A and AA) and website QA problems, and tells you which countries' accessibility laws are likely relevant to you. No sign-up.
Run the free checkWhere do these facts come from?
More questions
- EN 301 549 explained: the European accessibility standard and WCAG
- Jralo MCP real-time alerts: website monitoring for your agent
- Why are so many website accessibility lawsuits filed in New York?
- Shopify accessibility statement: free feedback wording
- California's Unruh Act and websites: what store owners should know
- Black Friday checkout accessibility: a one-week checklist
- Israel's website accessibility regulations explained
- WCAG 1.4.13 Content on Hover or Focus: a Shopify test
- India's RPwD Act 2016 and websites: what businesses need to know
- France: accessibility rules for online shops (EAA and RGAA)
- Germany's BFSG: what it means for online shops
- WCAG 1.4.12 Text Spacing: how to test a Shopify store
- Does Australia's Disability Discrimination Act apply to websites?
- AODA website requirements checklist for Ontario businesses
- Skip links on a Shopify theme: what WCAG 2.4.1 requires
- Does the UK Equality Act 2010 apply to my website?
- What makes a good page title for product, collection and checkout pages?
- Why do I need to set the page language for screen readers?
- How do I make log-in and CAPTCHA accessible under WCAG 3.3.8?
- How do I make animation and motion on my website accessible?
- How do I make data tables and size charts accessible?
- How do I write accessible form error messages?
- How do I make product search, filters and sorting accessible?
- PDFs on your website: when to use HTML instead, and how to make PDFs accessible
- Does my website still work when visitors zoom in? Resize and reflow explained
- How big do buttons and links need to be under WCAG 2.5.8?
- How do I make a cookie consent banner accessible?
- How do I make pop-ups and modal dialogs accessible?
- How do I write link text that makes sense out of context?
- Why does heading structure matter for screen reader users?
- Visible focus: why removing outlines hurts, and what WCAG 2.2 asks
- Accessible navigation and mega menus
- Accessible product image galleries, sliders and carousels
- How to make a Shopify cart drawer accessible
- Accessible Shopify variant pickers and colour swatches
- The European Accessibility Act: a step-by-step plan for small online sellers
- ADA Title III and websites in plain English
- What to put in an accessibility statement
- How to make a WooCommerce store accessible
- How to fix accessibility issues without breaking your theme
- How to make a Shopify theme accessible: settings, apps and what to check
- Captions, transcripts and audio description for product and marketing video
- What a screen reader user hears on your product page, and how to fix it
- Accessible forms and checkout: labels, errors and autocomplete
- How to test your website with only a keyboard in 10 minutes
- Colour contrast explained: what WCAG asks and how to fix brand colours
- Why automated accessibility testing finds some problems but not all
- How do I write alt text that actually helps?
- What did WCAG 2.2 add to WCAG 2.1?
- How can I prove my website is monitored for accessibility?
- Does the European Accessibility Act apply to my online store?
- Do accessibility widgets make a website ADA compliant?
- Got an ADA website demand letter? What to do first
- How do I check if my website is accessible? A 15-minute method
- Website accessibility laws by country (2026)