OpenEMR Electronic Health Record Platform Under Siege

(vulncheck.com)

86 points | by ersinesen 5 hours ago

9 comments

  • aperture3 23 minutes ago
    I run a small WordPress shop so I’m probably more inclined to defend PHP than the average person. But in my experience 99% of the time when I find an injection vulnerability in a client site it’s because of some old code that was using string concatenation to assemble query strings. This hasn’t been an issue in PHP (PDO) or MySQL ($wpdb->prepare) for a long time. OpenEMR was written in the early 2000s. I’d bet most of these vulnerabilities are in old modules that nobody wants to rewrite. I think the age of the codebase is a more relevant factor than PHP.
  • electriclove 44 minutes ago
    Damn. The idea to build an open version of Epic is good but this fails in the same way in terms of UX.
  • jijji 17 minutes ago
    about 6-12 months ago I rewrote all of my PHP legacy code bases in Rust and it only took Claude code a couple days to do all of it but I'm not saying that that's a good or bad idea but it's just something that I did to mitigate any of the future problems and also at least from what I've seen the performance is about 50 times faster than PHP.... another thing is the way that it's actually done especially when you're talking about large code bases is you kind of have to go file by file and create a parity of functionality line by line from PHP to rust file by file and then from that you can reliably convert a whole code base.... trying to do it any other way results in a lot of hallucinations...fyi
    • hypercube33 14 minutes ago
      Any idea how much code and how much it cost? I'm tempted to volunteer my account to at least rip through the existing code and look for any easy bugs to fix. Not hands on enough to write rust myself but I'm open to helping.
  • TedDoesntTalk 2 hours ago
    Are production OpenEMRC deployments on private networks or behind VPNs?
    • nradov 1 hour ago
      I think you're mixing up different concepts. OpenEMR instances would typically be deployed behind firewalls (and possibly API gateways as well), although it's possible that some incompetent organizations have deployed production instances without any protection. A VPN might then be provisioned for trusted users or business partners to pass certain traffic through the firewall.
  • mmsc 45 minutes ago
    https://github.com/openemr/openemr/security

    >237 (Public) advisories

    Any user clinic or hospital or whatever should be charged with malpractice for using this software. Using this software is a choice.

    • AlotOfReading 24 minutes ago
      I know some orgs using it during humanitarian missions. What do you suggest they use instead? FEMR, whose website is currently taken over by malvertising?
      • mmsc 4 minutes ago
        openmrs, and depending on use-case, dhis2 is a much better option
  • partloyaldemon 2 hours ago
    My imagination for evil fails me: what’s the value of these? Predatory fear campaigns against vulnerable people eg those with dementia?
    • stanfordkid 1 hour ago
      It's probably to hold the data as ransom, because the provider is liable for it's protection.
    • avidiax 26 minutes ago
      You ever gone to the hospital in the US? You get random bills for $700 for months after. Very difficult and time consuming to determine if Dr. So-and-so really did interpret your blood panel and if they really are out of network.

      You paid for the ambulance ride, right? Did you pay for the contractor paramedic and the supplies?

      You could milk that for many thousands of dollars per patient assuming that they can pay.

    • NamTaf 2 hours ago
      Extortion. Ad profiling.

      But tbh the move is probably to syphon up anything with any perceived value and see who might buy it.

      • d4mi3n 1 hour ago
        I'd also add network ingress. An OpenEMR instance may not be particularly compelling as something that can be directly exploited for cash, but if it lives in a network with access to other interesting systems (databases, payment processing systems, etc) it can become a handy link in the exploit chain to enable a repeatable and profitable attack.
  • IshKebab 1 hour ago
    A SQL injection? In 2026? Is this something you'd trust with your medical information?

    Let me guess it's written in Python or PHP or something.

    Edit: PHP lol

    • d4mi3n 1 hour ago
      There's a reason why SQL injections are consistently in the OWASP top 10. Even with a well governed project, mistakes happen. Add to this that not every project has the budget for a static analysis tool (Semgrep, CodeQL, etc) and the volume of AI generated changes and you have a perfect storm of software defects to keep the classic vulnerabilities alive and well.
      • nradov 1 hour ago
        Even the free static analysis tools have been pretty good at catching SQL injection vulnerabilities for years now. There is no plausible excuse for this type of mistake.
      • IshKebab 1 hour ago
        > Even with a well governed project, mistakes happen.

        A well governed project would structurally eliminate this class of bugs. Especially in 2026, even stupid AI can detect the use of non-static query strings. If you use a sane language like Rust even the compiler can enforce this. You don't need any separate static analysis tools. Python, C++ and even Go can do this too (although sadly its default SQL library doesn't).

        "Mistakes happen" is not an excuse in this case.

        > not every project has the budget for a static analysis tool (Semgrep, CodeQL, etc)

        Both of those are free for open source projects! If you're putting a freaking medical records platform out there without even basic free security checking, I would say that is shockingly irresponsible.

  • Taikonerd 2 hours ago
    Hackers trying to get people's medical records seems even scummier than trying to get their credit card numbers.
    • iloveoof 53 minutes ago
      Medical records are much more valuable than credit card numbers because you (basically) can’t acquire them legally and the patient has no recourse if they are stolen. You can cancel your credit card, you can’t cancel your medical records.
      • morkalork 30 minutes ago
        What value are they to J-random Hacker, blackmail?
    • nradov 1 hour ago
      The typical hacking activity isn't to get people's medical records (which typically have very little value to third parties) but rather to inject ransomware and extort the provider organization.
    • catigula 1 minute ago
      Most of the recent agentic attacks across US businesses originate from Chinese state aligned groups leveraging ARTEX. They don't need your money; they want information.

      They're also likely trying to be punitive because I'm sure Claude and OpenAI models are slamming them.

  • basilgohar 2 hours ago
    A huge number of risks (not all, but most often cited) are due to risks that are imposed on unjust systems, either discrimination due to preexisting conditions for insurance or otherwise.

    I don't want my medical details publicly accessible, but the reasons I don't want that is because it will be abused by entities that profit from acting disingenuously against me.