Security Alert: Two Critical PHP Vulnerabilities – Emergency Patches October 21

I wanted to make the OpenEMR community aware of two critical PHP vulnerabilities disclosed today, October 20, 2026.
The PHP security team has announced an emergency security release scheduled for October 21 at 14:00 UTC (9:00 AM Central).
The vulnerabilities are identified as:
CVE-2026-109618
CVE-2026-109619
Both have been assigned a CVSS v4.0 severity score of 9.2 (Critical).
Security researchers are reporting that these vulnerabilities may allow remote code execution (RCE), potentially permitting attackers to execute malicious code on affected servers.
PHP has not yet published the complete technical details, affected versions, or fixed versions. However, preliminary reports suggest that multiple PHP generations may be affected.
Why this matters to OpenEMR
Because OpenEMR runs on PHP, administrators should pay close attention to this disclosure, especially those operating internet-facing installations containing sensitive patient information.
This is a vulnerability in PHP itself, not a confirmed vulnerability in OpenEMR’s application code.
Recommended precautions
Identify the PHP versions running on your OpenEMR servers.
Prepare to deploy the security updates as soon as they become available.
If using Docker, verify that your container images include the updated PHP packages. Simply restarting an existing container will not necessarily apply the fix.
Review firewall and network exposure, particularly for publicly accessible installations.
If using Cloudflare or another WAF, ensure security protections are enabled, but don’t assume a reverse proxy alone will prevent exploitation.
For managed hosting, contact your provider to confirm their emergency patching plans.

Sources:
Official PHP announcement: PHP: News Archive - 2026
BleepingComputer: PHP warns admins of two critical flaws, emergency patches coming tomorrow

I’m seeing this as a temporary fix. Im not positive though.

Urgent temporary mitigation:

php.ini: session.upload_progress.enabled = Off
(reload php-fpm / restart apache after)

Upgrade as soon as the release is available; announced for 14:00 UTC today, but with details already leaked it’ll probably be earlier.

PHP only patches supported branches (8.2+).

OpenEMR deployments should take their systems off any public facing internet as well as evaluate their risks from internal attack.

The temporary fix posted above only mitigates some forms of the attack but does not resolve the issue.

PHP has released a patch and more details are here PHP: News Archive - 2026

We are monitoring the situation closely and will roll out a docker update for our OpenEMR docker users as soon as we can.

1 Like

A post was split to a new topic: OpenEMR php2shell Advisory (Remote Code Execution Exploit)

Update: all OpenEMR Docker images (8.4.1 / latest, 8.3.0, 8.2.0, 8.0.0.3) have been rebuilt with the fixed PHP and verified. Details and what to do:
OpenEMR php2shell Advisory (Remote Code Execution Exploit) - #3 by stephenwaite

We’re not out of the woods yet, either.

A third PHP flaw, CVE-2026-115560, lacks an emergency fix; the PHP Foundation advises disabling session.upload_progress.enabled. Earlier PHP2Shell bugs CVE-2026-109618 and CVE-2026-109619 remain unconfirmed in successful attacks despite PoCs.

1 Like

Thanks Ryan. Some OpenEMR specifics on CVE-2026-115560, since it only bites with a particular setup. It needs all of these at once:

  • session.serialize_handler set to php_binary or php_serialize in the PHP configuration,
  • the application switching it to php at runtime with ini_set() before session_start(),
  • session.upload_progress.enabled on (PHP’s default).

As far as I can see OpenEMR doesn’t meet the first two: nothing in OpenEMR’s code (checked 8.4 and 7.0.2) or 8.4’s Composer libraries changes session.serialize_handler, and the Docker images’ php.ini leaves it at the default, php. Turning off session.upload_progress.enabled as PHP advises is harmless for OpenEMR (nothing in it uses upload progress), and it’s the same setting some of us applied on the 21st as an interim step, so if it’s still there you’re covered.

To check a Docker install:

docker exec <openemr container> php -r 'echo PHP_VERSION, " ", ini_get("session.serialize_handler"), " upload_progress=", var_export(ini_get("session.upload_progress.enabled"), true), "\n";'

You want a fixed PHP (8.5.12, 8.4.27, 8.3.36 or 8.2.35 or later), php, and ideally upload_progress='0'. A setting added inside the container is lost when the container is recreated, so either re-apply it after an image update or mount an .ini into PHP’s conf.d.

One more reason not to sit on the first two CVEs: in the same article, Mandiant says the working proofs of concept it validated get remote code execution against default mod_php deployments but not PHP-FPM, and the OpenEMR Docker images run PHP as an Apache module. If you haven’t moved to the rebuilt images (or upgraded PHP in place), please do.