---
title: php2shell (CVE-2026-109618 and CVE-2026-109619) – PHP critical vulnerability
  fixes available
description: Fixes for the php2shell critical severity security vulnerability are
  available for all supported Ubuntu releases.
url: https://staging.ubuntu.com/blog/php2shell-vulnerability-fixes-available
---

1. [Blog](https://staging.ubuntu.com/blog)
2. Article

---

[Luci Stanescu](https://staging.ubuntu.com/blog/author/lucistanescu "More about Luci Stanescu")

21 October 2026

# php2shell (CVE-2026-109618 and CVE-2026-109619) – PHP critical vulnerability fixes available

[Security](https://staging.ubuntu.com/blog/tag/security)
[Vulnerabilities](https://staging.ubuntu.com/blog/tag/vulnerabilities)

---

Share the article

## Introduction

Two critical security vulnerabilities affecting PHP have been identified that result in unauthenticated remote code execution (RCE) for any PHP application. The vulnerabilities have been assigned the [CVE-2026-109618](https://ubuntu.com/security/CVE-2026-109618) and [CVE-2026-109619](https://ubuntu.com/security/CVE-2026-109619) identifiers, but are also referred to using the php2shell nickname. Ubuntu has released fixes for the affected packages for all supported releases.

The two vulnerabilities both have a CVSS 4.0 score of 9.2, corresponding to a severity of CRITICAL.

The vulnerabilities have been responsibly disclosed and the PHP Foundation has engaged in coordinated vulnerability disclosure (CVD) with distributors, establishing a public disclosure date of 22 October 2026 at 14:00 UTC. However, due to a public leak, the disclosure date has been moved forward to 21 October 2026 14:00 UTC.

## Which Ubuntu releases are affected by php2shell?

|  |  |  |
| --- | --- | --- |
| **Release** | **Package Name** | **Remediation status** |
| Trusty (14.04) | php5 | Fixed in 5.5.9+dfsg-1ubuntu4.29+esm18 |
| Xenial (16.04) | php7.0 | Fixed in 7.0.33-0ubuntu0.16.04.16+esm22 |
| Bionic (18.04) | php7.2 | Fixed in 7.2.24-0ubuntu0.18.04.17+esm14 |
| Focal (20.04) | php7.4 | Fixed in 7.4.3-4ubuntu2.29+esm5 |
| Jammy (22.04) | php8.1 | Fixed in 8.1.2-1ubuntu2.28 |
| Noble (24.04) | php8.3 | Fixed in 8.3.6-0ubuntu0.24.04.13 |
| Resolute (26.04) | php8.5 | Fixed in 8.5.4-0ubuntu1.5 |
| Stonking (26.10) | php8.5 | Fixed in 8.5.9-0ubuntu2.1 |

## How to check if you are impacted by php2shell

You can verify the versions of any packages installed matching the PHP interpreter package name with the following command:

```
apt list '?installed ?name(^php[0-9.]+$)'
```

## Impact of php2shell

The two vulnerabilities affect any PHP application. An unauthenticated attacker with network access to the web application can trivially achieve arbitrary remote code execution with the PHP application’s credentials on the target system.

## How to apply fixes for php2shell

We recommend you upgrade all packages:

```
sudo apt update && sudo apt upgrade
```

If this is not possible, the affected component can be targeted:

```
sudo apt update && sudo apt install --only-upgrade '?name(^php[0-9.]+$)'
```

The application that uses the PHP interpreter would likely need to be restarted. For example, for an application using apache2 with mod\_php, restarting the apache daemon is required:

```
sudo systemctl restart apache2
```

Alternatively, the system can be rebooted to ensure that all applications use the updated components:

```
sudo reboot
```

The unattended-upgrades feature is enabled by default for Ubuntu 16.04 LTS onwards. This feature:

* Applies new security updates every 24 hours automatically.
* If you have this enabled, the patches above will be automatically applied within 24 hours of being available, but the affected applications would still need to be restarted or the system rebooted.

Ubuntu 26.10, 26.04 LTS, 24.04 LTS, and 22.04 LTS receive these fixes as part of standard support. If you are using Ubuntu 20.04 LTS or older, the Ubuntu Pro subscription offers coverage for up to 15 years. Ubuntu 20.04 LTS and 18.04 LTS are covered by Expanded Security Maintenance (ESM), while Ubuntu 16.04 LTS and 14.04 LTS require ESM with the Legacy add-on. Ubuntu Pro is free for up to 5 machines, or up to 50 machines for community members. Ubuntu Pro also provides access to Landscape which enables you to control the roll-out of security fixes across your estate. [Learn more](http://www.ubuntu.com/pro).

## References

* <https://ubuntu.com/security/notices/USN-8948-1>
* <https://ubuntu.com/security/notices/USN-8948-2>
* <https://www.php.net/archive/2026.php#2026-10-21-5>

[Get in touch

Interested in running Ubuntu in your organization?](https://staging.ubuntu.com/about/contact-us/form)

## Newsletter signup

Get the latest Ubuntu news and updates in your inbox.

Work email:

\*I agree to receive information about Canonical's
products and services.

In submitting this form, I confirm that I have read and agree to
[Canonical's Privacy Notice](https://canonical.com/legal/data-privacy/contact)
and [Privacy Policy](https://canonical.com/legal/data-privacy).

Sign up

## Share on

---

## Related posts

[### CVE-2026-109518 APT vulnerability fixes available](https://staging.ubuntu.com/blog/apt-vulnerability-fixes-available)

Fixes are available in Ubuntu for the CVE-2026-109518 vulnerability affecting APT.

[Luci Stanescu](https://staging.ubuntu.com/blog/author/lucistanescu)

4 November 2026

[### Fixes available for CVE-2026-98432](https://staging.ubuntu.com/blog/fixes-available-in-proposed-pocket-for-cve-2026-98432)

Fixes for the CVE-2026-98432 Linux kernel vulnerability are available for Ubuntu.

[Luci Stanescu](https://staging.ubuntu.com/blog/author/lucistanescu)

2 November 2026

[### Fixes available for CVE-2026-92392 and other curl vulnerabilities](https://staging.ubuntu.com/blog/curl-vulnerabilities-fixes-available)

Introduction On 7 October 2026, Daniel Stenberg published a blog post describing a plan to release a new version of curl on 14 October 2026 in order to address 22 known...

[Luci Stanescu](https://staging.ubuntu.com/blog/author/lucistanescu)

14 October 2026

[### Januscape vulnerability CVE-2026-53359 mitigations available](https://staging.ubuntu.com/blog/januscape-linux-vulnerability-mitigations-available)

Introduction A local privilege escalation (LPE) vulnerability affecting the Linux kernel was publicly disclosed on July 6, 2026. The vulnerability was assigned CVE ID...

[seth-arnold](https://staging.ubuntu.com/blog/author/seth-arnold)

11 July 2026
