Skip to content

Install the PHP 8.3.36 security patch on a WCS DCA (Oracle Linux 9)

Three files, four commands. The patch upgrades the appliance's PHP 8.3 packages to PHP 8.3.36, which fixes CVE-2026-109618 and CVE-2026-109619. Settings, the PHP stream and the PECL extensions are kept. Validated on a WCS DCA test appliance (Oracle Linux 9.6, PHP 8.3.22 to 8.3.36) on 2026-10-23.

What you need

The files from WCS patch.ol9.to.php.8.3.36.install.sh (the wrapper) and patch.ol9.to.php.8.3.36.sh (the patch script). Optional: validate.scripts.sh, a report of what WCS says about your auth code and the two scripts; the wrapper does not need it
The WCS auth code of your update profile one code per customer, from WCS. It goes on the command line of both commands and is not stored on the appliance
Root on the appliance the root password for su -, or sudo rights for your login
Internet access from the appliance to WCS (secure.whitecloudsecurity.com) and to its enabled repositories (Remi, Oracle Linux, EPEL, Caddy). No internet: see "Appliance without internet access"
A snapshot take it right before step 4
A maintenance window 10 minutes. PHP pages are interrupted for about 15 seconds during step 4; Caddy stays up and agents retry

How the files prove who they are

Nothing inside the wrapper vouches for it. On every run the appliance sends the WCS handprint of both files to White Cloud Security's lookup service, the same service the agents use, identifying itself with your update profile's auth code, the DCA's own site name as hostname (for example dca.example.com, from the DCA configuration) and its hostid (/etc/machine-id, as the WCS agent derives it on Linux). WCS answers trusted only for the exact files WCS published to your update profile; anything else stops the run. The first contact enrols the appliance as a host of that profile, within the number of DCAs WCS authorised for auto-enrolment; beyond that the host waits for your WCS administrator's approval and the wrapper says so.

Steps

1. Copy the files to the appliance (from your workstation; dca is the appliance's administrative login, <appliance> its host name or IP address; -p keeps the files' dates):

scp -p patch.ol9.to.php.8.3.36.install.sh patch.ol9.to.php.8.3.36.sh validate.scripts.sh dca@<appliance>:/home/dca/

2. Log in and become root:

ssh dca@<appliance>
su -

3. Check. Changes nothing; takes about 30 seconds. To see first what WCS says about your auth code and the two scripts, run the optional report (a few seconds, results in green or red):

bash /home/dca/validate.scripts.sh <code from WCS>

Then the check itself:

bash /home/dca/patch.ol9.to.php.8.3.36.install.sh --check --auth-code <code from WCS>

The wrapper prints both handprints, has WCS confirm both files, checks the appliance, downloads and validates the update and runs the package transaction test. It ends with one of:

RESULT: PASS - check passed: 11 packages staged, nothing changed.
Next: take a snapshot of the appliance, then run in the maintenance window:
      bash /home/dca/patch.ol9.to.php.8.3.36.install.sh --apply --auth-code <code from WCS>
RESULT: PASS - this appliance already runs PHP 8.3.36, which has the fix. Nothing to install.

Anything else is a STOP: or RESULT: FAIL line; see "If it stops or fails".

4. Take the snapshot, then apply in the maintenance window; takes about 45 seconds:

bash /home/dca/patch.ol9.to.php.8.3.36.install.sh --apply --auth-code <code from WCS>

WCS confirms the files again, then the patch script backs up the PHP configuration, stops Apache and PHP-FPM, installs the packages, tests PHP and both service configurations, starts the services and checks the front end. The wrapper verifies the result and ends with:

RESULT: PASS - PHP 8.3.22 -> 8.3.36 on <appliance>.

5. In a browser, before ending the maintenance window: log in to the DCA, open an endpoint lookup, run an export, upload an avatar or certificate. Then exit the root shell. Done.

