CVE-2023-52251
NixOS vulnerability analysis and mitigation

Overview

A remote code execution (RCE) vulnerability was discovered in provectus kafka-ui versions 0.4.0 through 0.7.1. The vulnerability, identified as CVE-2023-52251, allows remote attackers to execute arbitrary code via the q parameter of /api/clusters/local/topics/{topic}/messages endpoint. This vulnerability was discovered and disclosed on September 27, 2023, and was later patched in version 0.7.2 released in April 2024 (GitHub Security Lab).

Technical details

The vulnerability exists due to insufficient sanitization of the Groovy script filter before execution in the groovyScriptFilter function. The vulnerable code executes the script through compiledScript.eval(bindings) without proper validation. The vulnerability has been assigned a CVSS v3.1 base score of 8.8 (HIGH) with the vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H (NVD). The issue is classified as CWE-94: Improper Control of Generation of Code ('Code Injection').

Impact

The vulnerability allows attackers to execute arbitrary code on the server, potentially leading to complete system compromise. This is particularly concerning as Kafka UI does not have authentication enabled by default. According to security researchers, there were over 1,000 instances of kafka-ui exposed to the internet at the time of discovery, all potentially vulnerable to this attack. The software is also commonly deployed on internal networks, increasing the potential attack surface (CVE-2023-52251-POC).

Mitigation and workarounds

The vulnerability has been patched in kafka-ui version 0.7.2. Users are strongly advised to upgrade to this version or later. For those unable to upgrade immediately, it is recommended to implement authentication as a minimum security measure and consider commenting out the entire groovy filter function. Organizations should also ensure that kafka-ui instances are not exposed to the public internet without proper security controls (ASEC).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-69264CRITICAL9.8
  • JavaScriptJavaScript
  • pnpm
NoYesJan 07, 2026
CVE-2025-69263HIGH8.8
  • JavaScriptJavaScript
  • pnpm
NoYesJan 07, 2026
CVE-2025-69262HIGH7.8
  • JavaScriptJavaScript
  • pnpm
NoYesJan 07, 2026
CVE-2026-21885MEDIUM6.5
  • NixOSNixOS
  • miniflux
NoYesJan 08, 2026
CVE-2026-22184MEDIUM4.6
  • NixOSNixOS
  • java-1.8.0-openjdk-demo
NoYesJan 07, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management