# OpenEMR php2shell Advisory (Remote Code Execution Exploit)

**URL:** <https://community.open-emr.org/t/openemr-php2shell-advisory-remote-code-execution-exploit/27152>\
**Category:** OpenEMR Development\
**Created:** [October 21, 2026, 10:23pm UTC](https://community.open-emr.org/t/openemr-php2shell-advisory-remote-code-execution-exploit/27152 "2026-10-21T22:23:38Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![stephenwaite](https://community.open-emr.org/user_avatar/community.open-emr.org/stephenwaite/32/15754_2.png) [@stephenwaite](https://community.open-emr.org/u/stephenwaite)\
**Post date:** [October 22, 2026, 4:25pm UTC](https://community.open-emr.org/t/openemr-php2shell-advisory-remote-code-execution-exploit/27152/3 "2026-10-22T16:25:09Z")

</div>

## Second follow-up update — October 22, 2026

_Posted ~09:30 MST (15:30 UTC), amended ~10:00 MST (16:00 UTC) when the 8.0.0.3 rebuild finished. Corrected images are now live and verified for all four lines._

### Rebuilt 8.3.0, 8.2.0 and 8.0.0.3 images are live (8.4.1 re-published)

The re-triggered builds for 8.3.0 and 8.2.0 finished and were pushed to Docker Hub at 14:35 UTC (08:35 MST). We pulled both and confirmed inside the container: `php -v` reports PHP 8.5.12 (`php85-8.5.12`) on Alpine 3.23.7. The same image is also published under the dated tags `8.3.0-2026-10-22` and `8.2.0-2026-10-22`.

| Tag | Published | Digest |
| --- | --- | --- |
| `openemr/openemr:8.3.0` (= `8.3.0-2026-10-22`) | 2026-10-22 14:35 UTC | `sha256:c974729a9e63cf2b2964cc6a010d7f6a9b751c0bd236ddc9fd30582d4ddd0c27` |
| `openemr/openemr:8.2.0` (= `8.2.0-2026-10-22`) | 2026-10-22 14:35 UTC | `sha256:229f70bd0622432d0b214d9b75eba228e712d496ad4d80acdcc8ce7dbdcf96d5` |
| `openemr/openemr:8.4.1` / `:latest` (= `8.4.1-2026-10-22`) | 2026-10-22 15:32 UTC | `sha256:85349455340a8c9e5827c86894eb8f17bb928251df2853fafcf6ac98d57fe815` |
| `openemr/openemr:8.0.0.3` / `:8.0.0` (= `8.0.0.3-2026-10-22`, `8.0.0-2026-10-22`) | 2026-10-22 15:53 UTC | `sha256:6d029ebfa35036140620ce933dbd05070044317260f1b558a0df63d78dcc7b06` |

If you pulled 8.3.0 or 8.2.0 before 14:35 UTC today, you have the pre-fix image (PHP 8.5.6): pull again.

The 8.4.1 / `latest` image was also re-published at 15:32 UTC as part of the same rebuild round. Both the 07:27 UTC and 15:32 UTC builds carry PHP 8.5.12 (we verified the 15:32 UTC image: `php85-8.5.12` on Alpine 3.24.3), so 8.4.1 users who pulled earlier today are already fixed and do not need to pull again.

### 8.0.0.3 — rebuilt image published 15:53 UTC

The 8.0.0.3 rebuild ([https://github.com/openemr/openemr/actions/runs/39794860814](https://github.com/openemr/openemr/actions/runs/39794860814)) completed at 15:54 UTC (09:54 MST) and pushed `8.0.0.3`, `8.0.0`, `8.0.0.3-2026-10-22` and `8.0.0-2026-10-22`. We pulled it and confirmed inside the container: `php -v` reports PHP 8.4.27 (`php84-8.4.27`) on Alpine 3.22.7.

Why this one lagged: Alpine’s 3.22 fixes (`php84` 8.4.27, `php83` 8.3.36, `php82` 8.2.35) only published between 12:27 and 13:35 UTC today, after our 08:12 UTC 8.0.0.3 build. If you pulled `8.0.0.3` or `8.0.0` before 15:53 UTC today (digest `sha256:f98803ca80b3…` or earlier), you have the pre-fix image with PHP 8.4.16: pull again.

### Current published Docker images

| Image | PHP as published | Status |
| --- | --- | --- |
| `openemr/openemr:8.4.1` / `:latest` | 8.5.12 | Fixed (07:27 UTC build; re-published 15:32 UTC, see above) |
| `openemr/openemr:8.3.0` | 8.5.12 | Fixed (rebuilt image published 14:35 UTC) |
| `openemr/openemr:8.2.0` | 8.5.12 | Fixed (rebuilt image published 14:35 UTC) |
| `openemr/openemr:8.0.0.3` / `:8.0.0` | 8.4.27 | Fixed (rebuilt image published 15:53 UTC) |

### Moving to a fixed image

If you already applied the in-container `apk upgrade`, you are protected and nothing further is required; the patch persists across `restart`. When you are ready to be on a fixed image permanently (all four lines are now published):

```sh
docker compose pull openemr
docker compose up -d openemr
docker compose exec openemr php -v

```

Expect PHP 8.5.12 (8.4.x / 8.3.x / 8.2.x) or 8.4.27 (8.0.x). Recreating the container is what applies the new image, so this one time `up -d` is correct — the in-container patch it discards is already built into the new image. The recreate logs users out for the minute it takes; named and anonymous volumes (database, documents, certificates) are kept. Still do not use `down -v`.

To confirm which build you are running without entering the container:

```sh
docker inspect --format '{{index .RepoDigests 0}}' $(docker compose images -q openemr)

```

and compare the digest to the table above.

### What we are tracking now

- **Nothing blocking** — every supported OpenEMR image line now ships fixed PHP.
- **Alpine `php85` on 3.23 / 3.24 and `php84` on 3.22** — a move past 8.5.12 / 8.4.27 would indicate a follow-up PHP release with additional hardening; we would rebuild again.

---

_[View the full topic](https://community.open-emr.org/t/openemr-php2shell-advisory-remote-code-execution-exploit/27152)._
