CVE-2019-10783 OS Command Injection in lsof

Critical 9.8 Published Updated

The lsof npm module allows command injection via user input in exported methods, enabling arbitrary code execution.

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

What is CVE-2019-10783?

CVE-2019-10783 is a critical command injection vulnerability in lsof, published on 29 Jan 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

All versions including 0.0.4 of lsof npm module are vulnerable to Command Injection. Every exported method used by the package uses the exec function to parse user input.

Weakness: CWE-78

Which versions are affected by CVE-2019-10783?

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

PackageAffectedFixed in
lsof npmAll versions to 0.0.4None
lsof npmAll versions to 0.0.4None

Products include Isof Project Isof.

How do I fix CVE-2019-10783?

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

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2019-10783 being exploited?

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

Sources

Also known as GHSA-whq6-mj2r-mjqc.

Is CVE-2019-10783 in your software?

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

Check your SBOMs for free