CVE-2020-7781 Command Injection

Critical 9.8 Published Updated

Attackers can execute arbitrary commands via the connection-tester npm package due to improper input handling in index.js.

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

What is CVE-2020-7781?

CVE-2020-7781 is a critical command injection vulnerability in connection-tester, published on 16 Dec 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

This affects the package connection-tester before 0.2.1. The injection point is located in line 15 in index.js. The following PoC demonstrates the vulnerability:

Weakness: CWE-78

Which versions are affected by CVE-2020-7781?

2 open source packages ship an affected version, including connection-tester. It affects 1 product.

PackageAffectedFixed in
connection-tester npmAll versions0.2.1
connection-tester npmAll versions0.2.1

Products include Connection-Tester Project Connection-Tester.

How do I fix CVE-2020-7781?

Upgrade connection-tester to 0.2.1 or later.

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

Is CVE-2020-7781 being exploited?

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

Sources

Also known as GHSA-w5mp-8p8w-mhh8, SNYK-JS-CONNECTIONTESTER-1048337.

Is CVE-2020-7781 in your software?

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

Check your SBOMs for free