OpenEMR: Local file inclusion and remote code execution (CVE-2026-124467)
OpenEMR versions prior to 8.4.0 contain a local file inclusion vulnerability in the ESign router, allowing authenticated attackers to execute arbitrary code via a malicious file upload.
CVE search metadata
CVE search record: CVE-2026-124467. Severity: high. CVSS: 8.8. KEV: no. Product: OpenEMR (< 8.4.0). Brief: OpenEMR: Local file inclusion and remote code execution (CVE-2026-124467). Brief link: https://feed.craftedsignal.io/briefs/2026-11-openemr-lfi/
Triage facts
Revision 1- Applicability
- OpenEMR (< 8.4.0)
- Evidence
- Unknown
- Severity
- High
- Action
- Elevated
- Sources
- 1 public source
- Freshness
- Revision 1Nov 8, 23:20 UTC
- Detection
- 1 rule
- Vulnerabilities
- 1 CVE
- Source quality
- A1Very likely
OpenEMR versions before 8.4.0 contain a local file inclusion (LFI) vulnerability in the ESign router component located in library/ESign/Router.php. The vulnerability arises because the module parameter is passed into a require_once statement without sanitization. Additionally, the application's fax module (faxProcessUploads) allows the writing of files with attacker-controlled content to a predictable temporary path without validating file extensions. An authenticated attacker can combine these flaws to upload a malicious PHP file masquerading as a controller, and then trigger its execution by requesting the ESign index file with a path-traversal payload in the module parameter.
Attack Chain
- Attacker authenticates to the OpenEMR instance.
- Attacker interacts with the fax module via
faxProcessUploads. - Attacker uploads a file containing malicious PHP code.
- The application saves the file to a predictable temporary directory on the server.
- Attacker makes a request to
interface/esign/index.php. - Attacker provides a path-traversal string in the
moduleparameter to point to the uploaded PHP file. library/ESign/Router.phpexecutesrequire_onceon the malicious file, resulting in remote code execution.
Impact
Successful exploitation allows an authenticated attacker to achieve remote code execution on the underlying server, potentially leading to full system compromise.
Recommendation
- Upgrade OpenEMR to version 8.4.0 or later immediately to address the vulnerabilities in the ESign router and fax module.
- Review access logs for requests to
interface/esign/index.phpcontaining path traversal sequences (e.g.,../,..%2f). - Audit the temporary directory used by the fax module for unexpected
.phpfiles.
Immediate actions
Upgrade OpenEMR to version 8.4.0 or later
Threat Hunt
Identify file uploads to the fax module temporary directory
Data: File system events or application logs showing file writes within the OpenEMR upload path
Mitigations
Upgrade to OpenEMR 8.4.0
CVE-2026-124467
Detection coverage 1
Detect CVE-2026-124467 Exploitation - LFI via ESign module parameter
highDetects exploitation attempts against CVE-2026-124467 by identifying path traversal patterns within the module parameter of the ESign router.
Detection queries are available on the platform. Get full rules →