CVE-2018-15142 Path traversal in n/a

High 8.8 Published Updated

Authenticated attackers can exploit a directory traversal flaw in OpenEMR to upload and execute arbitrary PHP code.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2018-15142?

CVE-2018-15142 is a high-severity path traversal vulnerability in Open-Emr Openemr, published on 13 Aug 2018. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

Directory traversal in portal/import_template.php in versions of OpenEMR before 5.0.1.4 allows a remote attacker authenticated in the patient portal to execute arbitrary PHP code by writing a file with a PHP extension via the "docid" and "content" parameters and accessing it in the traversed directory.

Weakness: CWE-22

Which versions are affected by CVE-2018-15142?

It affects 1 product.

Products include Open-Emr Openemr.

How do I fix CVE-2018-15142?

No fix has been published for CVE-2018-15142 yet. Limit exposure of the affected software until one is available.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2018-15142 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2018-15142 exists.

Public exploit code: 1 Exploit-DB entry.

All Open-Emr Openemr vulnerabilities

Sources

Also known as GHSA-ffhh-fjrg-f4fj.

Is CVE-2018-15142 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free