CVE-2019-5438 Unauthorized File Access in harp

Medium 5.3 Published Updated

An attacker can exploit symlink path traversal in the harp module to read or modify arbitrary files on the system.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2019-5438?

CVE-2019-5438 is a medium-severity path traversal vulnerability in harp, published on 10 May 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Path traversal using symlink in npm harp module versions <= 0.29.0.

Weakness: CWE-59, CWE-22

Which versions are affected by CVE-2019-5438?

2 open source packages ship an affected version, including harp. It affects 1 product.

PackageAffectedFixed in
harp npmAll versions0.40.3
harp npmAll versions0.40.3

Products include Harpjs Harp.

How do I fix CVE-2019-5438?

Upgrade harp to 0.40.3 or later.

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

Is CVE-2019-5438 being exploited?

There is no known exploitation of CVE-2019-5438 in the wild and no public exploit code.

Sources

Also known as GHSA-6fmm-47qc-p4m4.

Is CVE-2019-5438 in your software?

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

Check your SBOMs for free