CVE-2024-5037: Openshift/telemeter: iss check during jwt authentication can be bypassed

Published Mar 31, 2024
·
Updated

A flaw was found in OpenShift's Telemeter. If certain conditions are in place, an attacker can use a forged token to bypass the issue ("iss") check during JSON web token (JWT) authentication.

Other sources

Description: When verifying the iss field, telemeter uses strings.Split(tokenData, ".") to extract the payload, which means that the user should submit a Compact type JWS Token. However, go-jose's jwt.ParseSigned(tokenData) also supports authenticating JWS Token of JSON type. That means if the attacker submits a Token like:

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

The attacker can forge a token issued by Google to pass the verification(for example). If two server use the same pair of key, the attacker can use the token from the first server to deceive the second server, and cause the privilege escape. The original reporter has raised this issue to Kubernetes, and they have fixed this problem: https://github.com/kubernetes/kubernetes/pull/123540

---

https://github.com/openshift/telemeter Version: 4.17 Related Code: https://github.com/openshift/telemeter/blob/a9417a6062c3a31ed78c06ea3a0613a52f2029b2/pkg/authorize/jwt/clientauthorizer.go#L78

Red Hat

Affected Software

2 affected components
redhat OpenShift Container Platform=4.0
redhat Openshift Distributed Tracing=2.0

Event History

Mar 31, 2024
Data Sourced
via Red Hat·12:33 AM
DescriptionSeverityAffected Software
Jun 5, 2024
CVE Published
via MITRE·06:03 PM
Data Sourced
via MITRE·06:03 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·06:15 PM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2024-5037?

CVE-2024-5037 is classified as a medium severity vulnerability due to its ability to allow an attacker to bypass JWT authentication under certain conditions.

2

How do I fix CVE-2024-5037?

To fix CVE-2024-5037, update your OpenShift Container Platform and OpenShift Distributed Tracing to the latest versions provided by Red Hat.

3

Which versions are affected by CVE-2024-5037?

CVE-2024-5037 affects Red Hat OpenShift Container Platform version 4.0 and Red Hat OpenShift Distributed Tracing version 2.0.

4

What kind of attack can CVE-2024-5037 enable?

CVE-2024-5037 allows an attacker to forge tokens and bypass the issuer check during JWT authentication.

5

Is there a workaround for CVE-2024-5037?

There are no specific workarounds for CVE-2024-5037; updating to the patched versions is recommended.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203