CVE-2023-25194
Java vulnerability analysis and mitigation

Overview

A security vulnerability (CVE-2023-25194) was identified in Apache Kafka Connect API affecting versions 2.3.0 through 3.3.2. The vulnerability requires access to a Kafka Connect worker and the ability to create or modify connectors with arbitrary Kafka client SASL JAAS configuration and SASL-based security protocol (Apache Kafka CVE, Security Online).

Technical details

The vulnerability allows an authenticated operator to set the sasl.jaas.config property for connector's Kafka clients to 'com.sun.security.auth.module.JndiLoginModule' through producer.override.sasl.jaas.config, consumer.override.sasl.jaas.config, or admin.override.sasl.jaas.config properties. This enables the server to connect to an attacker's LDAP server and deserialize the LDAP response, potentially leading to java deserialization gadget chain execution on the Kafka connect server. The vulnerability has been assigned a CVSS v3 Base Score of 8.8 (AttackerKB).

Impact

When exploited, the vulnerability can lead to unrestricted deserialization of untrusted data or remote code execution (RCE) when there are gadgets in the classpath. The impact is particularly severe as it could allow attackers to execute arbitrary code on the system (SOCRadar).

Mitigation and workarounds

The vulnerability was fixed in Apache Kafka version 3.4.0. The fix includes adding a system property (-Dorg.apache.kafka.disallowed.login.modules) to disable problematic login modules in SASL JAAS configuration. Additionally, 'com.sun.security.auth.module.JndiLoginModule' is disabled by default in Apache Kafka 3.4.0. Users are advised to validate connector configurations, allow only trusted JNDI configurations, and implement their own connector client config override policy (Apache Kafka CVE).

Additional resources


SourceThis report was generated using AI

Related Java vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-66516CRITICAL10
  • JavaJava
  • tika
NoYesDec 04, 2025
CVE-2025-66566HIGH8.2
  • JavaJava
  • org.lz4:lz4-java
NoYesDec 05, 2025
CVE-2025-66623HIGH7.4
  • JavaJava
  • io.strimzi:strimzi
NoYesDec 05, 2025
CVE-2025-11222MEDIUM6.1
  • JavaJava
  • com.linecorp.centraldogma:centraldogma-server-auth-shiro
NoYesDec 04, 2025
CVE-2025-66453MEDIUM5.5
  • JavaJava
  • org.mozilla:rhino
NoYesDec 03, 2025

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