CVE-2024-51744Improper Handling of Exceptional Conditions in JWT

Severity
3.1LOWNVD
EPSS
0.1%
top 81.22%
CISA KEV
Not in KEV
Exploit
No known exploits
Timeline
PublishedNov 4
Latest updateNov 12

Description

golang-jwt is a Go implementation of JSON Web Tokens. Unclear documentation of the error behavior in `ParseWithClaims` can lead to situation where users are potentially not checking errors in the way they should be. Especially, if a token is both expired and invalid, the errors returned by `ParseWithClaims` return both error codes. If users only check for the `jwt.ErrTokenExpired ` using `error.Is`, they will ignore the embedded `jwt.ErrTokenSignatureInvalid` and thus potentially accept invalid

CVSS vector

CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:NExploitability: 1.6 | Impact: 1.4

Affected Packages23 packages

CVEListV5golang-jwt/jwt< 4.5.1
debiandebian/golang-github-golang-jwt-jwt< golang-github-golang-jwt-jwt 5.0.0+really4.5.2-1 (forky)

🔴Vulnerability Details

4
OSV
Improper error handling in ParseWithClaims and bad documentation may cause dangerous situations in github.com/golang-jwt/jwt2024-11-12
GHSA
Bad documentation of error handling in ParseWithClaims can lead to potentially dangerous situations2024-11-04
OSV
CVE-2024-51744: golang-jwt is a Go implementation of JSON Web Tokens2024-11-04
OSV
Bad documentation of error handling in ParseWithClaims can lead to potentially dangerous situations2024-11-04

📋Vendor Advisories

3
Microsoft
Bad documentation of error handling in ParseWithClaims can lead to potentially dangerous situations in golang-jwt2024-11-12
Red Hat
golang-jwt: Bad documentation of error handling in ParseWithClaims can lead to potentially dangerous situations in golang-jwt2024-11-04
Debian
CVE-2024-51744: golang-github-golang-jwt-jwt - golang-jwt is a Go implementation of JSON Web Tokens. Unclear documentation of t...2024

🕵️Threat Intelligence

2
Wiz
CVE-2026-33413 Impact, Exploitability, and Mitigation Steps | Wiz
Wiz
CVE-2026-33343 Impact, Exploitability, and Mitigation Steps | Wiz

💬Community

1
Bugzilla
CVE-2024-51744 golang-jwt: Bad documentation of error handling in ParseWithClaims can lead to potentially dangerous situations in golang-jwt2024-11-04