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

CVE-2018-1000646

CVE-2018-1000646

Description

LibreHealthIO LH-EHR version REL-2.0.0 contains an Authenticated Unrestricted File Write vulnerability in Import template that can result in write files with malicious content and may lead to remote code execution.

AI Insight

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

LibreHealthIO LH-EHR REL-2.0.0 contains an authenticated unrestricted file write vulnerability in import_template.php allowing remote code execution.

Vulnerability

LibreHealthIO LH-EHR version REL-2.0.0 [1] contains an authenticated unrestricted file write vulnerability in the patient_portal/import_template.php script. The code uses file_put_contents($_POST['docid'], $_POST['content']) without validation, allowing an authenticated attacker to write arbitrary files to the web server [2].

Exploitation

An attacker must be authenticated to the application [1][2]. The attacker can then send a POST request to import_template.php with the docid parameter set to the desired file path (e.g., a PHP file in the web root) and the content parameter containing malicious PHP code. The server will write the file using file_put_contents [2].

Impact

Successful exploitation allows the attacker to write arbitrary files, including PHP scripts, to the web server's accessible directories. This can lead to remote code execution (RCE) with the privileges of the web server user [1][2].

Mitigation

As of the published advisory (August 2018), no fix has been released [1][2]. The issue is tracked on GitHub [2]. Users should monitor for updates and consider restricting access to the import functionality or applying input validation as a workaround. The vulnerability is not listed in CISA's KEV as of the knowledge cutoff.

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-2_0_0, …+ 1 more
    • (no CPE)range: EventPlanning, INTERN, REL-2_0_0, …
    • (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.