Hertzbeat SQL Injection in /api/monitor/{monitorId}/metric/{metricFull} before 1.6.0
CVE-2024-42361 Published on August 20, 2024
GHSL-2023-256: HertzBeat Authenticated (guest role) SQL injection in /api/monitor/{monitorId}/metric/{metricFull}
Hertzbeat is an open source, real-time monitoring system. Hertzbeat 1.6.0 and earlier declares a /api/monitor/{monitorId}/metric/{metricFull} endpoint to download job metrics. In the process, it executes a SQL query with user-controlled data, allowing for SQL injection.
Vulnerability Analysis
CVE-2024-42361 can be exploited with network access, and does not require authorization privileges or user interaction. This vulnerability is considered to have a low attack complexity. An automatable proof of concept (POC) exploit exists. The potential impact of an exploit of this vulnerability is considered to have a high impact on confidentiality, with no impact on integrity and availability.
Weakness Type
What is a SQL Injection Vulnerability?
The software constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component.
CVE-2024-42361 has been classified to as a SQL Injection vulnerability or weakness.
Products Associated with CVE-2024-42361
You can be notified by email with stack.watch whenever vulnerabilities like CVE-2024-42361 are published in Apache Hertzbeat:
Affected Versions
Apache HertzBeat:- Version <= 1.6.0 is affected.
- Before and including 1.6.0 is affected.
Exploit Probability
EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.