PHP security update
Last updated: (UTC)Advisory checked: UTC

How do I fix PHP2Shell in BT / aaPanel?

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

For BT, use the vendor PHP update for the operating system and branch actually serving the site. Linux backport labels do not establish a Windows PHP vulnerability fix; aaPanel publication must be checked separately.

Steps to fix it

  1. Back up and test. Identify the website’s PHP branch and whether the server runs Linux or Windows.
  2. In BT Software Store → Installed, refresh the software list, then use the update entry for the website’s PHP branch. Match the vendor record below; do not substitute a different system’s package. Linux PHP 7.0–7.3 now also use this panel update route; the PHP 5.6 test build is not a confirmed stable update.
  3. Restart the serving PHP runtime using the panel procedure, then verify the website’s version and important functions. Ask the provider to confirm the build if the update is missing.
Version checker →

Questions about this fix

Must I update the BT panel before installing the PHP vulnerability fix?

BT says the PHP security update does not require a panel upgrade first. Refresh the installed-software list and check the PHP update entry.

Can I apply BT Linux backport numbers to Windows or aaPanel?

No. Check each operating system and vendor independently. An unconfirmed combination remains unconfirmed; temporary mitigation is not a complete fix.

Official instructions: BT PHP security update ↗ · aaPanel 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
aapanel
8.5.12
Source ↗
Fix confirmed
Checked at: 2026-10-30 11:24:02 UTC
PHP 8.4
aapanel
8.4.27
Source ↗
Fix confirmed
Checked at: 2026-10-30 11:24:02 UTC
PHP 8.3
aapanel
8.3.36
Source ↗
Fix confirmed
Checked at: 2026-10-30 11:24:02 UTC
PHP 8.2
aapanel
8.2.35
Source ↗
Fix confirmed
Checked at: 2026-10-30 11:24:02 UTC
PHP 8.1
aapanel
8.1.35
Source ↗
Vendor backport confirmed
Checked at: 2026-10-30 11:24:02 UTC
PHP 8.0
aapanel
8.0.31
Source ↗
Vendor backport confirmed
Checked at: 2026-10-30 11:24:02 UTC
PHP 7.4
aapanel
7.4.34
Source ↗
Vendor backport confirmed
Checked at: 2026-10-30 11:24:02 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.

BT panel status

This package family has a separate vendor publication schedule. Confirm the exact source before applying a PHP vulnerability update.

Branch / sourceConfirmed packagePHP2Shell · Status
PHP 8.5
bt · Linux / Windows
8.5.12
Source ↗
Fix confirmed
Checked at: 2026-10-30 19:15:48 UTC
PHP 8.4
bt · Linux / Windows
8.4.27
Source ↗
Fix confirmed
Checked at: 2026-10-30 19:15:48 UTC
PHP 8.3
bt · Linux / Windows
8.3.36
Source ↗
Fix confirmed
Checked at: 2026-10-30 19:15:48 UTC
PHP 8.2
bt · Linux / Windows
8.2.35
Source ↗
Fix confirmed
Checked at: 2026-10-30 19:15:48 UTC
PHP 8.1
bt · Linux
8.1.35
Source ↗
Vendor backport confirmed
Checked at: 2026-10-30 19:15:48 UTC
PHP 8.0
bt · Linux
8.0.31
Source ↗
Vendor backport confirmed
Checked at: 2026-10-30 19:15:48 UTC
PHP 7.4
bt · Linux
7.4.34
Source ↗
Vendor backport confirmed
Checked at: 2026-10-30 19:15:48 UTC
PHP 8.1
bt · Windows
See vendor advisory
Source ↗
Fix not yet confirmed in packages
Checked at: 2026-10-30 19:15:48 UTC
PHP 8.0
bt · Windows
See vendor advisory
Source ↗
Fix not yet confirmed in packages
Checked at: 2026-10-30 19:15:48 UTC
PHP 7.4
bt · Windows
See vendor advisory
Source ↗
Fix not yet confirmed in packages
Checked at: 2026-10-30 19:15:48 UTC
PHP 7.0
bt · Linux
7.0.34
Source ↗
Vendor backport confirmed
Vendor channel: stable
Checked at: 2026-10-30 19:15:48 UTC
PHP 7.1
bt · Linux
7.1.34
Source ↗
Vendor backport confirmed
Vendor channel: stable
Checked at: 2026-10-30 19:15:48 UTC
PHP 7.2
bt · Linux
7.2.35
Source ↗
Vendor backport confirmed
Vendor channel: stable
Checked at: 2026-10-30 19:15:48 UTC
PHP 7.3
bt · Linux
7.3.34
Source ↗
Vendor backport confirmed
Vendor channel: stable
Checked at: 2026-10-30 19:15:48 UTC
PHP 5.6
bt · Linux · testing
See vendor advisory
Source ↗
Status not confirmed — check vendor advisory
Checked at: 2026-10-30 19:15:48 UTC
PHP 5.4
bt · Linux · testing
See vendor advisory
Source ↗
Status not confirmed — check vendor advisory
Checked at: 2026-10-30 19:15:48 UTC
PHP 5.5
bt · Linux · testing
See vendor advisory
Source ↗
Status not confirmed — check vendor advisory
Checked at: 2026-10-30 19:15:48 UTC

