CVE Vulnerabilities

CVE-2025-27819

Deserialization of Untrusted Data

Published: Jun 10, 2025 | Modified: Jul 11, 2025
CVSS 3.x
N/A
Source:
NVD
CVSS 2.x
RedHat/V2
RedHat/V3
8.8 IMPORTANT
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Ubuntu

In CVE-2023-25194, we announced the RCE/Denial of service attack via SASL JAAS JndiLoginModule configuration in Kafka Connect API. But not only Kafka Connect API is vulnerable to this attack, the Apache Kafka brokers also have this vulnerability. To exploit this vulnerability, the attacker needs to be able to connect to the Kafka cluster and have the AlterConfigs permission on the cluster resource.

Since Apache Kafka 3.4.0, we have added a system property (-Dorg.apache.kafka.disallowed.login.modules) to disable the problematic login modules usage in SASL JAAS configuration. Also by default com.sun.security.auth.module.JndiLoginModule is disabled in Apache Kafka 3.4.0, and com.sun.security.auth.module.JndiLoginModule,com.sun.security.auth.module.LdapLoginModule is disabled by default in in Apache Kafka 3.9.1/4.0.0

Weakness

The product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid.

Affected Software

Name Vendor Start Version End Version
Kafka Apache 2.0.0 (including) 3.3.2 (including)

Potential Mitigations

  • Make fields transient to protect them from deserialization.
  • An attempt to serialize and then deserialize a class containing transient fields will result in NULLs where the transient data should be. This is an excellent way to prevent time, environment-based, or sensitive variables from being carried over and used improperly.

References