Skip to content
PHP security update

PHP security update (php2shell): what to do now

Two critical flaws in PHP were fixed on 21 October 2026 (22 October in Australia). Either one can let a stranger run commands on a web server without logging in. If your website runs on PHP, ask your host or developer today. This page shows you how to check and what to ask.

Last checked . General information, not tailored security advice.

At a glance

The flaws
CVE-2026-109618 and CVE-2026-109619
Rating
9.2 out of 10 for both (CVSS)
What they allow
A stranger runs commands on the server without logging in
Fixed in
PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35
PHP 8.1 and older
No longer updated by the PHP project. Ask your host about a vendor backport.

What happened

Two critical flaws, now fixed

The PHP project released updates on 21 October 2026 (22 October in Australia). The fixed versions are PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35. They fix two critical flaws, CVE-2026-109618 and CVE-2026-109619, nicknamed php2shell.

Both are rated 9.2 out of 10. Either one can let a stranger run their own commands on a web server without logging in. Every PHP install that serves web pages is at risk until it is updated.

CERT-EU reports that technical details are being discussed in public and that proof-of-concept code has begun to circulate. CISA had not seen the flaws used in attacks when it published its alert on 21 October 2026.

  • CVE-2026-109618

    Memory corruption after an out-of-memory error. A request that runs PHP out of memory at the wrong moment can leave PHP’s internal data half set up. PHP can then treat it as sound and corrupt memory. On Apache with mod_php, one request from a stranger can trigger it before any of your site’s own code runs.

  • CVE-2026-109619

    Stale global state. A fatal error at the wrong moment can leave PHP pointing at memory that belonged to an earlier request. A later request handled by the same worker can then use it. Remote code execution was shown against a real application running on Apache with mod_php.

What the agencies say

CISA
Patch immediately and start with systems that face the internet. PHP is often part of other software, so list every system that runs it. A web application firewall may give some protection until you are patched. If you cannot update, or still run PHP 8.1 or earlier, take PHP-based systems offline until they are fixed.
CERT-EU
Every PHP install that serves web requests is at risk. Only an update fully fixes the flaws. The temporary settings it lists reduce exposure to some attack paths and do not make a server safe.
The PHP Foundation
The two releases are out and the Foundation says it is imperative to update now if you run PHP.

Are you affected

Which PHP versions are affected

A version older than the fixed release on its own line is affected. Versions of PHP 8.1 and older are end-of-life, which is a different problem with its own answer.

The fixed versions

The fixed PHP release on each supported line
PHP lineFixed in
PHP 8.58.5.12
PHP 8.48.4.27
PHP 8.38.3.36
PHP 8.28.2.35

Apache with mod_php is the highest-risk setup, the PHP team says. PHP-FPM, php-cgi, FrankenPHP and LiteSpeed are affected too. Software that embeds PHP can be affected even when you never installed PHP yourself.

  • PHP 8.5, 8.4, 8.3 or 8.2, older than the fixed version

    Affected. Update to the fixed version for your branch, or a later one. The table shows each branch.

  • Already on a fixed version or later

    You have the fix for these two flaws. Ask your host to confirm it, because a server can run a different version from the one you expect.

  • PHP 8.1 and older

    These versions are end-of-life, so the PHP project no longer updates them. It did publish minimal source backports for PHP 7.4, 8.0 and 8.1, and some Linux distributions and long-term support vendors backport the fixes. Ask your host whether a backport is applied, and plan the move to a supported version.

  • Not sure

    Treat it as affected until your host or developer tells you otherwise. The steps below show what to ask.

How to check your site

  • Ask your host or developer which PHP version serves your website. Ask for the version the web server uses, because it can differ from the version on the command line.
  • On WordPress, open Tools, then Site Health, then Info, then Server. The PHP version is listed there.
  • Many hosting control panels show the PHP version in their settings.
  • Remember other software. PHP often sits inside shops, booking tools and other products. NCSC-NL keeps a list of products that embed PHP.

