← voltar
CVE-2026-33557

Apache Kafka: Missing JWT token validation in OAUTHBEARER authentication

CVSS 9.1 CRITICALEPSS 0.5%CWE-1285
Em resumo

A autenticação padrão do Apache Kafka não valida adequadamente tokens JWT, permitindo que invasores criem tokens falsificados e acessem o broker com qualquer nome de usuário.

Detalhe técnico

O DefaultJwtValidator no mecanismo OAUTHBEARER do Apache Kafka não valida assinaturas, emissor ou audiência dos tokens JWT. Um atacante não autenticado pode criar tokens JWT arbitrários com identidades falsificadas e autenticar como qualquer usuário sem verificação criptográfica. Isso contorna controles de acesso nas versões afetadas (4.1.0, 4.1.1).

Resumo gerado e traduzido por IA a partir da descrição oficial.
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:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

Quer saber se a sua infraestrutura está exposta a isto?

Falar com a TrueHacking →