What the wrapper does for you

  • Has WCS confirm the identity of both files on every run, and refuses to continue on any other answer.
  • Keeps verified copies of both files in /var/www/patches/php.8.3.36/, outside the web roots.
  • Stops with a plain message when the appliance is not Oracle Linux 9, PHP is not 8.3, or PHP-FPM is not running, and warns when the Remi repository is unreachable or disk is low.
  • Writes a full log of every run plus a copy of the patch script's audit files to /root/wcs-php-patch/ (the originals in /var/tmp are cleaned after 30 days).
  • After a successful --apply: confirms the PHP command line, PHP-FPM and package versions, that every service that was running is running again, that PHP-FPM runs the new binary, that no .rpmnew or .rpmsave files were left, and that the front end answers; then removes its own and the patch script's uploaded copies from /home/dca (the verified copies stay under /var/www/patches). validate.scripts.sh is left in /home/dca; delete it if you prefer.

If it stops or fails

You see Do
STOP: Run this as root … su - first
STOP: no WCS auth code … add --auth-code <code>; your WCS administrator has the code of your update profile
STOP: WCS rejected the auth code … the code is wrong or no longer valid; check it with WCS
STOP: this appliance is enrolled … but is not enabled there yet … the auto-enrol allowance is used up or the host needs approval; ask your WCS administrator to enable the host in the update profile, then run again
STOP: WCS does not recognise … the file was altered in transfer, or WCS has not published this patch to your profile. Copy both files again; if it repeats, contact WCS
STOP: WCS reports … as BLOCKED … do not use the files; contact WCS support
STOP: WCS could not be asked … the appliance cannot reach secure.whitecloudsecurity.com; fix outbound access, or follow "Appliance without internet access"
STOP: this file has Windows (CRLF) line endings … the copy was changed by a Windows editor or transfer; copy the files again with scp
STOP: php-fpm is not active … systemctl start php-fpm, then systemctl status php-fpm; run the check again
WARN Remi repository not reachable followed by DNF download errors fix the appliance's outbound access or proxy, or use the offline bundle below
ERROR: php-common is PHP 8.3.x; need PHP 8.3.36 or newer … the repository does not offer the fix yet; wait, or use an approved offline bundle
RESULT: FAIL after --apply Apache and PHP-FPM may have been left stopped on purpose. Read the ERROR lines, check systemctl status php-fpm httpd caddy, and either fix and start the services or restore the snapshot. Do not reopen traffic until the DCA login works

Send /root/wcs-php-patch/<date>-<mode>.log to WCS support if you need help. The patch script's own messages and what they mean are listed in patch.ol9.to.php.8.3.36.manual.md.

Appliance without internet access

Without a connection to WCS the appliance cannot have the files confirmed, so WCS publishes a third file, patch.ol9.to.php.8.3.36.handprints.txt, with the handprints of both scripts. Copy it to /home/dca/ with the other files and compare that text file, by eye, with the handprints WCS published (web page or support email): it is your only proof of identity without WCS. Then run steps 3 and 4 with --offline added, and the wrapper checks both scripts against it (validate.scripts.sh needs WCS and is not used offline).

The PHP packages must then come from a prepared directory instead of the repositories. On an Oracle Linux 9 host that has the same Remi stream and internet access:

dnf download --destdir ./php-8.3.36-rpms php php-cli php-common php-fpm php-gd php-mbstring php-mysqlnd php-opcache php-pdo php-sodium php-xml

Copy that directory to the appliance as /root/php-8.3.36-rpms and add --rpm-dir /root/php-8.3.36-rpms to steps 3 and 4 as well. The bundle must cover every installed PHP core package (list them with rpm -qa --qf '%{NAME} %{SOURCERPM}\n' | awk '$2 ~ /^php-8\.3\./ { print $1 }') and must be signed by Remi's key, which the appliance already trusts.

More detail

  • patch.ol9.to.php.8.3.36.manual.md: the same procedure by hand, command by command, with expected output and the full troubleshooting table.
  • patch.ol9.to.php.8.3.36.md: technical notes on what the patch script checks, backs up, refuses and logs.