{
  "id": "CVE-2026-25746",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-25746",
  "published_at": "2026-02-25T18:39:24.787Z",
  "title": "OpenEMR has SQL Injection Vulnerability",
  "vendor": "openemr",
  "product": "openemr",
  "cvss": {
    "score": 8.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": {
    "created_at": "2026-02-03T14:41:25Z",
    "first_seen_at": "2026-11-14T11:25:11.578Z",
    "days_after_publication": -22.2,
    "repo": "ChrisSub08/CVE-2026-25746_SqlInjectionVulnerabilityOpenEMR7.0.4",
    "source": "github"
  },
  "poc_repo_count": 2,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "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.",
  "cwe": "CWE-89",
  "cpes": [
    "cpe:2.3:a:open-emr:openemr:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 8.8
  },
  "repos": [
    {
      "repo": "ChrisSub08/CVE-2026-25746_SqlInjectionVulnerabilityOpenEMR7.0.4",
      "url": "https://github.com/ChrisSub08/CVE-2026-25746_SqlInjectionVulnerabilityOpenEMR7.0.4",
      "created_at": "2026-02-03T14:41:25Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 30,
      "suspicious": false,
      "suspicion_reasons": [
        "owner account created less than 7 days before the repo"
      ],
      "status": "analyzed",
      "owner_created_at": "2026-02-03T13:58:13Z"
    },
    {
      "repo": "ahmdxi/openemr-exploit-chain",
      "url": "https://github.com/ahmdxi/openemr-exploit-chain",
      "created_at": "2026-09-27T14:42:34Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "listed by PoC Index",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2020-03-31T00:33:26Z"
    }
  ],
  "remediation": {
    "affected": [
      {
        "vendor": "openemr",
        "product": "openemr",
        "ranges": [
          "\u003c 8.0.0"
        ],
        "fixed_in": [
          "8.0.0"
        ]
      }
    ],
    "upgrade": [
      "Upgrade openemr to 8.0.0 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/openemr/openemr/security/advisories/GHSA-78r7-g65p-gpw3"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/openemr/openemr/commit/e230d3ef46425ffc96a37dc6369428aa37c88554"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [
    {
      "method": "GET",
      "path_template": "/",
      "headers": [
        {
          "name": "Accept",
          "value": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"
        },
        {
          "name": "Accept-Language",
          "value": "fr,fr-FR;q=0.9,en-US;q=0.8,en;q=0.7"
        },
        {
          "name": "Priority",
          "value": "u=0, i"
        },
        {
          "name": "Referer",
          "value": "https://{var}/interface/login/login.php?site=default"
        },
        {
          "name": "Sec-Fetch-Dest",
          "value": "document"
        },
        {
          "name": "Sec-Fetch-Mode",
          "value": "navigate"
        },
        {
          "name": "Sec-Fetch-Site",
          "value": "same-origin"
        },
        {
          "name": "Sec-Fetch-User",
          "value": "?1"
        },
        {
          "name": "Upgrade-Insecure-Requests",
          "value": "1"
        }
      ],
      "ports": [
        8000,
        8443
      ],
      "user_agents": [
        "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:149.0) Gecko/20100101 Firefox/149.0"
      ],
      "protocol": "https",
      "repos": [
        "ahmdxi/openemr-exploit-chain"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "ahmdxi/openemr-exploit-chain/orc.py:155",
        "ahmdxi/openemr-exploit-chain/orc.py:298",
        "ahmdxi/openemr-exploit-chain/orc.py:315"
      ]
    },
    {
      "method": "GET",
      "path_template": "/controller.php",
      "query_markers": [
        "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)"
      ],
      "headers": [
        {
          "name": "Cookie",
          "value": "OpenEMR=619d6abca06d21fe709779f348c0a5de"
        },
        {
          "name": "Cookie",
          "value": "OpenEMR=5d884df35b6ff2fddf12d83da5095ae8"
        }
      ],
      "protocol": "https",
      "repos": [
        "ChrisSub08/CVE-2026-25746_SqlInjectionVulnerabilityOpenEMR7.0.4"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "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"
      ]
    },
    {
      "method": "GET",
      "path_template": "/interface/login/login.php",
      "query_markers": [
        "site=default"
      ],
      "ports": [
        8000,
        8443
      ],
      "protocol": "https",
      "repos": [
        "ahmdxi/openemr-exploit-chain"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "ahmdxi/openemr-exploit-chain/orc.py:144"
      ]
    },
    {
      "method": "GET",
      "path_template": "/interface/new/new.php",
      "ports": [
        8000,
        8443
      ],
      "protocol": "https",
      "repos": [
        "ahmdxi/openemr-exploit-chain"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "ahmdxi/openemr-exploit-chain/orc.py:198"
      ]
    },
    {
      "method": "GET",
      "path_template": "/portal/get_patient_info.php",
      "ports": [
        8000,
        8443
      ],
      "protocol": "https",
      "repos": [
        "ahmdxi/openemr-exploit-chain"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "ahmdxi/openemr-exploit-chain/orc.py:490"
      ]
    },
    {
      "method": "POST",
      "path_template": "/interface/main/backup.php",
      "body_markers": [
        "csrf_token_form=",
        "form_step=102",
        "form_cb_addlists=1",
        "form_sel_lists[]=",
        "form_sel_layouts[]="
      ],
      "content_type": "application/x-www-form-urlencoded",
      "ports": [
        8000,
        8443
      ],
      "protocol": "https",
      "repos": [
        "ahmdxi/openemr-exploit-chain"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "ahmdxi/openemr-exploit-chain/orc.py:528"
      ]
    },
    {
      "method": "POST",
      "path_template": "/interface/main/main_screen.php",
      "query_markers": [
        "auth=login",
        "site=default"
      ],
      "body_markers": [
        "new_login_session_management=1",
        "languageChoice=1",
        "authUser=admin",
        "clearPass=pass"
      ],
      "content_type": "application/x-www-form-urlencoded",
      "ports": [
        8000,
        8443
      ],
      "protocol": "https",
      "repos": [
        "ahmdxi/openemr-exploit-chain"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "ahmdxi/openemr-exploit-chain/orc.py:145"
      ]
    },
    {
      "method": "POST",
      "path_template": "/interface/new/new_comprehensive_save.php",
      "headers": [
        {
          "name": "Referer",
          "value": "{var}/interface/new/new.php"
        }
      ],
      "body_markers": [
        "csrf_token_form=",
        "form_fname=Auto",
        "form_lname=Noise",
        "form_DOB=1980-01-01",
        "form_sex=Female",
        "form_pharmacy_id=0"
      ],
      "content_type": "application/x-www-form-urlencoded",
      "ports": [
        8000,
        8443
      ],
      "protocol": "https",
      "repos": [
        "ahmdxi/openemr-exploit-chain"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "ahmdxi/openemr-exploit-chain/orc.py:226"
      ]
    },
    {
      "method": "POST",
      "path_template": "/interface/super/edit_layout.php",
      "query_markers": [
        "layout_id="
      ],
      "headers": [
        {
          "name": "Referer",
          "value": "{var}/interface/super/edit_layout.php"
        },
        {
          "name": "Referer",
          "value": "{var}/interface/super/edit_layout.php?layout_id={var}"
        }
      ],
      "body_markers": [
        "csrf_token_form=",
        "formaction=addgroup",
        "newgroupname=1",
        "newgroupparent=1",
        "layout_id=LBF\"';nc",
        "formaction=deletegroup",
        "deletegroupid=",
        "deletefieldgroup=1",
        "selectedfields="
      ],
      "content_type": "application/x-www-form-urlencoded",
      "ports": [
        8000,
        8443
      ],
      "protocol": "https",
      "repos": [
        "ahmdxi/openemr-exploit-chain"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "ahmdxi/openemr-exploit-chain/orc.py:515",
        "ahmdxi/openemr-exploit-chain/orc.py:551"
      ]
    },
    {
      "method": "POST",
      "path_template": "/portal/get_patient_info.php",
      "headers": [
        {
          "name": "Referer",
          "value": "{var}"
        },
        {
          "name": "Referer",
          "value": "https://{var}/portal/get_patient_info.php"
        }
      ],
      "body_markers": [
        "eid=",
        "resname=empty",
        "form_action=save",
        "recurr_affect=",
        "selected_date=2026-09-26",
        "event_start_date=2026-09-26",
        "old_repeats=0",
        "rt2_flag2=0",
        "form_category=9",
        "form_title=Noise appt",
        "facility=3",
        "billing_facility=3",
        "form_patient=Noise",
        "form_pid=",
        "form_dob=",
        "form_provider=1",
        "form_date=2026-09-26",
        "form_allday=0",
        "form_hour=8",
        "form_minute=30",
        "form_duration=15",
        "form_repeat_exdate=",
        "form_apptstatus=-",
        "form_prefcat=0",
        "form_room=2",
        "form_comments=noise",
        "csrf_token_form=",
        "issue=0",
        "thistype=medical_problem",
        "thispid=",
        "thisenc=0",
        "form_type=0",
        "form_active=1",
        "form_titles=Noise dx",
        "form_title=Noise dx",
        "form_title_id=Noise dx",
        "form_begin=2026-09-11 21:37",
        "form_end=",
        "form_reaction=",
        "form_severity_id=unassigned",
        "form_diagnosis=",
        "form_occur=0",
        "form_outcome=0",
        "form_subtype=",
        "form_classification=0",
        "form_verification=confirmed",
        "form_referredby=",
        "form_destination=",
        "form_return=",
        "row_reinjury_id=",
        "form_save=Save"
      ],
      "content_type": "application/x-www-form-urlencoded",
      "ports": [
        8000,
        8443
      ],
      "protocol": "https",
      "repos": [
        "ahmdxi/openemr-exploit-chain"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "ahmdxi/openemr-exploit-chain/orc.py:241",
        "ahmdxi/openemr-exploit-chain/orc.py:264"
      ]
    }
  ],
  "rules": []
}
