VYPR
Unrated severityOSV Advisory· Published Aug 20, 2018· Updated Sep 17, 2024

CVE-2018-1000645

CVE-2018-1000645

Description

LibreHealthIO lh-ehr version <REL-2.0.0 contains an Authenticated Local File Disclosure vulnerability in Importing of templates allows local file disclosure that can result in Disclosure of sensitive files on the server. This attack appear to be exploitable via User controlled variable in import templates function.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

Authenticated local file disclosure in LibreHealthIO lh-ehr <REL-2.0.0 allows reading arbitrary server files via `docid` parameter in `import_template.php`.

Vulnerability

An authenticated local file disclosure vulnerability exists in LibreHealthIO lh-ehr versions prior to REL-2.0.0. The issue is in the import_template.php script, specifically in the line echo file_get_contents($_POST['docid']); [1][2]. The docid POST parameter is directly passed to file_get_contents(), allowing an attacker to read any file on the server that the web server user has access to.

Exploitation

An attacker must be authenticated to the lh-ehr application. By sending a POST request to import_template.php with the docid parameter set to the absolute path of a target file (e.g., /etc/passwd), the contents of the file are echoed in the response [1][2]. No user interaction is required beyond authentication.

Impact

Successful exploitation allows disclosure of sensitive files on the server, such as /etc/passwd, configuration files, or other readable resources. This can lead to further compromise of the system if credentials or configuration secrets are exposed.

Mitigation

As of the publication of this CVE, no patched version has been released. The issue was reported in July 2018, but the resolution status remains pending [1][2]. Users should monitor the project's repository for updates and consider limiting access to the vulnerable script until a fix is available.

AI Insight generated on May 26, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected products

2
  • LibreHealth/Lh EhrOSV2 versions
    EventPlanning, INTERN, REL_101, …+ 1 more
    • (no CPE)range: EventPlanning, INTERN, REL_101, …
    • (no CPE)range: < REL-2.0.0

Patches

0

No patches discovered yet.

Vulnerability mechanics

AI mechanics synthesis has not run for this CVE yet.

References

2

News mentions

0

No linked articles in our index yet.