/

CVE-2026-124490

Severity:

CRITICAL RISK

(9.1)

Path Traversal (CWE-73) in OpenEMR RingCentral RCFaxClient

CVE-2026-124490

Analyzed

Vulnerability type

Category:

Path Traversal

CWE:

CWE-73

Impact:

Arbitrary file read and write, with potential for remote code execution

Severity:

CRITICAL RISK

(9.1)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

OpenEMR's RingCentral RCFaxClient can use an attacker-controlled file path when disposing of documents, allowing authenticated attackers to access files outside the intended location. Depending on the action and filesystem permissions, this may expose sensitive data or allow files to be written where the web server can execute them.

Affected context

The issue occurs in the disposeDocument() method of the RingCentral RCFaxClient in the oe-module-faxsms module. It is relevant when the module processes requests using the file_path parameter without adequately restricting which filesystem locations can be accessed. The reported download and setup actions can expose files or write content, subject to the application's permissions and server configuration.

Exploit preconditions

  • Attack surface: The RingCentral fax client functionality in the oe-module-faxsms module
  • Required access: An authenticated account able to reach the relevant functionality
  • Trigger point: Processing of a request that invokes disposeDocument() with a file_path value
  • Why exploitation is possible: The supplied path can escape the intended storage area; file access or execution depends on filesystem permissions and web-server configuration

Why this happens

The underlying bug is improper control of a file name or path, corresponding to CWE-73: External Control of File Name or Path. The application uses a request-influenced path for file operations without sufficiently constraining it to an intended directory. This can permit path traversal during reads or writes.

Potential impact

  • Attackers may read credentials, source code, or other files accessible to the application process.
  • Attackers may overwrite or create files in locations writable by the application.
  • If written content is placed in a web-accessible location and the server executes it, the issue could lead to code execution.
  • Exposure or modification of application files could affect confidentiality, integrity, and service availability.

General mitigation guidance

Defensive approaches commonly include avoiding direct use of user-supplied paths for filesystem operations and mapping user choices to server-controlled identifiers instead. Where paths are necessary, resolve them against a fixed base directory and verify that the resolved location remains within that directory. Apply strict input validation, minimize the application's filesystem permissions, and prevent uploads or generated files from being placed in executable web directories.

How teams detect issues like this

Review file operations in fax and document-handling code for paths derived from request parameters, especially paths passed to read, write, or file-disposal functions. Static analysis can flag user-controlled values reaching filesystem APIs; code review can check for canonicalization and containment checks. Enforce policies that limit writable directories and prevent executable content from being served from document storage, and monitor for unusual file access or creation by the application process.

Sources

SourceLink
github.comgithub.com/openemr/openemr/security/advisories/GHSA-38jw-pwgq-9hpj
vulncheck.comvulncheck.com/advisories/openemr-before-8.3.0-arbitrary-file-read-write-via-oe-module-faxsms-disposedocument

Frequently asked

questions

The described attack requires authentication and access to the relevant fax functionality; the account's permissions may affect what files can be reached.

Depending on filesystem permissions, an attacker may read accessible files or write files to accessible locations. Code execution is a possible further impact if a written file is placed where the web server executes it.

Avoid using request-provided paths directly. Prefer server-controlled file identifiers, and constrain any required file operations to a fixed, verified storage directory.

Validate file access boundaries, run the application with least-privilege filesystem permissions, keep writable storage separate from executable web content, and use static analysis and code review to identify untrusted paths reaching filesystem operations.

Find out what's already
exploitable in your codebase.