BT confirms PHP vulnerability fixes for PHP 8.2–8.5 on its Linux and Windows panels. Refresh the software list and update each website runtime. Panel installation and restart have not been tested here.

BT confirms PHP vulnerability backports for PHP 7.4, 8.0 and 8.1 on Linux only. Its 7.4.34, 8.0.31 and 8.1.35 labels are BT Linux packages, not upstream releases. Do not apply those labels to BT Windows or another vendor. Confirm the updated build in the panel; installation has not been tested here.

BT has not announced fixed PHP vulnerability packages for PHP 8.1 or earlier on its Windows panel. The vendor describes session-upload-progress mitigation for CVE-2026-109619; it does not fix CVE-2026-109618. Plan a move to a supported, fixed branch. Linux backport package labels do not establish a Windows fix.

BT now offers the Linux PHP vulnerability backports for PHP 7.0–7.3 through Software Store → Installed after refreshing the software list. The repair versions are BT builds, not upstream releases. Back up and test, then verify PHP services, extensions and site functions after the panel update. Panel installation and restarts were not tested here; this does not confirm Windows or aaPanel.

BT lists PHP 5.4.47, 5.5.40 and 5.6.42 as Linux PHP vulnerability repair builds open for testing. Real-business compatibility and stability remain unverified, and PHP 5 builds are not in Software Store. The vendor documents update commands, but this guide does not publish commands that have not been tested. Source availability does not establish a stable fix. Plan migration to a supported PHP branch.

Which source installed your PHP?

Panel-managed PHP and distribution PHP are separate installations. Check the runtime assigned to each website. Refresh the application list and verify the installed runtime after updating; mirror and build failures can delay individual installations.

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

aapanel

aaPanel’s official security guide confirms PHP 8.2–8.5 upstream releases and lists aaPanel Linux builds PHP 8.1.35, 8.0.31 and 7.4.34, plus 7.0–7.3 backports, as patched and available in the App Store. This record confirms the branch build label and App Store availability only; the full package revision, architecture-specific artifacts and local installation were not independently verified.

Checked at 2026-10-30 11:24:02 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.4: update, restart and verify

aapanel

aaPanel’s official security guide confirms PHP 8.2–8.5 upstream releases and lists aaPanel Linux builds PHP 8.1.35, 8.0.31 and 7.4.34, plus 7.0–7.3 backports, as patched and available in the App Store. This record confirms the branch build label and App Store availability only; the full package revision, architecture-specific artifacts and local installation were not independently verified.

Checked at 2026-10-30 11:24:02 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.3: update, restart and verify

aapanel

aaPanel’s official security guide confirms PHP 8.2–8.5 upstream releases and lists aaPanel Linux builds PHP 8.1.35, 8.0.31 and 7.4.34, plus 7.0–7.3 backports, as patched and available in the App Store. This record confirms the branch build label and App Store availability only; the full package revision, architecture-specific artifacts and local installation were not independently verified.

Checked at 2026-10-30 11:24:02 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.2: update, restart and verify

aapanel

aaPanel’s official security guide confirms PHP 8.2–8.5 upstream releases and lists aaPanel Linux builds PHP 8.1.35, 8.0.31 and 7.4.34, plus 7.0–7.3 backports, as patched and available in the App Store. This record confirms the branch build label and App Store availability only; the full package revision, architecture-specific artifacts and local installation were not independently verified.

Checked at 2026-10-30 11:24:02 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.1: update, restart and verify

aapanel

aaPanel’s official security guide confirms PHP 8.2–8.5 upstream releases and lists aaPanel Linux builds PHP 8.1.35, 8.0.31 and 7.4.34, plus 7.0–7.3 backports, as patched and available in the App Store. This record confirms the branch build label and App Store availability only; the full package revision, architecture-specific artifacts and local installation were not independently verified.

Checked at 2026-10-30 11:24:02 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

aapanel

aaPanel’s official security guide confirms PHP 8.2–8.5 upstream releases and lists aaPanel Linux builds PHP 8.1.35, 8.0.31 and 7.4.34, plus 7.0–7.3 backports, as patched and available in the App Store. This record confirms the branch build label and App Store availability only; the full package revision, architecture-specific artifacts and local installation were not independently verified.

Checked at 2026-10-30 11:24:02 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

aapanel

aaPanel’s official security guide confirms PHP 8.2–8.5 upstream releases and lists aaPanel Linux builds PHP 8.1.35, 8.0.31 and 7.4.34, plus 7.0–7.3 backports, as patched and available in the App Store. This record confirms the branch build label and App Store availability only; the full package revision, architecture-specific artifacts and local installation were not independently verified.

Checked at 2026-10-30 11:24:02 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