SECURITY: php2shell CRITICAL VULNERABILITY, PATCH NOW!
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
sudodpkgsystemctl(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) and80and (http)
DAEMON
-
sudo systemctl stop <service>: stop service -
sudo systemctl disable <service>: disable on boot -
systemctl status <service>
LOGS
- check logs
/var/logs/...
OS
-
uname -r: get kernel version -
cat /etc/os-release: determine os
PHP
-
php --version: check version ofphpinstalled -
ls /usr/share/ | grep phpanddpkg -l | grep php: list the php packages installed
SUMMARY
- 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, usingdpkg -l | grep phpwill match thephp8.3with Ubuntu 24.04 LTS noble has the fixed patch installed withlibapache2-mod-php8.3and8.3.6-0ubuntu0.24.04.13. - If your OS,
phpversion, and fix status does not match, runsudo apt-get updateandsudo apt-get upgradeor 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. - 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
-
PHP official Security advisory ↩ ↩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). ↩
-
php github RCE via OOM corruption ↩ ↩2 ↩3
-
Ubuntu official post for CVE-2026-109619 ↩ ↩2
-
PHP official download and install instructions (php8.3) ↩
-
blog.avrstory.net's development release page. ↩
Glad people are taking care of this.
ReplyDelete