CVE-2026-33557: CWE-1285 Improper Validation of Specified Index, Position, or Offset in Input in Apache Software Foundation Apache Kafka
A possible security vulnerability has been identified in Apache Kafka. By default, the broker property `sasl.oauthbearer.jwt.validator.class` is set to `org.apache.kafka.common.security.oauthbearer.DefaultJwtValidator`. It accepts any JWT token without validating its signature, issuer, or audience. An attacker can generate a JWT token from any issuer with the `preferred_username` set to any user, and the broker will accept it. We advise the Kafka users using kafka v4.1.0 or v4.1.1 to set the config `sasl.oauthbearer.jwt.validator.class` to `org.apache.kafka.common.security.oauthbearer.BrokerJwtValidator` explicitly to avoid this vulnerability. Since Kafka v4.1.2 and v4.2.0 and later, the issue is fixed and will correctly validate the JWT token.
AI Analysis
Technical Summary
The vulnerability in Apache Kafka arises from the default broker property sasl.oauthbearer.jwt.validator.class being set to org.apache.kafka.common.security.oauthbearer.DefaultJwtValidator. This validator does not validate the JWT token's signature, issuer, or audience, effectively accepting any token presented. An attacker can exploit this by generating a JWT token from any issuer with the preferred_username claim set to any user, and the broker will accept it as valid. Kafka versions 4.1.2, 4.2.0, and later address this issue by implementing proper JWT validation. Users of Kafka 4.1.0 and 4.1.1 are advised to explicitly set the validator class to org.apache.kafka.common.security.oauthbearer.BrokerJwtValidator to mitigate the vulnerability.
Potential Impact
This vulnerability allows an unauthenticated attacker to impersonate any user by presenting a crafted JWT token that bypasses signature and issuer validation. This can lead to unauthorized access with the privileges of the impersonated user, potentially compromising confidentiality and integrity of Kafka broker operations. The CVSS score of 9.1 reflects the critical impact with network attack vector, no required privileges or user interaction, and high confidentiality and integrity impact.
Mitigation Recommendations
Users running Apache Kafka versions 4.1.0 or 4.1.1 should explicitly configure the broker property sasl.oauthbearer.jwt.validator.class to org.apache.kafka.common.security.oauthbearer.BrokerJwtValidator to enforce proper JWT validation. Upgrading to Apache Kafka version 4.1.2, 4.2.0, or later is recommended as these versions include the fix that correctly validates JWT tokens by default. Patch status is not explicitly stated in the vendor advisory, but the fix is included starting from version 4.1.2. No other mitigation is indicated by the vendor advisory.
CVE-2026-33557: CWE-1285 Improper Validation of Specified Index, Position, or Offset in Input in Apache Software Foundation Apache Kafka
Description
A possible security vulnerability has been identified in Apache Kafka. By default, the broker property `sasl.oauthbearer.jwt.validator.class` is set to `org.apache.kafka.common.security.oauthbearer.DefaultJwtValidator`. It accepts any JWT token without validating its signature, issuer, or audience. An attacker can generate a JWT token from any issuer with the `preferred_username` set to any user, and the broker will accept it. We advise the Kafka users using kafka v4.1.0 or v4.1.1 to set the config `sasl.oauthbearer.jwt.validator.class` to `org.apache.kafka.common.security.oauthbearer.BrokerJwtValidator` explicitly to avoid this vulnerability. Since Kafka v4.1.2 and v4.2.0 and later, the issue is fixed and will correctly validate the JWT token.
CVSS v3.1
Score 9.1critical
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in Apache Kafka arises from the default broker property sasl.oauthbearer.jwt.validator.class being set to org.apache.kafka.common.security.oauthbearer.DefaultJwtValidator. This validator does not validate the JWT token's signature, issuer, or audience, effectively accepting any token presented. An attacker can exploit this by generating a JWT token from any issuer with the preferred_username claim set to any user, and the broker will accept it as valid. Kafka versions 4.1.2, 4.2.0, and later address this issue by implementing proper JWT validation. Users of Kafka 4.1.0 and 4.1.1 are advised to explicitly set the validator class to org.apache.kafka.common.security.oauthbearer.BrokerJwtValidator to mitigate the vulnerability.
Potential Impact
This vulnerability allows an unauthenticated attacker to impersonate any user by presenting a crafted JWT token that bypasses signature and issuer validation. This can lead to unauthorized access with the privileges of the impersonated user, potentially compromising confidentiality and integrity of Kafka broker operations. The CVSS score of 9.1 reflects the critical impact with network attack vector, no required privileges or user interaction, and high confidentiality and integrity impact.
Mitigation Recommendations
Users running Apache Kafka versions 4.1.0 or 4.1.1 should explicitly configure the broker property sasl.oauthbearer.jwt.validator.class to org.apache.kafka.common.security.oauthbearer.BrokerJwtValidator to enforce proper JWT validation. Upgrading to Apache Kafka version 4.1.2, 4.2.0, or later is recommended as these versions include the fix that correctly validates JWT tokens by default. Patch status is not explicitly stated in the vendor advisory, but the fix is included starting from version 4.1.2. No other mitigation is indicated by the vendor advisory.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- apache
- Date Reserved
- 2026-03-23T03:14:53.527Z
- Cvss Version
- null
- State
- PUBLISHED
- Remediation Level
- null
- Vendor Advisory Urls
- [{"url":"https://access.redhat.com/security/cve/CVE-2026-33557","vendor":"Red Hat"}]
Threat ID: 69e631a519fe3cd2cdff25ff
Added to database: 04/20/2026, 14:01:09 UTC
Last enriched: 07/15/2026, 09:00:24 UTC
Last updated: 07/31/2026, 19:22:58 UTC
Views: 542
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.