Skip to content
Tuesday, October 27, 2026Newsletter
Advertisement
Cybersecurity Solutions

PHP2Shell: update PHP to 8.4.27 or 8.5.12 now

CISA urges an immediate PHP update to fix two flaws that allow code to run on web servers without a login. Here is what to patch and what to do if you can't.

By

Founder

4 min read

ShareLinkedInXEmail

Two serious flaws in PHP, a programming language used to run websites, can let an attacker run code on a web server without logging in. CISA urges organizations to patch CVE-2026-109618 and CVE-2026-109619 right away, a pair of bugs nicknamed "php2shell."

For a small firm, the fix is usually a version update. The harder part is finding every place PHP runs, since it often ships inside other software. This guide explains what is affected, which versions fix the problem and what to do if an update cannot happen today.

Key facts

Background

According to CISA's alert, the flaws affect every PHP installation that serves web requests. That list includes Apache with mod_php, PHP-FPM, php-cgi, FrankenPHP and LiteSpeed. CISA notes that PHP itself sees mod_php as the highest-risk setup.

The CVE record for CVE-2026-109619 describes it as a use-after-free bug, cataloged as CWE-416. In plain terms, leftover global data from one web request can be picked up and reused by a later request. That record was published on October 21, 2026.

Scores for this flaw differ by system. NVD lists a CVSS 4.0 score of 9.2, rated Critical, supplied by PHP. NVD's own CVSS 3.1 score is 8.1, rated High.

Advertisement

At the time of its alert, CISA had not seen successful attacks in the wild, but it warned that unpatched systems remain at risk. Whether that has changed since the agency's later update is not known.

What it means for you

A website, online form, booking page or customer portal may run on PHP without the owner knowing it, because PHP is often bundled inside a content system, a plugin or a vendor's app. Sites built years ago and handed off are easy to lose track of, and a website refresh can be a chance to document what runs underneath.

CIS says a successful attack could let an intruder install programs, read, change or delete data, or create accounts with full rights. How much damage is possible depends on the privileges of the account the web service runs under, according to CIS.

Advertisement

A hacked web server can also become a doorway into the rest of a network. That is why patching a public website deserves the same urgency as patching office computers. If ransomware is a worry, the steps in our ransomware checklist for small firms pair well with this update.

Advertisement

Practical steps

These steps come from the CISA and CIS guidance.

  1. Make a full list of PHP systems. CISA advises an inventory of every system running PHP and reminds teams that PHP often hides inside other software. Check web servers, hosting accounts, internal tools and vendor appliances.
  2. Patch internet-facing systems first. CISA says public-facing systems should get priority. A public website or portal is the most likely target.
  3. Update to a fixed release. Move to PHP 8.5.12, 8.4.27, 8.3.36 or 8.2.35, as CISA directs. Ask a hosting provider to confirm the version if the server is managed by someone else.
  4. Check vendor packages for older branches. CIS cites PHP guidance that Linux distributions and long-term support vendors may offer patched packages for older versions. If none exist, moving to a supported branch is the only complete fix.
  5. Take unpatchable systems offline. CISA says systems that cannot be updated right away, or that run PHP 8.1 or older, should come offline until they are fixed.
  6. Use a stopgap only as a bridge. For CVE-2026-109619, CIS lists a temporary measure: set session.upload_progress.enabled=0 and restart every worker. CIS stresses that only an update fully solves the problem.
  7. Add a web application firewall and watch for warning signs. CISA says a firewall of this kind may give some protection until updates land. It also says to watch for PHP worker processes that launch shells or download tools.

Teams without in-house staff can lean on managed IT services for the inventory and patch work. Broader monitoring and firewall setup fall under our cybersecurity solutions. It also helps to have a tested way back if an update breaks a site, which our disaster recovery services are built for.

What happens next

CISA updated its alert on October 23, 2026, adding a SIGMA detection rule and partner resources from agencies that include the NSA and the UK's NCSC. Security teams can use that rule to look for signs of attack in their logs.

