PHP security update
Last updated: (UTC)

Update PHP on Docker for PHP2Shell

PHP2Shell (CVE-2026-109618 / CVE-2026-109619) is a critical PHP vulnerability. Check your PHP runtime, confirm the vendor package, and apply the PHP security update to address PHP RCE.

PHP2Shell · CVE-2026-109618 / CVE-2026-109619 · PHP RCE · PHP security update

Back up your application and configuration, and test in staging before applying a PHP vulnerability update. Use only the package source and branch actually installed on your system.

Vendor package status

Branch / sourceConfirmed packagePHP2Shell · Status
PHP 8.5
docker-library
8.5.12
Source ↗
Fix confirmed
Checked at: 2026-10-22 03:28:58 UTC
PHP 8.4
docker-library
8.4.27
Source ↗
Fix confirmed
Checked at: 2026-10-22 03:28:58 UTC
PHP 8.3
docker-library
8.3.36
Source ↗
Fix confirmed
Checked at: 2026-10-22 03:28:58 UTC
PHP 8.2
docker-library
8.2.35
Source ↗
Fix confirmed
Checked at: 2026-10-22 03:28:58 UTC
PHP 8.1
docker-library
See vendor advisory
Source ↗
End-of-life upstream
Checked at: 2026-10-22 03:28:58 UTC
PHP 8.0
docker-library
See vendor advisory
Source ↗
End-of-life upstream
Checked at: 2026-10-22 03:28:58 UTC
PHP 7.4
docker-library
See vendor advisory
Source ↗
End-of-life upstream
Checked at: 2026-10-22 03:28:58 UTC

A confirmed advisory records vendor publication. It does not inspect your machine. Status not confirmed means no verified package threshold is recorded for that combination.

Which source installed your PHP?

An image tag, a registry manifest and the PHP runtime inside the image are separate pieces of evidence. Pin and verify the exact stable image.

This PHP vulnerability guide does not infer package publication from a source upload, a planned update or a release-candidate tag.

PHP 8.5: update, restart and verify

docker-library

The exact stable CLI image was pulled and its runtime verified on ARM64. FPM, Apache, Alpine and other architectures require separate checks. Recreate existing serving containers using your deployment process.

Checked at 2026-10-22 03:28:58 UTC · Vendor source ↗

Update

docker pull registry-1.docker.io/library/php:8.5.12-cli

Verify

docker run --rm registry-1.docker.io/library/php:8.5.12-cli php -v

Tested in Official PHP CLI image, local Docker ARM64. Run only for this source and installed branch. Commands require administrator access.

PHP 8.4: update, restart and verify

docker-library

The exact stable CLI image was pulled and ran PHP 8.4.27 on ARM64. This verifies that variant only; verify FPM, Apache, Alpine and other architectures separately. Existing serving containers must still be rebuilt or recreated through your deployment process.

Checked at 2026-10-22 03:28:58 UTC · Vendor source ↗

Update

docker pull registry-1.docker.io/library/php:8.4.27-cli

Verify

docker run --rm registry-1.docker.io/library/php:8.4.27-cli php -v

Tested in Official PHP 8.4.27 CLI image, local Docker ARM64. Run only for this source and installed branch. Commands require administrator access.

PHP 8.3: update, restart and verify

docker-library

The exact stable CLI image was pulled and its runtime verified on ARM64. FPM, Apache, Alpine and other architectures require separate checks. Recreate existing serving containers using your deployment process.

Checked at 2026-10-22 03:28:58 UTC · Vendor source ↗

Update

docker pull registry-1.docker.io/library/php:8.3.36-cli

Verify

docker run --rm registry-1.docker.io/library/php:8.3.36-cli php -v

Tested in Official PHP CLI image, local Docker ARM64. Run only for this source and installed branch. Commands require administrator access.

PHP 8.2: update, restart and verify

docker-library

The exact stable CLI image was pulled and its runtime verified on ARM64. FPM, Apache, Alpine and other architectures require separate checks. Recreate existing serving containers using your deployment process.

Checked at 2026-10-22 03:28:58 UTC · Vendor source ↗

