Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify vulnerable Kafka broker (4.1.0/4.1.1)
-
DeliveryGenerate forged JWT with arbitrary preferred_username claim
-
ExploitConnect to broker with malicious token
-
ExecutionDefaultJwtValidator accepts token without validation
-
PersistAuthenticate as impersonated user
-
ImpactExecute 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Primary rating from Vendor (apache).
CVSS VectorVendor: apache
Lifecycle Timeline
3DescriptionCVE.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- 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
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.
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
More in Apache Kafka
View allApache Kafka's NetworkClient component logs entire request and response payloads at DEBUG level, exposing sensitive auth
Improper authorization in Apache Kafka 4.0.0-4.3.0 arises from a discrepancy between the documented ACL requirement and
Memory exhaustion in the Apache Kafka broker lets an authenticated principal holding Write permission on a topic submit
Apache Kafka brokers that have an authorizer enabled will read a file or environment variable from the broker host and r
Kafka Connect workers leak plaintext secrets through the REST API's /connector-plugins/{connector-type}/config/validate
Authentication bypass in Apache Kafka Connect's isolated admin REST API allows unauthenticated network attackers to read
Network-reachable, unauthenticated deserialization flaws in Apache Kafka’s clients library and Kafka Streams can force m
Kafka Streams can be stalled indefinitely by a single record whose timestamp is at or near Long.MAX_VALUE, causing an in
Unauthenticated remote attackers can exhaust broker heap and trigger process-wide GC stalls on Apache Kafka by declaring
Heap exhaustion in Apache Kafka allows remote attackers to crash brokers by sending requests that declare an array eleme
Apache Kafka brokers can be driven into heap exhaustion by any authenticated client because the PushTelemetry (KIP-714)
Apache Kafka brokers that run SASL/OAUTHBEARER with the default DefaultJwtValidator and leave sasl.oauthbearer.jwks.endp
EUVD-2026-23846
GHSA-28jg-cgg7-j4wc
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB