Skip to main content

Apache Kafka CVE-2026-33557

| EUVDEUVD-2026-23846 CRITICAL
Improper Validation of Specified Index, Position, or Offset in Input (CWE-1285)
2026-04-20 apache GHSA-28jg-cgg7-j4wc
9.1
CVSS 3.1 · Vendor: apache
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify vulnerable Kafka broker (4.1.0/4.1.1)
  2. Delivery
    Generate forged JWT with arbitrary preferred_username claim
  3. Exploit
    Connect to broker with malicious token
  4. Execution
    DefaultJwtValidator accepts token without validation
  5. Persist
    Authenticate as impersonated user
  6. Impact
    Execute privileged Kafka operations (produce/consume/admin)

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Hardware permission validation
Exploitation Conditions

Exploitation requires the target Apache Kafka broker to be running version 4.1.0 or 4.1.1 with SASL/OAUTHBEARER authentication mechanism enabled and the broker property sasl.oauthbearer.jwt.validator.class set to its default value of org.apache.kafka.common.security.oauthbearer.DefaultJwtValidator (or not explicitly configured, defaulting to this validator). Network connectivity to the Kafka broker's listener ports (typically 9092 or 9093) is required. Exploitation is LIMITED by authentication mechanism-Kafka deployments using SASL/PLAIN, SASL/SCRAM-SHA-256, SASL/SCRAM-SHA-512, Kerberos (GSSAPI), or mutual TLS authentication are NOT vulnerable. Deployments that have explicitly configured the secure BrokerJwtValidator are also not affected. The attack complexity is low (AC:L) as it requires only the ability to generate JWT tokens with arbitrary claims and network access to the broker, with no user interaction (UI:N) or legitimate credentials (PR:N) needed.

Impact

This represents a critical authentication bypass with high real-world risk despite no confirmed exploitation. CVSS 9.1 accurately reflects severity: network-accessible (AV:N), low complexity (AC:L), no privileges required (PR:N), no user interaction (UI:N), with high confidentiality and integrity impact. The SSVC assessment confirms the vulnerability is automatable-an attacker can script token generation without complex preconditions-though marks technical impact as partial rather than total. EPSS data not provided, but the attack simplicity suggests high exploitation probability once awareness spreads. The narrow affected version range (only 4.1.0 and 4.1.1) limits exposure, and the availability of fixed versions (4.1.2+ and 4.2.0+) plus a configuration workaround reduces sustained risk. However, organizations running affected versions with SASL/OAUTHBEARER enabled face immediate risk of unauthorized data access and message manipulation. The authentication bypass grants access to all Kafka operations the impersonated user would have, making this a full access control failure. Priority should be HIGH for organizations using SASL/OAUTHBEARER authentication in affected versions, MEDIUM for those using other authentication mechanisms (not vulnerable), and LOW for organizations already on 4.1.2+ or 4.2.0+.

Exploit ScenarioDerived

An attacker identifies a Kafka cluster running version 4.1.0 or 4.1.1 with SASL/OAUTHBEARER authentication exposed on the network. Using publicly available JWT libraries, they generate a malicious token with the 'preferred_username' claim set to 'kafka-admin' or another privileged user identity, signing it with their own key or leaving it unsigned. They configure a Kafka client to present this forged token during SASL authentication. The broker's DefaultJwtValidator accepts the token without verifying the signature or issuer, granting the attacker full access to produce and consume messages, create/delete topics, and modify ACLs as the impersonated user. The attack requires no specialized tools beyond standard JWT manipulation libraries available in Python, Java, or JavaScript, and leaves minimal forensic evidence since the attacker appears as a legitimate authenticated user in Kafka audit logs.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Apr 20, 2026

Apache Kafka 4.1.0 and 4.1.1 accept forged JWT tokens without signature validation, allowing remote unauthenticated attackers to authenticate as any user and gain unauthorized access to Kafka resources. The default SASL/OAUTHBEARER validator (DefaultJwtValidator) fails to verify token signatures, issuers, or audiences, enabling complete authentication bypass. CVSS 9.1 (Critical) with network vector and no privileges required. SSVC indicates the vulnerability is automatable with partial technical impact. No active exploitation confirmed at time of analysis, but the attack requires minimal sophistication and could be scripted trivially given the token acceptance behavior.

RemediationAI

Immediate remediation requires upgrading to Apache Kafka version 4.1.2 or later, or version 4.2.0 or later, where JWT signature validation is correctly implemented by default. For organizations unable to upgrade immediately, apply the configuration workaround by explicitly setting the broker property sasl.oauthbearer.jwt.validator.class to org.apache.kafka.common.security.oauthbearer.BrokerJwtValidator in the Kafka broker configuration file. This forces use of the secure validator that properly verifies JWT signatures, issuers, and audiences. Note that this configuration change requires broker restart and should be tested in non-production environments first to ensure compatibility with existing client token generation. If SASL/OAUTHBEARER is not required, consider switching to alternative authentication mechanisms (SASL/PLAIN, SASL/SCRAM, mTLS) as a compensating control, though this involves more significant architecture changes and client reconfiguration. Review Kafka access logs for suspicious authentication patterns or unexpected user identities during the vulnerable period. Consult the official Apache Kafka CVE list at https://kafka.apache.org/cve-list and the vendor advisory at https://nvd.nist.gov/vuln/detail/CVE-2026-33557 for additional guidance.

