Horizon Alert
Summary of the vulnerability and why it matters
A security vulnerability in Apache Kafka allows for the acceptance of any JWT token without proper signature, issuer, or audience validation. This means an attacker could create a fake token, potentially granting them unauthorized access to the system.
- Allows unauthorized access.
- Affects systems using specific Kafka versions.
- Default configuration is vulnerable.
Attack Path
How an attacker could exploit the issue
An attacker can exploit this by crafting a JWT token that bypasses signature, issuer, and audience validation on vulnerable Apache Kafka brokers. This allows them to impersonate any user, granting unauthorized access to Kafka resources and data.
- No authentication required.
- Target broker's SASL authentication.
- Default validator accepts forged tokens.
Live Threat
Current exploitation, exposure, and threat context
This vulnerability in Apache Kafka allows for unauthenticated access to sensitive information or actions by bypassing JWT signature, issuer, and audience validation. Attackers would favor this for its potential to grant broad access within a Kafka environment without needing legitimate credentials, especially if Kafka is exposed externally or in a less secured internal segment.
- No public exploit observed.
- No KEV listing.
- Published vulnerability with limited affected versions.
Priority actions
Operational Fix
Recommended remediation, mitigation, and detection steps
Prioritize patching or configuring Apache Kafka instances running versions 4.1.0 through 4.1.1. This vulnerability allows unauthenticated attackers to forge JWT tokens and gain unauthorized access by bypassing signature, issuer, and audience validation. If immediate patching is not feasible, implement strict network segmentation to limit access to these Kafka brokers.
- Explicitly set `sasl.oauthbearer.jwt.validator.class` to `org.apache.kafka.common.security.oauthbearer.BrokerJwtValidator`.
- Upgrade Kafka to version 4.1.2 or later.
- Monitor network traffic for unusual authentication attempts.