SECURITY: php2shell CRITICAL VULNERABILITY, PATCH NOW!

php logo 

Image from PHP's official logo.1

BACKGROUND

21 October 2026, a critical php vulnerability for remote code execution was uncovered. 2

ENVIRONMENT

Ubuntu servers (local, remote)

  • Apache
  • Laravel
  • Word Press
  • Joomla
  • Drupel

AUDIENCES

  • system admins
  • developers

PURPOSE

Patch critical vulnerabilities in php for potential remote code execution (RCE).

PROBLEM

cve2026-1096183 

cve2026-1096193

Critical vulnerability for potential RCE.

DIFFICULTY

  • medium

TOOLS & MATERIALS

  • sudo
  • dpkg
  • systemctl (if systemd)
  • apt
  • (optional) firewall firewalld, iptables, ufw, etc

UBUNTU AVAILABLE PATCHES

The table provided is verbatim from Canonical's Ubuntu post from their official website4. 

Package Ubuntu Release Status
php5 26.10 stonking Not in release
26.04 LTS resolute Not in release
24.04 LTS noble Not in release
22.04 LTS jammy Not in release
14.04 LTS trusty Fixed in 5.5.9+dfsg-1ubuntu4.29+esm18
php7.0 26.10 stonking Not in release
26.04 LTS resolute Not in release
24.04 LTS noble Not in release
22.04 LTS jammy Not in release
16.04 LTS xenial Fixed in 7.0.33-0ubuntu0.16.04.16+esm22
php7.2 26.10 stonking Not in release
26.04 LTS resolute Not in release
24.04 LTS noble Not in release
22.04 LTS jammy Not in release
18.04 LTS bionic Fixed in 7.2.24-0ubuntu0.18.04.17+esm14
php7.4 26.10 stonking Not in release
26.04 LTS resolute Not in release
24.04 LTS noble Not in release
22.04 LTS jammy Not in release
20.04 LTS focal Fixed in 7.4.3-4ubuntu2.29+esm5
php8.1 26.10 stonking Not in release
26.04 LTS resolute Not in release
24.04 LTS noble Not in release
22.04 LTS jammy Fixed in 8.1.2-1ubuntu2.28
php8.3 26.10 stonking Not in release
26.04 LTS resolute Not in release
24.04 LTS noble Fixed in 8.3.6-0ubuntu0.24.04.13
22.04 LTS jammy Not in release
php8.5 26.10 stonking Fixed in 8.5.9-0ubuntu2.1
26.04 LTS resolute Fixed in 8.5.4-0ubuntu1.5
24.04 LTS noble Not in release
22.04 LTS jammy Not in release

CAUTION & DISCLAIMER & CONSTRAINTS

Configurations between servers may vary. Match php versions with os version, etc. This tuts only focuses on (general) official patch releases from Ubuntu. Adding a new PPA, installing via dpkg (manual), and/or have Ubuntu Pro, regardless if it is considered safe is out of the scope of this blog post. Information provided here is provided as is. If you are unsure of steps to take, please contact your administrator or you can contact avrs_blog@avrstory.net.

ACTION_ITEMS

FIREWALLS

  • block incoming traffic 443 (https) and 80 and (http)

DAEMON

  1. sudo systemctl stop <service>: stop service
  2. sudo systemctl disable <service>: disable on boot
  3. systemctl status <service>

LOGS

  • check logs /var/logs/...

OS

  1. uname -r: get kernel version
  2. cat /etc/os-release: determine os

PHP

  1. php --version: check version of php installed
  2. ls /usr/share/ | grep php and dpkg -l | grep php: list the php packages installed

SUMMARY

  1. Using the available table from UBUNTU AVAILABLE PATCHES, look for lib<specific implementation of php>-mod-php8.[0-9]+ in the first column, and [0-9]+.[0-9]+.[0-9]+[0-9]ubuntu[0-9]+.[0-9]+.[\s0-9]+ in second column, match your OS version to the status, labeled fix. For example, using dpkg -l | grep php will match the php8.3 with Ubuntu 24.04 LTS noble has the fixed patch installed with libapache2-mod-php8.3 and 8.3.6-0ubuntu0.24.04.13.
  2. If your OS, php version, and fix status does not match, run sudo apt-get update and sudo apt-get upgrade or for just the packages you need, sudo apt-get install --only-upgrade php8.3* libapache2-mod-php8.3, substitute appropriate packages based on your setup.
  3. If the above steps did not help, consider installing external PPA.

FOR FURTHER READING

Delve a little deeper... Sources provided in the REFERENCES section:

  • php official github announcement3
  • php official security advisory1
  • php official download page5
  • php official download and install instructions (php8.3)6
  • Ubuntu official post for CVE-2026-1096164

VERSIONS

2026v.0.1.0:init7

REFERENCES

  1. PHP official Security advisory ↩ ↩2

  2. ncsc Critical security issue affecting PHP The NCSC is encouraging UK organisations to take immediate action to mitigate a security issue affecting PHP (CVE-2026-109618 and CVE-2026-109619). ↩

  3. php github RCE via OOM corruption ↩ ↩2 ↩3

  4. Ubuntu official post for CVE-2026-109619 ↩ ↩2

  5. PHP official download ↩

  6. PHP official download and install instructions (php8.3) ↩

  7. blog.avrstory.net's development release page. ↩

Comments

Post a Comment

Popular Posts