Affected VersionsENISA

Apache Kafka 4.1.0 ≤4.1.1

Affected Packages

maven org.apache.kafka:kafka-clients fix: 4.1.2
euvd apache_kafka no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in maven, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Apache Kafka's SASL/OAUTHBEARER authentication mechanism relies on JWT tokens for client authentication. The vulnerability stems from CWE-1285 (Improper Validation of Specified Index, Position, or Offset in Input), manifested as the DefaultJwtValidator class accepting JWT tokens without cryptographic signature verification. In OAuth 2.0 and JWT (RFC 7519) implementations, the signature validation step is critical to prevent token forgery-verifying the token was issued by a trusted authority and hasn't been tampered with. The affected versions (4.1.0-4.1.1) default to a validator that bypasses these essential checks, treating the 'preferred_username' claim as authoritative without verifying the token's authenticity. This allows attackers to craft self-signed tokens with arbitrary identity claims. The CPE identifies Apache Software Foundation's Apache Kafka as the affected product, specifically the broker authentication subsystem when configured for SASL/OAUTHBEARER.

Know when Apache Kafka gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (apache) PRIMARY 9.1 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Red Hat 8.6 HIGH

Primary rating from Vendor (apache).

CVSS VectorVendor: apache

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None

Lifecycle Timeline

3
Patch released
Apr 25, 2026 - 02:30 nvd
Patch available
CVSS changed
Apr 20, 2026 - 16:22 NVD
9.1 (None) 9.1 (CRITICAL)
CVE Published
Apr 20, 2026 - 13:28 nvd
CRITICAL 9.1

DescriptionCVE.org

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.

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 301 maven packages depend on org.apache.kafka:kafka-clients (135 direct, 166 indirect)

Ecosystem-wide dependent count for version 4.1.0.

Executive ViewAI

Why It Matters

Apache Kafka 4.1.0 and 4.1.1 contain a critical authentication bypass vulnerability that allows unauthenticated remote attackers to forge JWT tokens and impersonate any user, gaining full unauthorized access to Kafka clusters and their data. Organizations running these versions face immediate risk of data exfiltration, unauthorized topic manipulation, and potential service disruption without authentication controls. This vulnerability bypasses all identity and access controls dependent on SASL/OAUTHBEARER authentication.

Business Impact: Severe
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Disable SASL/OAUTHBEARER authentication and switch to alternative SASL mechanisms (SCRAM-SHA-256/512 or PLAINTEXT over TLS); (2) Implement strict network-level access controls limiting Kafka broker connectivity to known trusted client IP ranges; (3) Deploy WAF or API gateway rules to restrict broker access; (4) Enable comprehensive audit logging on all Kafka broker authentication attempts and monitor for unusual token patterns; (5) Implement mTLS mutual authentication in addition to SASL if supported by your Kafka deployment; (6) Isolate Kafka clusters to dedicated network segments with restricted egress.

Threat Intelligence Overview

EPSS Score
0.0%
Top 87% exploitable
Threat Intel
1
1 source
Social Media
3
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor CIRCL VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
Very High
Technical Impact
Partial

Priority Score

46
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +46
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

CVE-2026-33558 MEDIUM
5.3 Apr 20

Apache Kafka's NetworkClient component logs entire request and response payloads at DEBUG level, exposing sensitive auth

CVE-2026-41115 MEDIUM
4.3 Jun 02

Improper authorization in Apache Kafka 4.0.0-4.3.0 arises from a discrepancy between the documented ACL requirement and

CVE-2026-114349 HIGH
Oct 28

Memory exhaustion in the Apache Kafka broker lets an authenticated principal holding Write permission on a topic submit

CVE-2026-112375 HIGH
Oct 28

Apache Kafka brokers that have an authorizer enabled will read a file or environment variable from the broker host and r

CVE-2026-116593 MEDIUM
Oct 28

Kafka Connect workers leak plaintext secrets through the REST API's /connector-plugins/{connector-type}/config/validate

CVE-2026-115644 LOW
Oct 28

Authentication bypass in Apache Kafka Connect's isolated admin REST API allows unauthenticated network attackers to read

CVE-2026-111551 HIGH
Oct 28

Network-reachable, unauthenticated deserialization flaws in Apache Kafka’s clients library and Kafka Streams can force m

CVE-2026-111496 LOW
Oct 28

Kafka Streams can be stalled indefinitely by a single record whose timestamp is at or near Long.MAX_VALUE, causing an in

CVE-2026-111115 HIGH
Oct 28

Unauthenticated remote attackers can exhaust broker heap and trigger process-wide GC stalls on Apache Kafka by declaring

CVE-2026-111108 HIGH
Oct 28

Heap exhaustion in Apache Kafka allows remote attackers to crash brokers by sending requests that declare an array eleme

CVE-2026-111073 MEDIUM
Oct 28

Apache Kafka brokers can be driven into heap exhaustion by any authenticated client because the PushTelemetry (KIP-714)

CVE-2026-110985 HIGH
Oct 28

Apache Kafka brokers that run SASL/OAUTHBEARER with the default DefaultJwtValidator and leave sasl.oauthbearer.jwks.endp

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy