blog

An open-source records system was attacked a day after its bugs went public. Check your self-hosted apps

If you run OpenEMR, the open-source medical records system, update it to the latest version and take it off the open internet if you can. Attackers started going after newly published flaws in it the day after they went public.

If you don't run OpenEMR, keep reading anyway. The same thing could happen to any open-source app you host yourself, whether that's a CRM, a helpdesk or a booking system.

What happened

On 4 December the security firm VulnCheck published a write-up called OpenEMR Electronic Health Record Platform Under Siege. VulnCheck is one of the organisations that publishes CVEs, and in November it published more than 100 of them for OpenEMR, in two batches on 8 and 13 November.

It also ran deliberately vulnerable copies of OpenEMR as decoys in seven countries, including the UK. The first attacks on those decoys came on 9 November, a day after the first batch went out. Between 9 and 27 November the decoys logged 1,053 attacks from 12 IP addresses, aimed at eight of the flaws.

VulnCheck says the attackers set out to "steal database credentials, plant webshells, and establish persistent access". In one case it took under four minutes to go from reading the database password to a working webshell (a small file that lets the attacker run commands on your server through the website). Another attacker downloaded a script that set itself up to survive a reboot in several ways, including adding an SSH key for root.

The Register has the news version if you'd like it.

Does it affect you?

The three flaws attacked most, including CVE-2026-124469, are listed as affecting OpenEMR before 8.3.0. One older flaw in the set was fixed in 8.0.0.2. OpenEMR 8.5.0 came out in October, and its release notes list around 70 security fixes.

All three of those main flaws need a login. That sounds reassuring until you read that one attacker simply tried OpenEMR's default username and password. If nobody ever changed them, a login isn't much of a barrier.

So you're at risk if you run your own OpenEMR, it's older than 8.3.0, and it can be reached from the internet. If a supplier hosts it for you, ask them which version you're on.

None of these flaws were on the US government's list of exploited bugs when VulnCheck published. If you only watch that list, this one would have passed you by.

What to do this week

1. Check the version. OpenEMR keeps its version number in version.php in the folder it's installed in. If it's below 8.3.0, plan the update now. Read the release notes first, because 8.5.0 needs PHP 8.3 or newer and either MySQL 8.4 or MariaDB 10.11, so an old server may need more than one step. Take a backup of the files and the database before you start.

2. Change any default passwords. All of them, not just the main admin account.

3. Take it off the open internet. VulnCheck's advice is blunt: "If you expose it to the internet, reconsider that decision." Staff can reach it over a VPN, or you can limit the web server to your office IP address. Either one stops most of this traffic before it reaches a login page.

4. Look for signs someone's been in. VulnCheck lists what the attackers left behind. Things I'd check:

  • PHP files in OpenEMR's interface folder with names starting xv_, and anything in the Smarty template cache called acl_admin.tpl.php.
  • /etc/systemd/system/systemd-cache.service and /etc/profile.d/sysd-cache.sh, which shouldn't exist.
  • Keys in /root/.ssh/authorized_keys that you don't recognise, and cron jobs you didn't add.

A quick way to see recently changed PHP files is find /path/to/openemr -name '*.php' -mtime -30. If you find something, take a copy before you delete anything. You'll want it later.

If you run any other self-hosted app

The real lesson here isn't about medical software. Once a flaw is published, someone may be trying it on real servers within a day. Dev Partners wrote about how AI can turn a published patch into an attack, and about ARTEX, an AI attack tool aimed at web apps. Both make the same point.

So the same three questions apply to anything you host yourself. Is it on a supported version? Does it need to be reachable by the whole internet? And has anyone changed the passwords it came with?

Open-source apps are a good choice for plenty of small businesses, and I'm not saying otherwise. But they don't update themselves, and nobody's going to email you when a fix comes out. Someone has to watch for it.

If your app has been customised, or it's bespoke software built around an open-source core, updating it is a bigger job. That's the sort of thing the team at Dev Partners take on with their support and maintenance work.

And if you'd like to know what your server is exposing before someone else finds out, that's what my server health check is for.