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.
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
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.
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.
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?
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.
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.
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.
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.
> 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.
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.
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.
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.
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.
>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.
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.
But tbh the move is probably to syphon up anything with any perceived value and see who might buy it.
Let me guess it's written in Python or PHP or something.
Edit: PHP lol
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.
[0] https://github.com/openemr/openemr/commits/master/semgrep.ya...
They're also likely trying to be punitive because I'm sure Claude and OpenAI models are slamming them.
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.