# CVE-2023-51387: Expression Injection Vulnerability in Hertzbeat

- Severity: High 7.2 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.88%, higher than 80% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-12-22T20:46:29.236Z
- Modified: 2026-06-17T06:40:51.437Z
- Weaknesses: CWE-94
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- dromara hertzbeat: < 1.4.1
- apache hertzbeat: before 1.4.1

## Every score

- GitHub_M: CVSS:3.1 7.2 High `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/dromara/hertzbeat/security/advisories/GHSA-4576-m8px-w9qj> (exploit, vendor-advisory)
- <https://github.com/dromara/hertzbeat/commit/8dcf050e27ca95d15460a7ba98a3df8a9cd1d3d2> (patch)
- <https://github.com/dromara/hertzbeat/blob/6b599495763120ad1df6f4ed4b6713bb4885d8e2/home/blog/2023-09-26-hertzbeat-v1.4.1.md> (release-notes)

## Sources

- CVE List: [CVE-2023-51387](https://www.cve.org/CVERecord?id=CVE-2023-51387), CVE Terms of Use, modified 2024-08-02
- NVD: [CVE-2023-51387](https://nvd.nist.gov/vuln/detail/CVE-2023-51387), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-51387 · Whole record: https://cve.day/CVE-2023-51387.json · Rebuilt by cve.day 2026-11-25T22:58:31.643Z
