REDHAT-BUG-2354195: High severity golang-jwt golang-jwt vulnerability

Published Mar 21, 2025
·
Updated

golang-jwt is a Go implementation of JSON Web Tokens. Prior to 5.2.2 and 4.5.2, the function parse.ParseUnverified splits (via a call to strings.Split) its argument (which is untrusted data) on periods. As a result, in the face of a malicious request whose Authorization header consists of Bearer followed by many period characters, a call to that function incurs allocations to the tune of O(n) bytes (where n stands for the length of the function's argument), with a constant factor of about 16. This issue is fixed in 5.2.2 and 4.5.2.

Affected Software

2 affected components
golang-jwt golang-jwt<5.2.2
golang-jwt golang-jwt<4.5.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade golang-jwt to a version that resolves this vulnerability.

    Fixed in 5.2.2
  2. Upgrade

    Upgrade golang-jwt to a version that resolves this vulnerability.

    Fixed in 4.5.2

Event History

Mar 21, 2025
Data Sourced
via Red Hat·10:01 PM
DescriptionSeverityAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of REDHAT-BUG-2354195?

The severity of REDHAT-BUG-2354195 is classified as high due to potential exploitation through malicious JWT inputs.

2

How do I fix REDHAT-BUG-2354195?

To mitigate REDHAT-BUG-2354195, upgrade to golang-jwt version 5.2.2 or later, or version 4.5.2 or later.

3

What versions are affected by REDHAT-BUG-2354195?

REDHAT-BUG-2354195 affects golang-jwt versions prior to 5.2.2 and 4.5.2.

4

What types of applications are impacted by REDHAT-BUG-2354195?

Applications using golang-jwt for processing JSON Web Tokens are impacted by REDHAT-BUG-2354195.

5

What is the nature of the vulnerability in REDHAT-BUG-2354195?

The vulnerability in REDHAT-BUG-2354195 arises from the insecure handling of untrusted data during the parsing of JWTs.

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