CVE-2024-42361 GHSL-2023-256: HertzBeat Authenticated (guest role) SQL injection in /api/monitor/{monitorId}/metric/{metricFull}
CriticalCVSS 9.8
EPSS 1.1%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: yes · technical impact: partial
Description
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.
Upgrade path
1 package: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| apache hertzbeat | < 1.6.0; <= 1.6.0; = <= 1.6.0 | 1.6.0 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| apache hertzbeat | = <= 1.6.0 | No fix listed |
| apache hertzbeat | <= 1.6.0 | No fix listed |
| apache hertzbeat | < 1.6.0 | 1.6.0 |
References
- https://securitylab.github.com/advisories/GHSL-2023-254_GHSL-2023-256_HertzBeat/ exploit third-party-advisory
- https://github.com/dromara/hertzbeat/blob/1f12ac9f2a1a3d86b1d476775e14174243b250a8/manager/src/main/java/org/dromara/hertzbeat/manager/controller/MonitorsController.java#L202 patch
- https://github.com/dromara/hertzbeat/blob/1f12ac9f2a1a3d86b1d476775e14174243b250a8/warehouse/src/main/java/org/dromara/hertzbeat/warehouse/store/HistoryTdEngineDataStorage.java#L242 patch