CVE-2023-25826 Remote Code Execution in OpenTSDB

Critical 9.8 Published Updated

Attackers can execute arbitrary OS commands on OpenTSDB hosts via the legacy HTTP query API due to insufficient input validation.

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-2023-25826?

CVE-2023-25826 is a critical command injection vulnerability in OpenTSDB, published on 3 May 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Due to insufficient validation of parameters passed to the legacy HTTP query API, it is possible to inject crafted OS commands into multiple parameters and execute malicious code on the OpenTSDB host system. This exploit exists due to an incomplete fix that was made when this vulnerability was previously disclosed as CVE-2020-35476. Regex validation that was implemented to restrict allowed input to the query API does not work as intended, allowing crafted commands to bypass validation.

Weakness: CWE-78

Which versions are affected by CVE-2023-25826?

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.4.1None
net.opentsdb:opentsdb MavenAll versions to 2.4.1None

Products include Opentsdb Opentsdb.

How do I fix CVE-2023-25826?

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

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

Public exploit code: 1 Metasploit module and 1 Nuclei template.

Sources

Also known as GHSA-h475-7v3c-26q7.

Is CVE-2023-25826 in your software?

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

Check your SBOMs for free