AWS Security ChangesHomeSearch

AWS lightsail: Lightsail: revise PHP CVE-2026-109618/109619 remediation guide

Service: lightsail · 2026-11-19 · Security-related medium

File: lightsail/latest/userguide/amazon-lightsail-update-php-security-vulnerabilities.md · Type: rce · CVE: CVE-2026-109618

Summary

Editorial rewrite of the Lightsail PHP vulnerability update guide: retitles section headings, adds links to CVE records, restructures the affected-instances list (Lightsail/Bitnami/manual installs), converts steps into numbered procedures, consolidates snapshot guidance into each procedure, and clarifies third-party Sury repository ownership.

Security assessment

The page documents remediation for two critical, remotely exploitable PHP flaws (unauthenticated RCE) and the change strengthens the security guidance by adding official CVE hyperlinks, expanding which blueprint types are affected, and consolidating snapshot/backup steps into each update procedure. The rest is stylistic restructure with no new technical guidance.

Evidence

On October 21, 2026, the PHP project released security updates that fix two critical vulnerabilities, identified by the Common Vulnerabilities and Exposures (CVE) IDs [CVE-2026-109618](https://www.cve.org/CVERecord?id=CVE-2026-109618) and [CVE-2026-109619](https://www.cve.org/CVERecord?id=CVE-2026-109619). Both vulnerabilities are rated critical with a CVSS v4.0 score of 9.2 out of 10. Both vulnerabilities can allow an unauthenticated attacker to run code remotely on a server that uses PHP to serve web requests.

Diff

diff --git a/lightsail/latest/userguide/amazon-lightsail-update-php-security-vulnerabilities.md b/lightsail/latest/userguide/amazon-lightsail-update-php-security-vulnerabilities.md
index 6955f81..7a74392 100644
--- a//lightsail/latest/userguide/amazon-lightsail-update-php-security-vulnerabilities.md
+++ b//lightsail/latest/userguide/amazon-lightsail-update-php-security-vulnerabilities.md
@@ -7 +7 @@
-Which instances are affectedBefore you beginUpdate PHP on instances created from Lightsail blueprintsUpdate PHP on instances created from Bitnami blueprintsUpdate PHP on Windows Server instancesAdditional resources
+Affected instancesUpdating PHP on instances created from Lightsail blueprintsUpdating PHP on instances created from Bitnami blueprintsUpdating PHP on Windows Server instancesAdditional resources
@@ -9 +9 @@ Which instances are affectedBefore you beginUpdate PHP on instances created from
-# Update PHP on Lightsail instances to address CVE-2026-109618 and CVE-2026-109619
+# Updating PHP on Lightsail to fix CVE-2026-109618 and CVE-2026-109619
@@ -11 +11 @@ Which instances are affectedBefore you beginUpdate PHP on instances created from
-On October 21, 2026, the PHP project released security updates that fix two critical vulnerabilities, CVE-2026-109618 and CVE-2026-109619, both rated Critical with a CVSS v4.0 score of 9.2 out of 10. Both vulnerabilities can allow an unauthenticated attacker to run code remotely on a server that uses PHP to serve web requests.
+On October 21, 2026, the PHP project released security updates that fix two critical vulnerabilities, identified by the Common Vulnerabilities and Exposures (CVE) IDs [CVE-2026-109618](https://www.cve.org/CVERecord?id=CVE-2026-109618) and [CVE-2026-109619](https://www.cve.org/CVERecord?id=CVE-2026-109619). Both vulnerabilities are rated critical with a CVSS v4.0 score of 9.2 out of 10. Both vulnerabilities can allow an unauthenticated attacker to run code remotely on a server that uses PHP to serve web requests.
@@ -13 +13 @@ On October 21, 2026, the PHP project released security updates that fix two crit
-  * **CVE-2026-109618** : When PHP runs out of memory while handling a request, it can leave internal request data partially set up, which later cleanup may treat as valid.
+The two vulnerabilities work as follows:
@@ -15 +15,3 @@ On October 21, 2026, the PHP project released security updates that fix two crit
-  * **CVE-2026-109619** : Internal state from one request can survive after its memory is freed, and a later request handled by the same PHP worker may use it.
+  * **CVE-2026-109618** – When PHP runs out of memory while handling a request, it can leave internal request data partially set up, which later cleanup might treat as valid.
+
+  * **CVE-2026-109619** – Internal state from one request can survive after its memory is freed, and a later request handled by the same PHP worker might use it.
@@ -31 +33 @@ Note
-We recommend that you use PHP 8.2 or later. PHP 8.1 and older no longer receive updates from the PHP project. However, the Sury PHP repository (packages.sury.org) has published fixes for these vulnerabilities for PHP 5.6 through 8.1 on Debian. If you can't upgrade to PHP 8.2 or later right away, you can install these fixes from the Sury repository, and then plan to upgrade to a supported version. For the commands to add the Sury repository, see Add the Sury PHP package repository and install PHP-FPM.
+We recommend that you use PHP 8.2 or later. PHP 8.1 and older no longer receive updates from the PHP project. However, the Sury PHP repository (packages.sury.org) has published fixes for these vulnerabilities for PHP 5.6 through 8.1 on Debian. If you can't upgrade to PHP 8.2 or later right away, you can install these fixes from the Sury repository and then plan to upgrade to a supported version. For the commands to add the Sury repository and install PHP FastCGI Process Manager (PHP-FPM), see Add the Sury PHP package repository and install PHP-FPM.
@@ -33 +35 @@ We recommend that you use PHP 8.2 or later. PHP 8.1 and older no longer receive
-The Sury PHP repository is a third-party repository. It is not owned or maintained by AWS. For more information, see the [Sury website](https://deb.sury.org/).
+The Sury PHP repository is a third-party repository. AWS doesn't own or maintain it. For more information, see the [Sury website](https://deb.sury.org/).
@@ -35 +37 @@ The Sury PHP repository is a third-party repository. It is not owned or maintain
-If your Lightsail instance runs PHP, we recommend that you update it as soon as possible. To find out whether your instance is affected, see Which instances are affected. For details about the vulnerabilities, see the [PHP security advisory](https://www.php.net/index.php#2026-10-20-1) on the PHP website.
+If your Lightsail instance runs PHP, we recommend that you update it as soon as possible. To find out whether your instance is affected, see Affected instances. For details about the vulnerabilities, see the [PHP security advisory](https://www.php.net/index.php#2026-10-20-1) on the PHP website.
@@ -41,3 +43 @@ On October 23, 2026, the PHP project disclosed CVE-2026-115560, which the versio
-**Contents**
-
-  * Which instances are affected
+## Topics
@@ -45 +45 @@ On October 23, 2026, the PHP project disclosed CVE-2026-115560, which the versio
-  * Before you begin
+  * Affected instances
@@ -47 +47 @@ On October 23, 2026, the PHP project disclosed CVE-2026-115560, which the versio
-  * Update PHP on instances created from Lightsail blueprints
+  * Updating PHP on instances created from Lightsail blueprints
@@ -49 +49 @@ On October 23, 2026, the PHP project disclosed CVE-2026-115560, which the versio
-  * Update PHP on instances created from Bitnami blueprints
+  * Updating PHP on instances created from Bitnami blueprints
@@ -51 +51 @@ On October 23, 2026, the PHP project disclosed CVE-2026-115560, which the versio
-  * Update PHP on Windows Server instances
+  * Updating PHP on Windows Server instances
@@ -58 +58,7 @@ On October 23, 2026, the PHP project disclosed CVE-2026-115560, which the versio
-## Which instances are affected
+## Affected instances
+
+Your instance might be affected if it runs PHP. This includes instances created from the following blueprints:
+
+  * **Blueprints packaged by Lightsail** – WordPress, WordPress Multisite, LAMP, and Nginx
+
+  * **Blueprints packaged by Bitnami** – WordPress, WordPress Multisite, LAMP, and other PHP-based applications
@@ -60 +66 @@ On October 23, 2026, the PHP project disclosed CVE-2026-115560, which the versio
-Your instance may be affected if it runs PHP. This includes instances created from the following blueprints:
+  * **Manual installation** – Any instance where you installed PHP yourself, including Linux and Windows Server instances
@@ -62 +67,0 @@ Your instance may be affected if it runs PHP. This includes instances created fr
-  * **Blueprints packaged by Lightsail** : WordPress, WordPress Multisite, LAMP, and Nginx.
@@ -64 +68,0 @@ Your instance may be affected if it runs PHP. This includes instances created fr
-  * **Blueprints packaged by Bitnami** : WordPress, WordPress Multisite, LAMP, and other PHP-based applications.
@@ -66 +69,0 @@ Your instance may be affected if it runs PHP. This includes instances created fr
-  * **Any instance where you installed PHP yourself** , including Linux and Windows Server instances.
@@ -67,0 +71 @@ Your instance may be affected if it runs PHP. This includes instances created fr
+Instances created from the Node.js and Ruby on Rails blueprints and operating system blueprints such as Ubuntu and Amazon Linux do not include PHP unless you installed PHP on the instance.
@@ -68,0 +73 @@ Your instance may be affected if it runs PHP. This includes instances created fr
+If you create a new instance from a blueprint that includes PHP, follow the steps in Updating PHP on instances created from Lightsail blueprints after you create it to make sure that it runs a fixed PHP version.
@@ -69,0 +75 @@ Your instance may be affected if it runs PHP. This includes instances created fr
+###### To check whether PHP is installed and which version it runs
@@ -71 +77 @@ Your instance may be affected if it runs PHP. This includes instances created fr
-Instances created from the Node.js and Ruby on Rails blueprints, and operating system blueprints such as Ubuntu and Amazon Linux, do not include PHP unless you installed PHP on the instance.
+  1. Connect to your instance using SSH.
@@ -73 +79 @@ Instances created from the Node.js and Ruby on Rails blueprints, and operating s
-To check whether PHP is installed and which version it runs, connect to your instance using SSH and run `php -v`. On instances created from Bitnami blueprints, run `/opt/bitnami/php/bin/php -v`.
+  2. Run the following command.
@@ -75 +81,5 @@ To check whether PHP is installed and which version it runs, connect to your ins
-If you create a new instance from a blueprint that includes PHP, follow the steps in Update PHP on instances created from Lightsail blueprints after you create it to make sure that it runs a fixed PHP version.
+        php -v
+
+On instances created from Bitnami blueprints, run the following command instead:
+    
+        /opt/bitnami/php/bin/php -v
@@ -77 +86,0 @@ If you create a new instance from a blueprint that includes PHP, follow the step
-## Before you begin
@@ -79 +87,0 @@ If you create a new instance from a blueprint that includes PHP, follow the step
-Before you make any changes to your instance, create a snapshot of it. If something goes wrong during the update, you can create a new instance from the snapshot to restore your site. For more information, see [Back up Linux/Unix Lightsail instances with snapshots](./lightsail-how-to-create-a-snapshot-of-your-instance.html).
@@ -81 +89,2 @@ Before you make any changes to your instance, create a snapshot of it. If someth
-## Update PHP on instances created from Lightsail blueprints
+
+## Updating PHP on instances created from Lightsail blueprints
@@ -85 +94,3 @@ Follow these steps for instances created from the following blueprints packaged
-  1. Create a snapshot of your instance as a backup.
+###### To update PHP on an instance created from a Lightsail blueprint
+
+  1. Create a snapshot of your instance as a backup. If something goes wrong during the update, you can create a new instance from the snapshot to restore your site. For more information, see [Back up Linux/Unix Lightsail instances with snapshots](./lightsail-how-to-create-a-snapshot-of-your-instance.html).
@@ -113 +124 @@ The version shown should be the fixed version for your PHP release line or newer
-## Update PHP on instances created from Bitnami blueprints
+## Updating PHP on instances created from Bitnami blueprints
@@ -115 +126 @@ The version shown should be the fixed version for your PHP release line or newer
-Bitnami blueprints include their own copy of PHP under `/opt/bitnami/php`. This copy is not updated by `apt upgrade`.
+Bitnami blueprints include their own copy of PHP under `/opt/bitnami/php`. `apt upgrade` doesn't update this copy.
@@ -117 +128 @@ Bitnami blueprints include their own copy of PHP under `/opt/bitnami/php`. This
-### Recommended: Move to a Lightsail blueprint
+We recommend that you move your application to an instance created from a blueprint packaged by Lightsail, such as WordPress or LAMP. You can update PHP on these instances with `apt upgrade`, now and for future security updates. For more information, see [Migrating from Bitnami blueprints to Lightsail blueprints](./migrate-from-bitnami-to-lightsail-blueprints.html).
@@ -119 +130 @@ Bitnami blueprints include their own copy of PHP under `/opt/bitnami/php`. This
-We recommend that you move your application to an instance created from a blueprint packaged by Lightsail, such as WordPress or LAMP. PHP on these instances can be updated with `apt upgrade`, now and for future security updates. For more information, see [Migrating from Bitnami blueprints to Lightsail blueprints](./migrate-from-bitnami-to-lightsail-blueprints.html).
+###### To move to a Lightsail blueprint (recommended)
@@ -121 +132 @@ We recommend that you move your application to an instance created from a bluepr
-  1. Create a snapshot of your current instance as a backup.
+  1. Create a snapshot of your current instance as a backup. If something goes wrong during the update, you can create a new instance from the snapshot to restore your site. For more information, see [Back up Linux/Unix Lightsail instances with snapshots](./lightsail-how-to-create-a-snapshot-of-your-instance.html).
@@ -134,2 +144,0 @@ We recommend that you move your application to an instance created from a bluepr
-### Alternative: Replace the Bitnami PHP in place
-
@@ -140 +149,3 @@ These steps change several configuration files on your instance. If you're not c
-  1. **Create a snapshot** of your instance as a backup.
+###### To replace the Bitnami PHP in place
+
+  1. **Create a snapshot** of your instance as a backup. If something goes wrong during the update, you can create a new instance from the snapshot to restore your site. For more information, see [Back up Linux/Unix Lightsail instances with snapshots](./lightsail-how-to-create-a-snapshot-of-your-instance.html).
@@ -146 +157 @@ These steps change several configuration files on your instance. If you're not c
-  3. **Add the Sury PHP package repository and install PHP-FPM.** Debian's own repositories only provide one PHP release line, so add the Sury PHP repository (packages.sury.org), which provides all supported PHP release lines for Debian. Run the following commands. The first line of the commands reads the release line of your Bitnami PHP, the same one that you checked in the previous step (for example, `8.2`), and saves it in the `PHP_VERSION` variable, so that you install the same release line.
+  3. **Add the Sury PHP package repository and install PHP-FPM.** The Debian repositories only provide one PHP release line, so add the Sury PHP repository (packages.sury.org), which provides all supported PHP release lines for Debian. Run the following commands. The first line of the commands reads the release line of your Bitnami PHP, the same one that you checked in the previous step (for example, `8.2`), and saves it in the `PHP_VERSION` variable so that you install the same release line.
@@ -150 +161 @@ Important
-The Sury PHP repository is a third-party repository. It is not owned or maintained by AWS. For more information, see the [Sury website](https://deb.sury.org/).
+The Sury PHP repository is a third-party repository. AWS doesn't own or maintain it. For more information, see the [Sury website](https://deb.sury.org/).
@@ -165 +176 @@ Note
-The `PHP_VERSION` variable is used in the following steps. Run the remaining steps in the same SSH session.
+The following steps use the `PHP_VERSION` variable. Run the remaining steps in the same SSH session.
@@ -169 +180 @@ The `PHP_VERSION` variable is used in the following steps. Run the remaining ste
-Run the following commands. They use the MariaDB socket if it exists, and otherwise use the MySQL socket, then set it in the new PHP's configuration:
+Run the following commands. They use the MariaDB socket if it exists, and otherwise use the MySQL socket, then set it in the new PHP configuration:
@@ -273 +284 @@ For WordPress and WordPress Multisite instances, you can also check in the WordP
-## Update PHP on Windows Server instances
+## Updating PHP on Windows Server instances
@@ -275 +286,7 @@ For WordPress and WordPress Multisite instances, you can also check in the WordP
-Lightsail Windows Server blueprints do not include PHP. If you installed PHP yourself, first create a snapshot of your instance as a backup. Then update PHP using the same method that you used to install it:
+Lightsail Windows Server blueprints do not include PHP. If you installed PHP yourself, update it using the same method that you used to install it.
+
+###### To update PHP on a Windows Server instance
+
+  1. Create a snapshot of your instance as a backup. If something goes wrong during the update, you can create a new instance from the snapshot to restore your site. For more information, see [Create a snapshot of your Lightsail Windows Server instance](./prepare-windows-based-instance-and-create-snapshot.html).
+
+  2. Update PHP using the same method that you used to install it:
@@ -280,0 +298,3 @@ Lightsail Windows Server blueprints do not include PHP. If you installed PHP you
+  3. Restart your web server (for example, IIS or Apache).
+
+  4. Run `php -v` to confirm the version.
@@ -284 +303,0 @@ Lightsail Windows Server blueprints do not include PHP. If you installed PHP you
-After updating, restart your web server (for example, IIS or Apache) and run `php -v` to confirm the version.