CVE-2023-51387 Expression Injection Vulnerability in Hertzbeat

High 7.2 Published Updated

A malicious user with access to alert definition can execute arbitrary commands on the Hertzbeat server via crafted expressions.

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

What is CVE-2023-51387?

CVE-2023-51387 is a high-severity code injection vulnerability in dromara hertzbeat, published on 22 Dec 2023. An attacker needs administrator access to exploit it, with no action from the victim.

Official description

Hertzbeat is an open source, real-time monitoring system. Hertzbeat uses aviatorscript to evaluate alert expressions. The alert expressions are supposed to be some simple expressions. However, due to improper sanitization for alert expressions in version prior to 1.4.1, a malicious user can use a crafted alert expression to execute any command on hertzbeat server. A malicious user who has access to alert define function can execute any command in hertzbeat instance. This issue is fixed in version 1.4.1.

Weakness: CWE-94

Which versions are affected by CVE-2023-51387?

It affects 1 product.

Products include Apache Hertzbeat.

How do I fix CVE-2023-51387?

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

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2023-51387 being exploited?

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

Sources

Also known as GHSA-4576-m8px-w9qj.

Is CVE-2023-51387 in your software?

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

Check your SBOMs for free