Skip to main content

CRE-2025-0025

Kafka broker replication mismatchMedium
Impact: 6/10
Mitigation: 5/10

CRE-2025-0025View on GitHub

Description

When the configured replication factor for a Kafka topic is greater than the actual number of brokers in the cluster, Kafka repeatedly fails to assign partitions and logs replication-related errors. This results in persistent warnings or an `InvalidReplicationFactorException` when the broker tries to create internal or user-defined topics.

Mitigation

Match or lower the replication factor to the actual broker count, or scale up the Kafka cluster to accommodate the higher replication factor.

References