Update

docker pull registry-1.docker.io/library/php:8.2.35-cli

Verify

docker run --rm registry-1.docker.io/library/php:8.2.35-cli php -v

Tested in Official PHP CLI image, local Docker ARM64. Run only for this source and installed branch. Commands require administrator access.

PHP 8.1: update, restart and verify

docker-library

Image publication must be confirmed by pulling the exact stable tag and checking the runtime. Release-candidate tags are not evidence of a fix.

Checked at 2026-10-22 03:28:58 UTC · Vendor source ↗

Update → Restart → Verify

Untested — follow vendor docs. Executable commands are withheld because this exact environment has not been tested. Back up and test in staging, apply the vendor update, restart the PHP runtime, and compare the installed package with the advisory.

Open vendor instructions ↗

PHP 8.0: update, restart and verify

docker-library

Image publication must be confirmed by pulling the exact stable tag and checking the runtime. Release-candidate tags are not evidence of a fix.

Checked at 2026-10-22 03:28:58 UTC · Vendor source ↗

Update → Restart → Verify

Untested — follow vendor docs. Executable commands are withheld because this exact environment has not been tested. Back up and test in staging, apply the vendor update, restart the PHP runtime, and compare the installed package with the advisory.

Open vendor instructions ↗

PHP 7.4: update, restart and verify

docker-library

Image publication must be confirmed by pulling the exact stable tag and checking the runtime. Release-candidate tags are not evidence of a fix.

Checked at 2026-10-22 03:28:58 UTC · Vendor source ↗

Update → Restart → Verify

Untested — follow vendor docs. Executable commands are withheld because this exact environment has not been tested. Back up and test in staging, apply the vendor update, restart the PHP runtime, and compare the installed package with the advisory.

Open vendor instructions ↗

If you cannot update immediately

Temporary mitigation is not a complete fix. A PHP vulnerability affecting web requests needs a verified runtime update. Have your administrator assess the availability and operational impact of these measures.

Disable session upload progress before request parsing

session.upload_progress.enabled = Off

Set this in the configuration used by the website runtime, before request parsing, then restart every serving PHP worker. Do not rely on application-level configuration changes or FPM per-directory overrides. Disabling it removes PHP's built-in session upload-progress feature.

Blocks the confirmed session upload-progress paths of CVE-2026-109619 only. It does not fix CVE-2026-109618 or every stale-state path. Test the application after changing configuration. A successful configuration check does not demonstrate that exploitation is impossible.

What about the other session settings?

The cleanup, strict-mode, cookie-only and HttpOnly settings sometimes shared alongside this measure concern session housekeeping or general session hardening. PHP's advisory does not identify them as fixes for these two vulnerabilities. Do not mark a server patched after applying that five-line snippet.

  • For the out-of-memory PHP vulnerability, the advisory describes administratively removing the memory limit and restricting request sizes. Removing the memory limit can exhaust host resources and is still incomplete.
  • For the branch covered by the advisory, PHP also lists disabling fatal-error backtraces. Correct recurring startup configuration warnings and restart all workers.
  • Read the exact settings and limitations in the PHP security advisory before making further configuration changes.

Checked at 2026-10-21 23:25:00 UTC. PHP stale-state advisory: mitigation limits ↗ PHP session configuration reference ↗

After the PHP security update

Test critical requests, application logs, scheduled tasks and background workers. Keep a record of the package source and revision used to resolve this PHP vulnerability. If the branch is end-of-life, plan the next supported-version migration.

Plan a supported-version migration →

Common questions

Why does my PHP version still look old after updating?

Distribution vendors often backport a PHP vulnerability fix without changing the upstream version. Match the installed package revision to your vendor advisory and confirm the web runtime.

Does updating command-line PHP also update my website?

It depends on your installed runtimes. The command line, PHP-FPM and a hosting panel can use different binaries. Verify the runtime serving each website after the PHP security update.

Do I need to restart PHP workers?

Yes. Follow the vendor restart procedure for all serving workers, including PHP-FPM, Apache and long-running application workers. A package update alone does not prove every process is running the new runtime.

Sources & verification