CVE-2018-12972 OpenTSDB vulnerable to OS Command Injection

Critical 9.8 Published Updated

Attackers can execute arbitrary commands via parameters in the /q URI of OpenTSDB, leading to remote 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-2018-12972?

CVE-2018-12972 is a critical command injection vulnerability in n/a, published on 29 Jun 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

An issue was discovered in OpenTSDB 2.3.0. Many parameters to the /q URI can execute commands, including o, key, style, and yrange and y2range and their JSON input.

Weakness: CWE-78

Which versions are affected by CVE-2018-12972?

2 open source packages ship an affected version, including net.opentsdb:opentsdb. It affects 1 product.

PackageAffectedFixed in
net.opentsdb:opentsdb MavenAll versions to 2.3.0None
net.opentsdb:opentsdb MavenAll versions to 2.3.0None

Products include Opentsdb Opentsdb.

How do I fix CVE-2018-12972?

No fix has been published for CVE-2018-12972 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-2018-12972 being exploited?

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

Sources

Also known as GHSA-cx2v-jrjc-g54w.

Is CVE-2018-12972 in your software?

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

Check your SBOMs for free