CVE-2023-52251 in provectus ui

LogPulse has a published detection rule for this CVE: it raises a notable when someone tries to exploit it.

What the vulnerability is

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.

Affected software: provectus ui

Scores

What LogPulse has for it

How to mitigate it

Replace provectus kafka-ui with the maintained kafbat/kafka-ui or block Groovy filters

Workaround. provectus kafka-ui 0.4.0 to 0.7.2 run Groovy code from message filters on the server and will not get a fix. The maintained fork kafbat/kafka-ui removed the unsafe evaluation.

Applies to: provectus kafka-ui 0.4.0 to 0.7.2.

  1. Find kafka-ui deployments (image provectuslabs/kafka-ui) and note the version.
  2. Replace them with a current kafbat/kafka-ui release (image ghcr.io/kafbat/kafka-ui) using the same configuration.
  3. Until replaced, put authentication in front of kafka-ui and block requests with filterQueryType=GROOVY_SCRIPT at the proxy.
  4. Keep DYNAMIC_CONFIG_ENABLED off unless needed.

Sources:

Source data: NIST NVD, CISA KEV and FIRST EPSS. LogPulse processes new CVEs every hour.

We build every detection with great care, but no two environments are the same. Log sources, parsing and configuration differ, so test a detection in your own environment before you rely on it.

Start free with LogPulse