REDHAT-BUG-2354195: High severity golang-jwt golang-jwt vulnerability
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
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
golang-jwtto a version that resolves this vulnerability.Fixed in 5.2.2 - Upgrade
Upgrade
golang-jwtto a version that resolves this vulnerability.Fixed in 4.5.2
Event History
Frequently Asked Questions
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.
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.
What versions are affected by REDHAT-BUG-2354195?
REDHAT-BUG-2354195 affects golang-jwt versions prior to 5.2.2 and 4.5.2.
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.
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.