OpenEMR
OpenEMR has SQL Injection Vulnerability
OpenEMR is a free and open source electronic health records and medical practice management application. Versions prior to 8.0.0 contain a SQL injection vulnerability in prescription that can be exploited by authenticated attackers. The vulnerability exists due to insufficient input validation in the prescription listing functionality. Version 8.0.0 fixes the vulnerability.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 8.0.0
Fixed in 8.0.0
Mitigation
Upgrade openemr to 8.0.0 or later.
References
Timeline
Days relative to CVE publicationFirst public PoC 22 days before publication; not in CISA KEV. First PoC: ChrisSub08/CVE-2026-25746_SqlInjectionVulnerabilityOpenEMR7.0.4 (created 3 Feb 2026, found by us: backfilled).
PoC repositories
Found on GitHub.2 PoCs
PoCs 2
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| ChrisSub08/CVE-2026-25746_SqlInjectionVulnerabilityOpenEMR7.0.4 | 3 Feb 2026 −22 d | 0 | PoC
Flags · score 30
Below the suspicion threshold (50); does not change the assessment. |
| ahmdxi/openemr-exploit-chain | 27 Sep 2026 +214 d | 0 | PoC via PoC Index |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
PoC characteristics
What to hunt for in your logs · from 2 PoC reposGET /
- Key headers
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8Accept-Language: fr,fr-FR;q=0.9,en-US;q=0.8,en;q=0.7Priority: u=0, iReferer: https://{var}/interface/login/login.php?site=defaultSec-Fetch-Dest: documentSec-Fetch-Mode: navigateSec-Fetch-Site: same-originSec-Fetch-User: ?1Upgrade-Insecure-Requests: 1- Ports
- 8000, 8443
- PoC User-Agent
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:149.0) Gecko/20100101 Firefox/149.0- Seen in
- 1 repo: ahmdxi/openemr-exploit-chain
- Evidence
- ahmdxi/openemr-exploit-chain/orc.py:155 ahmdxi/openemr-exploit-chain/orc.py:298 ahmdxi/openemr-exploit-chain/orc.py:315
GET /controller.php
- Query
prescription=list=id=1sort=sort=(SELECT 1)sort=(SELECT SLEEP(5))sort=(SELECT ((ASCII(SUBSTRING(username,1,1)) DIV 128)MOD 2) FROM users LIMIT 1)- Key headers
Cookie: OpenEMR=619d6abca06d21fe709779f348c0a5deCookie: OpenEMR=5d884df35b6ff2fddf12d83da5095ae8- Seen in
- 1 repo: ChrisSub08/CVE-2026-25746_SqlInjectionVulnerabilityOpenEMR7.0.4
- Evidence
- ChrisSub08/CVE-2026-25746_SqlInjectionVulnerabilityOpenEMR7.0.4/README.md:112 ChrisSub08/CVE-2026-25746_SqlInjectionVulnerabilityOpenEMR7.0.4/README.md:117 ChrisSub08/CVE-2026-25746_SqlInjectionVulnerabilityOpenEMR7.0.4/README.md:120 ChrisSub08/CVE-2026-25746_SqlInjectionVulnerabilityOpenEMR7.0.4/README.md:123
GET /interface/login/login.php
- Query
site=default- Ports
- 8000, 8443
- Seen in
- 1 repo: ahmdxi/openemr-exploit-chain
- Evidence
- ahmdxi/openemr-exploit-chain/orc.py:144
GET /interface/new/new.php
- Ports
- 8000, 8443
- Seen in
- 1 repo: ahmdxi/openemr-exploit-chain
- Evidence
- ahmdxi/openemr-exploit-chain/orc.py:198
GET /portal/get_patient_info.php
- Ports
- 8000, 8443
- Seen in
- 1 repo: ahmdxi/openemr-exploit-chain
- Evidence
- ahmdxi/openemr-exploit-chain/orc.py:490
POST /interface/main/backup.php
- Body markers
csrf_token_form=form_step=102form_cb_addlists=1form_sel_lists[]=form_sel_layouts[]=inapplication/x-www-form-urlencoded- Ports
- 8000, 8443
- Seen in
- 1 repo: ahmdxi/openemr-exploit-chain
- Evidence
- ahmdxi/openemr-exploit-chain/orc.py:528
POST /interface/main/main_screen.php
- Query
auth=loginsite=default- Body markers
new_login_session_management=1languageChoice=1authUser=adminclearPass=passinapplication/x-www-form-urlencoded- Ports
- 8000, 8443
- Seen in
- 1 repo: ahmdxi/openemr-exploit-chain
- Evidence
- ahmdxi/openemr-exploit-chain/orc.py:145
POST /interface/new/new_comprehensive_save.php
- Key headers
Referer: {var}/interface/new/new.php- Body markers
csrf_token_form=form_fname=Autoform_lname=Noiseform_DOB=1980-01-01form_sex=Femaleform_pharmacy_id=0inapplication/x-www-form-urlencoded- Ports
- 8000, 8443
- Seen in
- 1 repo: ahmdxi/openemr-exploit-chain
- Evidence
- ahmdxi/openemr-exploit-chain/orc.py:226
POST /interface/super/edit_layout.php
- Query
layout_id=- Key headers
Referer: {var}/interface/super/edit_layout.phpReferer: {var}/interface/super/edit_layout.php?layout_id={var}- Body markers
csrf_token_form=formaction=addgroupnewgroupname=1newgroupparent=1layout_id=LBF"';ncformaction=deletegroupdeletegroupid=deletefieldgroup=1selectedfields=inapplication/x-www-form-urlencoded- Ports
- 8000, 8443
- Seen in
- 1 repo: ahmdxi/openemr-exploit-chain
- Evidence
- ahmdxi/openemr-exploit-chain/orc.py:515 ahmdxi/openemr-exploit-chain/orc.py:551
POST /portal/get_patient_info.php
- Key headers
Referer: {var}Referer: https://{var}/portal/get_patient_info.php- Body markers
eid=resname=emptyform_action=saverecurr_affect=selected_date=2026-09-26event_start_date=2026-09-26old_repeats=0rt2_flag2=0form_category=9form_title=Noise apptfacility=3billing_facility=3form_patient=Noiseform_pid=form_dob=form_provider=1form_date=2026-09-26form_allday=0form_hour=8form_minute=30form_duration=15form_repeat_exdate=form_apptstatus=-form_prefcat=0form_room=2form_comments=noisecsrf_token_form=issue=0thistype=medical_problemthispid=thisenc=0form_type=0form_active=1form_titles=Noise dxform_title=Noise dxform_title_id=Noise dxform_begin=2026-09-11 21:37form_end=form_reaction=form_severity_id=unassignedform_diagnosis=form_occur=0form_outcome=0form_subtype=form_classification=0form_verification=confirmedform_referredby=form_destination=form_return=row_reinjury_id=form_save=Saveinapplication/x-www-form-urlencoded- Ports
- 8000, 8443
- Seen in
- 1 repo: ahmdxi/openemr-exploit-chain
- Evidence
- ahmdxi/openemr-exploit-chain/orc.py:241 ahmdxi/openemr-exploit-chain/orc.py:264
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/(?:[?#].*)?$
(?i)^/controller\.php\?(?:.*&)?prescription=.*list=.*id=1.*sort=.*sort=\(SELECT 1\).*sort=\(SELECT SLEEP\(5\)\).*sort=\(SELECT \(\(ASCII\(SUBSTRING\(username,1,1\)\) DIV 128\)MOD 2\) FROM users LIMIT 1\)
(?i)^/interface/login/login\.php\?(?:.*&)?site=default
(?i)^/interface/new/new\.php(?:[?#].*)?$
(?i)^/portal/get_patient_info\.php(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [8000,8443] (msg:"GG PoC-Monitor CVE-2026-25746 openemr openemr exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.header; content:"Accept: text/html,application/xhtml+xml,application/xml|3b|q=0.9,*/*|3b|q=0.8"; nocase; http.header; content:"Accept-Language: fr,fr-FR|3b|q=0.9,en-US|3b|q=0.8,en|3b|q=0.7"; nocase; http.header; content:"Priority: u=0, i"; nocase; http.header; content:"Referer: https://"; nocase; http.header; content:"Sec-Fetch-Dest: document"; nocase; http.header; content:"Sec-Fetch-Mode: navigate"; nocase; http.header; content:"Sec-Fetch-Site: same-origin"; nocase; http.header; content:"Sec-Fetch-User: ?1"; nocase; http.header; content:"Upgrade-Insecure-Requests: 1"; nocase; reference:url,poc.griffinguard.io/cve/CVE-2026-25746; classtype:web-application-attack; sid:9788456; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2026-25746 openemr openemr exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/controller.php"; http.uri; content:"prescription="; http.uri; content:"list="; http.uri; content:"id=1"; http.uri; content:"sort="; http.uri; content:"sort=(SELECT 1)"; http.uri; content:"sort=(SELECT SLEEP(5))"; http.uri; content:"sort=(SELECT ((ASCII(SUBSTRING(username,1,1)) DIV 128)MOD 2) FROM users LIMIT 1)"; http.header; content:"Cookie: OpenEMR=619d6abca06d21fe709779f348c0a5de"; nocase; http.header; content:"Cookie: OpenEMR=5d884df35b6ff2fddf12d83da5095ae8"; nocase; reference:url,poc.griffinguard.io/cve/CVE-2026-25746; classtype:web-application-attack; sid:9235846; rev:1;)
alert http any any -> $HOME_NET [8000,8443] (msg:"GG PoC-Monitor CVE-2026-25746 openemr openemr exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/interface/login/login.php"; http.uri; content:"site=default"; reference:url,poc.griffinguard.io/cve/CVE-2026-25746; classtype:web-application-attack; sid:9066777; rev:1;)
alert http any any -> $HOME_NET [8000,8443] (msg:"GG PoC-Monitor CVE-2026-25746 openemr openemr exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/interface/new/new.php"; reference:url,poc.griffinguard.io/cve/CVE-2026-25746; classtype:web-application-attack; sid:9693065; rev:1;)
alert http any any -> $HOME_NET [8000,8443] (msg:"GG PoC-Monitor CVE-2026-25746 openemr openemr exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/portal/get_patient_info.php"; reference:url,poc.griffinguard.io/cve/CVE-2026-25746; classtype:web-application-attack; sid:9832482; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: openemr openemr exploit attempt (CVE-2026-25746)
id: gg-pocmon-cve-2026-25746-9788456
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-25746. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-25746
logsource:
category: webserver
detection:
selection:
cs-method: GET
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2026.25746
title: openemr openemr exploit attempt (CVE-2026-25746)
id: gg-pocmon-cve-2026-25746-9235846
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-25746. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-25746
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/controller.php'
cs-uri-query|contains|all:
- 'prescription='
- 'list='
- 'id=1'
- 'sort='
- 'sort=(SELECT 1)'
- 'sort=(SELECT SLEEP(5))'
- 'sort=(SELECT ((ASCII(SUBSTRING(username,1,1)) DIV 128)MOD 2) FROM users LIMIT 1)'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2026.25746
title: openemr openemr exploit attempt (CVE-2026-25746)
id: gg-pocmon-cve-2026-25746-9066777
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-25746. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-25746
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/interface/login/login.php'
cs-uri-query|contains|all:
- 'site=default'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2026.25746
title: openemr openemr exploit attempt (CVE-2026-25746)
id: gg-pocmon-cve-2026-25746-9693065
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-25746. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-25746
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/interface/new/new.php'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2026.25746
title: openemr openemr exploit attempt (CVE-2026-25746)
id: gg-pocmon-cve-2026-25746-9832482
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-25746. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-25746
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/portal/get_patient_info.php'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2026.25746