Description
An issue discovered in provectus kafka-ui 0.4.0 through 0.7.2 allows remote attackers to execute arbitrary code via the q parameter of /api/clusters/local/topics/{topic}/messages. No fixed release is available; the project has had no commit since 2024-04-08.
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Metasploit 1 module
-
Kafka UI Unauthenticated Remote Command Execution via the Groovy Filter option.
exploit/linux/http/kafka_ui_unauth_rce_cve_2023_52251
GitHub 1 repository
-
BobTheShoplifter/CVE-2023-52251-POC ★ 20 · Jan 6, 2024
CVE-2023-52251 There is a Remote Code Execution vulnerability provectus/kafka-ui.
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Automated scanner template
A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.
- Kafka UI 0.7.1 Command Injection http/cves/2023/CVE-2023-52251.yaml
Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.
References
- https://github.com/BobTheShoplifter/CVE-2023-52251-POC
- http://packetstormsecurity.com/files/177214/Kafka-UI-0.7.1-Command-Injection.html
- https://github.com/google/osv.dev/issues/5988
- https://github.com/github/advisory-database/issues/9400
- https://github.com/provectus/kafka-ui/blob/v0.7.2/kafka-ui-api/src/main/java/com/provectus/kafka/ui/emitter/MessageFilters.java
- https://github.com/kafbat/kafka-ui/commit/11a57d14