W3Techs reports that PHP is used by 69.3% of the websites whose server-side language it can detect. About 35% of PHP sites run PHP 7 or older (22 October 2026).

What to do now

Five steps, starting today

Most of this is a conversation with whoever looks after your website.

  1. Find out which PHP version runs your website

    Use the checks above, or ask. List every system that runs PHP, because it is often part of other software.

  2. Ask your host or developer to confirm the fix

    Copy the email below, fill in your website address and send it today.

  3. Update to a fixed version, or confirm a vendor backport

    The fixed versions are PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35. If you run your own server, update PHP through your distribution’s packages or build the fixed source.

  4. If you are on PHP 8.1 and older, plan the move now

    Ask about a vendor backport first. If neither a backport nor an upgrade can happen soon, CISA advises taking the PHP-based system offline until it is fixed.

  5. Watch for signs of trouble

    CISA suggests looking for PHP worker processes that launch shells or download tools. Your host can check this. Keep a recent backup.

An email for your host or developer

Fill in the details in [square brackets], then send it.

Subject: Urgent: is our website’s PHP fixed for CVE-2026-109618 and CVE-2026-109619?

Hello,

The PHP project released security fixes on 21 October 2026 (22 October in Australia) for two critical flaws, CVE-2026-109618 and CVE-2026-109619, nicknamed php2shell. They can let an outsider run commands on a web server without logging in. The fixed versions are PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35.

For our website, [website address], please tell me:

1. Which PHP version serves the website, and how is it run (PHP-FPM, Apache mod_php or something else)?
2. Has it been updated to a fixed version? If we use a vendor package, which package version carries the fix?
3. If we are on PHP 8.1 and older: those versions no longer get updates from the PHP project. Has a vendor backport been applied? If not, when will we move to a supported version?
4. Does any other software on the server embed PHP, such as a shop, booking tool or plugin? NCSC-NL keeps a list at https://github.com/NCSC-NL/php2shell
5. Until it is fixed, what limits our exposure? A web application firewall may help for a short time, but only the update fixes the flaws.

CISA advises patching immediately, and taking PHP-based systems offline if they cannot be fixed. Please reply by [date].

Thank you,
[your name]

Sources:
https://www.cisa.gov/news-events/alerts/2026/10/21/critical-vulnerabilities-php-require-immediate-patching
https://cert.europa.eu/publications/security-advisories/2026-018

A firewall may help for now

A web application firewall may give some protection until you are patched, CISA says. It is not a fix. Only the update fully fixes the flaws.

The modern option

A website with no PHP to patch

If your site is mostly pages that describe your business, it may not need PHP at all. Camlin Companion can put a receptionist on your site, and our team can prepare a rebuild as plain pages.

The receptionist

It answers visitors from your own pages, by voice and text, and puts them through to you. Companion can also be added to your current website with one line of code. You should still patch PHP.

The website rebuildBeta

  • The rebuilt pages are plain HTML and CSS, with the receptionist added as one script line. They have no PHP and no plugins.
  • We set up hosting, and keeping your domain, with you when you go ahead.

How a preview works

  1. Tell us your website address

    Use the form on this page. You tell us you own or manage the site.

  2. Our team prepares a preview

    Companion reads your public pages and drafts the new site. A person reviews it before you see it.

  3. You look it over and decide

    You review the preview and set the receptionist’s greeting. You go ahead only if you are happy.

About the preview. Our team prepares it and gets back to you. There is no charge for the preview.

Plans

Camlin Companion plans

Prices are per month in Australian dollars, including GST. Start with a free week on your own website, then choose Front Desk or add Phone.

Trial

First week free

No card needed

The full Front Desk on your own website for a week.

  • We read your pages and set it up with you
  • Your receptionist live on your site, by voice and text
  • Decide at the end of the week
Start your free week

Front Desk

$495 / month

Founding price · standard list $795

Your receptionist on your website.

  • Answers visitors by voice and text, from your own pages
  • Takes the enquiry and puts callers through to you
  • Your choice of face and voice
  • Website only — phone and SMS are on Front Desk + Phone
Start your free week

Front Desk + Phone

Website + phone

$995 / month

Website and phone

Everything in Front Desk, plus it answers your phone.

  • A Camlin phone number answers your calls as your receptionist
  • 400 inbound phone minutes included, then $0.25 per minute
  • Ring your avatar to hear who enquired and who needs a call back
  • See what visitors asked and where they got stuck
  • Update your website from the same information. You approve every changeBeta
Start your free week

Estate

From $2,500 / month

Many sites or venues

One receptionist across all your sites, on one invoice.

  • One set-up, the same voice and knowledge on every site
  • Helpers for your team across every property
  • We plan the rollout with you
Talk to us

Ask us which plan suits your site.

Prices are in Australian dollars, per month, including GST. Front Desk standard list is A$795. The founding price (A$495) is for the first 50 sites, locked for 12 months against a named case study, then the prevailing Front Desk list price. In return we ask for a named case study.

FAQ

Questions people ask

Do I need to panic?

No, but do not wait. CISA says to patch immediately and to start with systems that face the internet. CISA had not seen attacks when it published, and CERT-EU says proof-of-concept code has begun to circulate. A short email to your host today is a good first step. The email on this page is ready to send.

My website runs on WordPress. Am I affected?

It can be. WordPress runs on PHP, and so do its plugins and themes. Your host chooses the PHP version, and updating WordPress does not update PHP. Check the version under Tools, Site Health, Info, Server, then ask your host whether it carries the fix.

My host manages PHP for me. Do I need to do anything?

Ask them. A managed host may apply the update for you, but you should hear it from them. Ask which PHP version serves your website and whether the fixes are in. The email on this page covers it.

We run PHP 8.1 or older. Is there a fix?

The PHP project no longer updates PHP 8.1 and older. It did publish minimal source backports for PHP 7.4, 8.0 and 8.1, and some Linux distributions and long-term support vendors backport the fixes. Ask your host whether a backport is applied. Plan the move to a supported version. If neither can happen soon, CISA advises taking the PHP-based system offline until it is fixed.

Can you check whether my website is affected?

We do not scan or test other people’s websites. Your host or developer can tell you the PHP version, and this page shows what to ask.

Do I have to rebuild my website?

No. Updating PHP, or moving to a supported version, fixes this problem. A rebuild is an option if your site is mostly pages that describe your business and you would rather not run PHP at all.

Is Companion completely secure?

No website can promise that, and we will not. Rebuilt pages carry no PHP and no plugins, which removes this week’s problem from the pages themselves.

Can I keep my domain and my content?

Yes. We set this up with you when you go ahead. The new pages are drafted from your own public pages, and you see exactly what they say in the preview before you decide.

What does the free preview involve?

Our team prepares it and gets back to you. There is no charge for the preview. A person reviews it before you see it, and you go ahead only if you are happy. The website rebuild is in Beta.

Next step

Patch today. Rebuild when you are ready.

Patching comes first. When you want to look at an option with no PHP, send us your website address and our team will prepare a preview.

  • Our team prepares it and gets back to you. There is no charge for the preview.
  • A person reviews the preview before you see it.
  • You go ahead only if you are happy. The website rebuild is in Beta.

Prefer to talk? Call the demo line on +61 2 5300 6005. Read the privacy policy.

Give us your website address. Our team prepares it and gets back to you. There is no charge for the preview.

Your host can tell you. It is fine to leave this blank.

We use these details only to reply to you. Privacy policy.

Sources

Where this comes from

Last checked . That is the day we last compared this page with the sources below.

This page is general information, not tailored security advice. Check the sources below and ask your host, developer or a qualified adviser about your own systems.