Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.7%top 51%

CVE-2026-33557: CWE-1285 Improper Validation of Specified Index, Position, or Offset in Input in Apache Software Foundation Apache Kafka

0
Critical
VulnerabilityCVE-2026-33557cvecve-2026-33557cwe-1285
Published: 04/20/2026 (04/20/2026, 13:28:43 UTC)
Source: CVE Database V5
Vendor/Project: Apache Software Foundation
Product: 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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

Affected software

org.apache.kafka/kafka
pkg:maven/org.apache.kafka/kafka
Affected versions
=4.1.0

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

AILast updated: 07/15/2026, 09:00:24 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses