CVE-2026-33557Apache Kafka: Missing JWT token validation in OAUTHBEARER authentication
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.
What to do
Fixed builds are available from Maven: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 18.04 | kafka | Fix pending | UBUNTU-CVE-2026-33557 | |
| Red Hat Enterprise Linux 9 | log4j | Not affected | ||
| Red Hat Enterprise Linux 9 | log4j-jcl | Not affected | ||
| Red Hat Enterprise Linux 9 | log4j-slf4j | Not affected | ||
| Red Hat Enterprise Linux 8 | log4j | Not affected | ||
| Red Hat Enterprise Linux 8 | log4j-jcl | Not affected | ||
| Red Hat Enterprise Linux 8 | log4j-slf4j | Not affected | ||
| Red Hat Enterprise Linux 8 | log4j-web | Not affected | ||
| Maven library | org.apache.kafka:kafka-clients | Fixed | 4.1.2 | GHSA-28jg-cgg7-j4wc |
What the vendor says
As published in the CVE record by apache, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Apache Software Foundation Apache Kafka: affected: 4.1.0 to 4.1.1
Vendor advisories:
- https://kafka.apache.org/cve-list (vendor-advisory)
References
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.