CIS expects exploits to appear in the wild very quickly. The safest path is to finish updates now and then keep checking the CISA alert page for new guidance.

Frequently asked questions

Which PHP versions fix php2shell?
CISA lists PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35 as the fixed releases .
Has anyone been attacked yet?
As of its alert, CISA had not seen successful exploitation . Whether that has changed since its later update is not known.
Is the flaw critical or high severity?
It depends on the scoring system. NVD shows PHP's CVSS 4.0 score of 9.2, Critical, and its own CVSS 3.1 score of 8.1, High .
What if an update is not possible today?
CISA says to take the system offline until it is patched . A web application firewall may help in the meantime, but it is not a full fix.
Does this matter for a small business?
Yes. CIS rates the risk as medium for small businesses , and any public PHP site can be a target.

Sources

  1. CISA urges organizations to patch CVE-2026-109618 and CVE-2026-109619 right away , a pair of bugs nicknamed "php2shell." cisa.gov (accessed 2026-10-26)
  2. CISA says the two flaws allow remote code execution without any login . cisa.gov (accessed 2026-10-26)
  3. The fixed releases are PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35 , according to CISA. cisa.gov (accessed 2026-10-26)
  4. Sites still on PHP 8.1 or older should go offline until updated , CISA says. cisa.gov (accessed 2026-10-26)
  5. The Center for Internet Security rates the risk high for large and medium businesses and medium for small ones . cisecurity.org (accessed 2026-10-26)
  6. CIS expects working exploits to show up very quickly . cisecurity.org (accessed 2026-10-26)
  7. According to CISA's alert , the flaws affect every PHP installation that serves web requests. cisa.gov (accessed 2026-10-26)
  8. CISA notes that PHP itself sees mod_php as the highest-risk setup . cisa.gov (accessed 2026-10-26)
  9. The CVE record for CVE-2026-109619 describes it as a use-after-free bug, cataloged as CWE-416. cveawg.mitre.org (accessed 2026-10-26)
  10. That record was published on October 21, 2026 . cveawg.mitre.org (accessed 2026-10-26)
  11. NVD lists a CVSS 4.0 score of 9.2, rated Critical, supplied by PHP . services.nvd.nist.gov (accessed 2026-10-26)
  12. NVD's own CVSS 3.1 score is 8.1, rated High . services.nvd.nist.gov (accessed 2026-10-26)
  13. At the time of its alert, CISA had not seen successful attacks in the wild , but it warned that unpatched systems remain at risk. cisa.gov (accessed 2026-10-26)
  14. CIS says a successful attack could let an intruder install programs, read, change or delete data, or create accounts with full rights . cisecurity.org (accessed 2026-10-26)
  15. How much damage is possible depends on the privileges of the account the web service runs under, according to CIS . cisecurity.org (accessed 2026-10-26)
  16. CISA advises an inventory of every system running PHP and reminds teams that PHP often hides inside other software. cisa.gov (accessed 2026-10-26)
  17. CISA says public-facing systems should get priority . cisa.gov (accessed 2026-10-26)
  18. Move to PHP 8.5.12, 8.4.27, 8.3.36 or 8.2.35 , as CISA directs. cisa.gov (accessed 2026-10-26)
  19. CIS cites PHP guidance that Linux distributions and long-term support vendors may offer patched packages for older versions . cisecurity.org (accessed 2026-10-26)
  20. CISA says systems that cannot be updated right away, or that run PHP 8.1 or older, should come offline until they are fixed. cisa.gov (accessed 2026-10-26)
Advertisement

Want to know where your business is exposed?

Book a free 30-minute call. We will go over the basics every small business should have in place and where to start.

Book a free security call

Related service: Cybersecurity Solutions

Junious Digital Labs logo

Joshua Junious

Founder of Junious Digital Labs, a veteran-owned IT consultancy. Army National Guard veteran and former IT director. About Joshua

Reach readers across the Junious Media Network. Advertise with us →