Authentication Bypass by Spoofing The advisory has been revoked - it doesn't affect any version of package k8s.io/kubernetes/staging/src/k8s.io/apiserver/plugin/pkg/authenticator/token/oidc  (opens in a new tab)


Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.14% (51st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-GOLANG-K8SIOKUBERNETESSTAGINGSRCK8SIOAPISERVERPLUGINPKGAUTHENTICATORTOKENOIDC-7216075
  • published6 Jun 2024
  • disclosed5 Jun 2024
  • creditUnknown

Introduced: 5 Jun 2024

CVE-2024-5037  (opens in a new tab)
CWE-290  (opens in a new tab)

Amendment

This was deemed not a vulnerability.

Overview

k8s.io/kubernetes/staging/src/k8s.io/apiserver/plugin/pkg/authenticator/token/oidc is a package that implements the authenticator.Token interface using the OpenID Connect protocol.

Affected versions of this package are vulnerable to Authentication Bypass by Spoofing due to a flaw in the JWT authentication mechanism. An attacker can bypass the issue ("iss") check and gain unauthorized access by using a forged token. If two servers use the same pair of keys, the attacker can use the token from the first server to deceive the second server, and cause the privilege escape.

Note:

This advisory was revoked, as this vulnerability only affects openshift telemeter, not Kubernetes.

PoC

{
"fakeiss":".eyJpc3MiOiJhY2NvdW50cy5nb29nbGUuY29tIn0.",
"protected":"",
"header":"",
"payload":"",
"signature":""
}