OpenEMR Web Shell Campaign: 8 Flaws Exploited (CVE-2026-124450)
Attackers exploited eight OpenEMR flaws to steal database credentials, plant web shells and add an SSH backdoor; fixed in 8.5.0.
TL;DR
- OpenEMR before 8.5.0 carries eight flaws attackers chained: FaxSMS file read and write, Fee Sheet SQL injection, backup command injection and authorization bypasses. CVE-2026-124450 carries CVSS v3.1 9.9 Critical.
- The flaws affect self-hosted OpenEMR installations that let accounts reach the Fee Sheet or FaxSMS. The campaign targeted internet-exposed instances. OpenEMR estimates 100,000 medical providers use it; its Docker image has 10.4 million pulls.
- VulnCheck recorded 1,053 attacks from 12 IP addresses against its OpenEMR canaries between 2026-11-09 and 2026-11-27. Attackers stole database credentials, wrote web shells and installed a persistent implant. No OpenEMR CVE is in CISA KEV as of 2026-12-05.
- Upgrade to OpenEMR 8.5.0. "How do I fix it?" gives the upgrade steps, the interim controls and the checks for web shells and SSH keys.
Am I affected?
You are exposed if your OpenEMR installation is reachable by the accounts the flaws need and runs a release before 8.5.0. All of these must hold:
- The installed release is before 8.5.0. Five of the eight flaws are fixed in 8.3.0; CVE-2026-126443 is fixed in 8.5.0.
- At least one account can reach the Fee Sheet (
encounters|coding), the FaxSMS module (patients/demois enough to reach it), the patient finder, or the backup page. The campaign used a low-privilege clinical account and the defaultadmin:passcredentials. - The installation is reachable from the network the attacker can use. VulnCheck's canaries represented internet-exposed installations.
- For the FaxSMS file write, the web server user can write to a directory the web server serves, and the
drive_encryptionglobal is off. A default Docker install meets the first condition.
A reader on 8.5.0 is fixed for all eight. A reader on 8.3.0 or 8.4.x has the five 8.3.0 fixes and the two older fixes, but remains exposed to CVE-2026-126443. A reader on 8.2.x has the two older fixes, is exposed to the five 8.3.0 flaws and to CVE-2026-126443. A reader before 7.0.4 is exposed to all eight unless the individual fixes were applied.
| CVE | Flaw | Affected versions | Fixed version | CVSS v3.1 |
|---|---|---|---|---|
| CVE-2026-24849 | Arbitrary file read in FaxSMS EtherFaxActions |
before 7.0.4 | 7.0.4 | 9.9 |
| CVE-2026-32238 | Command injection in backup.php |
before 8.0.0.2 | 8.0.0.2 | 9.1 |
| CVE-2026-124446 | Arbitrary file read and write in FaxSMS RCFaxClient and SignalWireClient |
before 8.3.0 | 8.3.0 | 8.8 |
| CVE-2026-124450 | Arbitrary file read and write in FaxSMS disposeDocument |
before 8.3.0 | 8.3.0 | 9.9 |
| CVE-2026-124469 | SQL injection in the Fee Sheet warehouse parameter |
before 8.3.0 | 8.3.0 | 9.9 |
| CVE-2026-124488 | High-sensitivity encounter form bypass | before 8.3.0 | 8.3.0 | 8.1 |
| CVE-2026-124490 | Arbitrary file read and write in the RingCentral disposeDocument |
before 8.3.0 | 8.3.0 | 9.1 |
| CVE-2026-126443 | Patient Finder authorization bypass | before 8.5.0 | 8.5.0 | 6.5 |
Check the installed version on a Docker deployment:
docker exec <container> grep -E "\$v_(major|minor|patch)" /var/www/localhost/htdocs/openemr/version.php
On a source installation, run the same check against the code path:
grep -E "\$v_(major|minor|patch)" /path/to/openemr/version.php
The output $v_major = '8'; $v_minor = '5'; $v_patch = '0'; means 8.5.0. A git checkout may report a development tag. Treat it as affected unless it contains the 8.5.0 fixes.
Check whether the FaxSMS module is present:
ls /path/to/openemr/interface/modules/custom_modules/oe-module-faxsms
If the directory is absent, the FaxSMS file read and write flaws are not reachable. The SQL injection, command injection and authorization flaws remain.
How do I fix it?
Upgrade to OpenEMR 8.5.0, released on 2026-10-26. It contains the 8.3.0 fixes and the 8.5.0 fixes. The release notes list the security fixes.
For the official Docker image:
- Back up the database and the
sites/default/sqlconf.phpfile. - Pull the 8.5.0 image.
- Recreate the container with the same volumes and environment. A running container keeps the old code until it is recreated.
- Open the login page and confirm the version in the About page.
docker pull openemr/openemr:8.5.0
docker compose up -d --force-recreate
For a source installation:
- Back up the database and
sites/default/sqlconf.php. - Download the 8.5.0 release archive from the OpenEMR releases page.
- Replace the program files, keeping
sites/,documents/and your configuration. - Open
sql_upgrade.phpin a browser and run the upgrade. - Delete the upgrade scripts after the upgrade.
- Confirm the version in the About page.
If you cannot upgrade now, apply these interim controls. They reduce exposure and do not replace the upgrade.
- Restrict network access to the OpenEMR login page, the Fee Sheet and the FaxSMS module to the networks that need them. The campaign targeted internet-exposed instances. This does not fix the flaws.
- Disable or remove the FaxSMS module if you do not use fax. This closes the file read and write path. It does not close the SQL injection, command injection or authorization flaws.
- Rotate the database credentials in
sites/default/sqlconf.phpand any credentials the OpenEMR database user can reach. The file read flaw exposes them in cleartext. - Hunt for web shells and the SSH key before you rotate credentials. A web shell can read the new credentials. "How do I check if I was compromised?" lists the indicators.
The interim controls do not cover CVE-2026-124469, CVE-2026-32238, CVE-2026-124488 or CVE-2026-126443. Only the upgrade does.
What is the root cause?
OpenEMR 8.5.0 fixes eight flaws that share a pattern: a request value reaches a filesystem, SQL or shell sink without the check the surrounding code expects. The campaign used three of them as its main paths. The other five widened access or exposed data.
FaxSMS disposeDocument trusts the request path
The FaxSMS module handles fax documents for several vendors. RCFaxClient::disposeDocument() reads file_path from the request and uses it as the source for sendFile() or the destination for file_put_contents(). The method does not check the patients/docs ACL itself and does not confine the path to the module's directory.
$where = $this->getRequest('file_path') ?? $this->getSession('where');
...
if ($action == 'download') {
$this->sendFile($where);
...
}
if (!empty($content) && $action == 'setup') {
$decodedContent = base64_decode((string)$content);
if (file_put_contents($where, $this->crypto->encryptForFilesystem($decodedContent)) !== false) {
The router checks a CSRF token for the action, but the method's own authorization is missing. A low-privilege account with patients/demo can read sites/default/sqlconf.php and write a file at any path the web user owns. The write stores ciphertext when drive_encryption is on and plaintext when it is off. VulnCheck's canaries wrote PHP that executed, so the campaign's web shell path depends on that setting.
The Fee Sheet warehouse value reaches an ORDER BY clause
DrugSalesService::sellDrug() builds the inventory query for a Fee Sheet product line. The warehouse value comes from the prod[N][warehouse] POST field. The code interpolates it into the ORDER BY clause instead of binding it.
$orderby = ($default_warehouse === '') ?
"" : "di.warehouse_id != '$default_warehouse', ";
$orderby .= "lo.seq, di.expiration, di.lot_number, di.inventory_id";
...
$query .= "ORDER BY $orderby";
$res = QueryUtils::sqlStatementThrowException($query, $sqlarr);
Any authenticated user whose role passes aclCheckForm('fee_sheet') can inject SQL into the ORDER BY clause. The advisory names low-privileged clinical staff, including the nurse role, as affected. The injection is a time-based blind oracle.
The backup page passes SQL identifiers to the shell
interface/main/backup.php builds shell commands that embed list and layout identifiers. The code SQL-escapes the values with add_escape_custom() and then places them inside a shell command. SQL escaping does not remove shell metacharacters.
$cmd .= " echo 'DELETE FROM list_options WHERE list_id = \"" . add_escape_custom($listid) . "\";' >> " . escapeshellarg($EXPORT_FILE) . " & ";
An authenticated administrator can inject shell commands through the identifier. The 8.0.0.2 release added $escapeShellSingleQuotes() and $escapeForWindowsCmd() to escape the values for the shell.
Two authorization gaps widened access
CVE-2026-126443 is a missing patients/demo check in interface/main/finder/dynamic_finder_ajax.php. The endpoint reads the same patient_data table as the Patient Finder page but did not enforce the page's role gate. Any authenticated user could request arbitrary patient columns.
CVE-2026-124488 is a missing sensitivity check in interface/patient_file/encounter/load_form.php. A clinician without the sensitivities|high permission could load and modify high-sensitivity encounter forms through the direct loader.
How is it exploited?
VulnCheck deployed vulnerable OpenEMR containers in seven countries and recorded 1,053 attacks from 12 IP addresses between 2026-11-09 and 2026-11-27. The attacks fall into three campaigns.
- Web shell campaign. The attacker logs in with a low-privilege account and requests the FaxSMS
disposeDocumentaction withaction=downloadand afile_paththat points atsites/default/sqlconf.php. The response contains the database credentials. The attacker then sendsaction=setupwith a base64contentvalue and a path inside a web-served directory. - SQL injection campaign. The attacker logs in, opens an encounter and submits a Fee Sheet product line with a crafted
prod[0][warehouse]value. The value closes the ORDER BY expression and runs a time-based subquery. - Command injection campaign. The attacker logs in with administrator credentials and submits the backup form with an identifier that contains shell metacharacters. The command runs
id,uname -a, and discovery commands, then downloads a shell script.
The SQL injection payload from the VulnCheck analysis is:
prod[0][warehouse]=' , (SELECT IF((ASCII(SUBSTRING((SELECT VERSION()),2,1)) > 63),SLEEP(4.0),0) FROM information_schema.tables LIMIT 1) LIMIT 1 -- -
The web shell test payload from the same analysis is:
<?php echo "XVOK".(7*7); ?>
The command injection campaign downloaded pb_182930.sh and ran it. The script detects the CPU architecture and downloads a pwnbeacon binary. It installs five persistence mechanisms: a systemd service, a cron entry, a /etc/profile.d script, shell profile changes and an XDG autostart entry. It also appends an ed25519 key named crawler-fleet to /root/.ssh/authorized_keys.
How does the attack flow?
The campaign turns one authenticated session into database credentials, a web shell and a persistent implant, and the Fee Sheet SQL injection gives a second path to the credential table.
file_path unchecked"] B --> C["Read sqlconf.php
database credentials"] C --> D["Write PHP web shell
action=setup"] D --> E["Command execution"] A --> F["Fee Sheet warehouse
ORDER BY injection"] F --> G["Dump users_secure
bcrypt hashes"] A --> H["backup.php listid
shell metacharacters"] H --> I["pwnbeacon implant
persistence and SSH key"]
What can an attacker do?
The impact depends on the flaw and on the account the attacker holds. Each condition is listed with the impact it enables.
- FaxSMS file read (CVE-2026-124450, CVE-2026-124446, CVE-2026-124490, CVE-2026-24849). An authenticated user with
patients/demoreadssqlconf.php, which contains the database host, name, user and password. The same read returns/etc/passwd, encryption keys and source code. The database credentials expose the full patient record set. - FaxSMS file write (same CVEs). The same user writes or overwrites any file the web server user owns. With
drive_encryptionoff and a web-served PHP path, the write becomes a web shell. With encryption on, the write corrupts files and can cause an outage. - Fee Sheet SQL injection (CVE-2026-124469). An authenticated user who can open the Fee Sheet reads the database through a time-based blind oracle. The advisory says the direct primitive is read-only, and the integrity impact comes from extracting
users_securebcrypt hashes and cracking them to take over accounts. - Backup command injection (CVE-2026-32238). An authenticated administrator runs operating-system commands as the web server user. The campaign used this to download and run the
pwnbeaconimplant. - Patient Finder bypass (CVE-2026-126443). Any authenticated user reads patient names, dates of birth, addresses, contact details and Social Security numbers across the practice.
- Encounter form bypass (CVE-2026-124488). A clinician without the high-sensitivity permission reads and modifies clinical notes and care plans attached to a restricted encounter.
The campaign's web shell and command injection required an authenticated session. The SQL injection and the FaxSMS flaws also required authentication. The campaign used default admin:pass credentials and low-privilege clinical accounts.
Why does the fix work?
The 8.3.0 release fixed five of the eight flaws. The 8.5.0 release fixed CVE-2026-126443 and added the 8.3.0 fixes. The patches close the paths the campaign used.
The SQL injection fix binds the warehouse value as a parameter:
- $orderby = ($default_warehouse === '') ?
- "" : "di.warehouse_id != '$default_warehouse', ";
+ $orderby = ($default_warehouse === '') ?
+ "" : "di.warehouse_id != ?, ";
$orderby .= "lo.seq, di.expiration, di.lot_number, di.inventory_id";
...
$query .= "ORDER BY $orderby";
+ if ($default_warehouse !== '') {
+ $sqlarr[] = $default_warehouse;
+ }
$res = QueryUtils::sqlStatementThrowException($query, $sqlarr);
The FaxSMS fix moves the disposal flow into FaxDocumentDisposalTrait. It checks patients/docs and confines the path to the module's base directory. It allows only pdf, tif, tiff and txt, and rejects PHP tags or script tags.
if (!$this->authorizeDocumentAccess()) {
http_response_code(403);
return $this->disposalResponse(['success' => false, 'message' => xlt('Unauthorized')]);
}
...
if (!$this->isPathAllowed($targetPath, $allowedRoot)) {
http_response_code(403);
return $this->disposalResponse(['success' => false, 'message' => xlt('Access denied')]);
}
The backup fix escapes the identifiers for the shell:
- $cmd .= " echo 'DELETE FROM list_options WHERE list_id = \"" . add_escape_custom($listid) . "\";' >> " . escapeshellarg($EXPORT_FILE) . " & ";
+ $cmd .= " echo 'DELETE FROM list_options WHERE list_id = \"" . $safeListIdWin . "\";' >> " . escapeshellarg($EXPORT_FILE) . " & ";
The Patient Finder fix adds the missing ACL check:
if (!AclMain::aclCheckCore('patients', 'demo')) {
AccessDeniedHelper::deny('dynamic_finder_ajax.php: patients/demo required');
}
The encounter form fix loads the form owner, checks that the form belongs to the session patient, and checks the encounter sensitivity before the form loader runs.
These fixes close the paths the campaign used. The 8.5.0 release is the first release that contains all eight fixes. The 8.3.0 release contains the five earlier fixes.
How do I check if I was compromised?
Start with the indicators VulnCheck published. A hit is a lead that needs confirmation, not proof of compromise.
| Indicator | Type | Context |
|---|---|---|
179.43.189.122 |
IP | Attack source and primary command-and-control server |
79.76.51.56 |
IP | Attack source used for the web shell campaign |
23.132.164.35 |
IP | Attack source |
5.188.206.226 |
IP | Attack source |
78.128.113.10 |
IP | Attack source |
114.12.19.232 |
IP | Attack source |
103.160.213.217 |
IP | Attack source |
103.76.149.104 |
IP | Attack source |
36.69.158.169 |
IP | Attack source |
123.52.228.48 |
IP | Attack source |
74.208.19.100 |
IP | Attack source |
130.12.182.154 |
IP | Attack source |
144.31.231.56 |
IP | Secondary command-and-control and download server |
clarity-ms-analytics.com |
Domain | Command-and-control domain |
wpengine-myloenergy.com |
Domain | Command-and-control domain |
wpengine-parlaclinic.com |
Domain | Command-and-control domain |
wpengine-gastro.org |
Domain | Command-and-control domain |
a1ce8b2d203e2b7add4ccc19f2eb835107df5acfbca87cf1a63569d4e0de3f0d |
SHA-256 | pb_182930.sh implant dropper |
Search the web server access log for the attack addresses. Use the log path your deployment writes.
grep -Ei '179\.43\.189\.122|79\.76\.51\.56|23\.132\.164\.35|5\.188\.206\.226|78\.128\.113\.10|114\.12\.19\.232|103\.160\.213\.217|103\.76\.149\.104|36\.69\.158\.169|123\.52\.228\.48|74\.208\.19\.100|130\.12\.182\.154|144\.31\.231\.56' /var/log/apache2/access.log
Look for the web shell names and the dropper paths. acl_admin.tpl.php is also a legitimate Smarty cache name, so a hit there is a lead, not proof. Open the file and check for PHP code.
find /var/www -type f \( -name 'xv_*.php' -o -name 'probe.php' -o -name 'acl_admin.tpl.php' \) -ls
Check the SSH authorized keys for the crawler-fleet key:
grep -R "crawler-fleet" /root/.ssh/authorized_keys /home/*/.ssh/authorized_keys 2>/dev/null
Check the persistence paths the dropper uses:
grep -R -E "pwnbeacon|systemd-cache|sysd-cache" /etc/systemd /etc/cron* /etc/profile.d /root/.bashrc /root/.profile 2>/dev/null
If you find the dropper, hash it and compare with the published SHA-256:
sha256sum /path/to/pb_182930.sh
No indicator list is complete. An attempt that failed may leave no trace. The attacks VulnCheck recorded were against its own canary instances, not against customer systems.
Timeline
- 2026-08-18: OpenEMR 8.3.0 fixes five of the eight flaws.
- 2026-10-26: OpenEMR 8.5.0 fixes CVE-2026-126443 and includes the earlier fixes.
- 2026-11-08: VulnCheck publishes five CVE records.
- 2026-11-09: The first OpenEMR attack reaches VulnCheck's canary network.
- 2026-11-13: VulnCheck publishes CVE-2026-126443.
- 2026-11-27: The last attack in the 19-day window is recorded.
- 2026-12-04: VulnCheck publishes the campaign analysis.
- 2026-12-05: The Hacker News reports the campaign.
FAQ
Does this affect only internet-exposed installations? The campaign targeted internet-exposed OpenEMR instances. An internal installation is still exposed to an authenticated user who can reach the Fee Sheet or the FaxSMS module. Restricting network access reduces the attack surface but does not replace the upgrade.
Is CVE-2026-124450 unauthenticated?
No. The FaxSMS flaw requires an authenticated session with patients/demo, which most clinical and clerical roles have. The campaign also used the default admin:pass credentials on installations that had not changed them.
Is 8.3.0 enough? No. OpenEMR 8.3.0 fixes five of the eight flaws. CVE-2026-126443 is fixed in 8.5.0. Use 8.5.0, which contains both sets of fixes.
Is there a public proof of concept? VulnCheck published the payloads and the attack steps in its campaign analysis. The GitHub advisories include reproduction requests. There is no CISA KEV entry for any OpenEMR CVE as of 2026-12-05.
Why is this not in CISA KEV? VulnCheck says no OpenEMR CVE was in CISA KEV as of 2026-11-30, despite the observed attacks. The absence from the catalog does not mean the flaws are not exploited. Treat the campaign as active exploitation.
What if I cannot upgrade immediately? Restrict network access, disable the FaxSMS module if it is unused, rotate the database credentials, and hunt for web shells and the SSH key. These controls reduce exposure. They do not fix the SQL injection, command injection or authorization flaws.
References
- OpenEMR 8.5.0 release notes, https://github.com/openemr/openemr/releases/tag/v8_5_0 (checked December 5, 2026).
- OpenEMR 8.3.0 release notes, https://github.com/openemr/openemr/releases/tag/v8_3_0 (checked December 5, 2026).
- OpenEMR 8.0.0.2 release notes, https://github.com/openemr/openemr/releases/tag/v8_0_0_2 (checked December 5, 2026).
- VulnCheck, "OpenEMR Electronic Health Record Platform Under Siege," https://www.vulncheck.com/blog/openemr-under-siege (checked December 5, 2026).
- The Hacker News, "Hackers Exploit 10 Veeam and OpenEMR Vulnerabilities in Active Cyberattacks," https://thehackernews.com/2026/12/hackers-exploit-10-veeam-and-openemr.html (checked December 5, 2026).
- OpenEMR security advisory GHSA-wf4w-mx2w-j4vv, CVE-2026-124450, https://github.com/openemr/openemr/security/advisories/GHSA-wf4w-mx2w-j4vv (checked December 5, 2026).
- OpenEMR security advisory GHSA-x2vr-jgg8-c57c, CVE-2026-124446, https://github.com/openemr/openemr/security/advisories/GHSA-x2vr-jgg8-c57c (checked December 5, 2026).
- OpenEMR security advisory GHSA-cg8c-2v5q-29g7, CVE-2026-124469, https://github.com/openemr/openemr/security/advisories/GHSA-cg8c-2v5q-29g7 (checked December 5, 2026).
- OpenEMR security advisory GHSA-v58f-jcq4-pc4w, CVE-2026-124488, https://github.com/openemr/openemr/security/advisories/GHSA-v58f-jcq4-pc4w (checked December 5, 2026).
- OpenEMR security advisory GHSA-38jw-pwgq-9hpj, CVE-2026-124490, https://github.com/openemr/openemr/security/advisories/GHSA-38jw-pwgq-9hpj (checked December 5, 2026).
- OpenEMR security advisory GHSA-79g8-hm7q-xrh4, CVE-2026-126443, https://github.com/openemr/openemr/security/advisories/GHSA-79g8-hm7q-xrh4 (checked December 5, 2026).
- OpenEMR security advisory GHSA-w6vc-hx2x-48pc, CVE-2026-24849, https://github.com/openemr/openemr/security/advisories/GHSA-w6vc-hx2x-48pc (checked December 5, 2026).
- OpenEMR security advisory GHSA-6pmc-3xm7-pm86, CVE-2026-32238, https://github.com/openemr/openemr/security/advisories/GHSA-6pmc-3xm7-pm86 (checked December 5, 2026).
- CVE record CVE-2026-124450, https://www.cve.org/CVERecord?id=CVE-2026-124450 (checked December 5, 2026).
- CVE record CVE-2026-124469, https://www.cve.org/CVERecord?id=CVE-2026-124469 (checked December 5, 2026).
- CVE record CVE-2026-126443, https://www.cve.org/CVERecord?id=CVE-2026-126443 (checked December 5, 2026).
- OpenEMR vulnerable source at v8_2_0,
RCFaxClient.php, https://github.com/openemr/openemr/blob/v8_2_0/interface/modules/custom_modules/oe-module-faxsms/src/Controller/RCFaxClient.php (checked December 5, 2026). - OpenEMR vulnerable source at v8_2_0,
DrugSalesService.php, https://github.com/openemr/openemr/blob/v8_2_0/src/Services/DrugSalesService.php (checked December 5, 2026). - OpenEMR backup command injection fix commit 7bc7bd0, https://github.com/openemr/openemr/commit/7bc7bd077a624e205daed17658de41af6070ef73 (checked December 5, 2026).
- OpenEMR 8.3.0 FaxSMS disposal trait, https://github.com/openemr/openemr/blob/v8_3_0/interface/modules/custom_modules/oe-module-faxsms/src/Controller/FaxDocumentDisposalTrait.php (checked December 5, 2026).
- OpenEMR 8.5.0 Patient Finder source, https://github.com/openemr/openemr/blob/v8_5_0/interface/main/finder/dynamic_finder_ajax.php (checked December 5, 2026).
- OpenEMR welcome page, https://www.open-emr.org/welcome/ (checked December 5, 2026).
- Docker Hub, openemr/openemr, https://hub.docker.com/r/openemr/openemr (checked December 5, 2026).
- CISA Known Exploited Vulnerabilities catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog (checked December 5, 2026).
Keep reading
