CVE-2024-51744
published low CVSS 3.1 · 3.1Bad documentation of error handling in ParseWithClaims can lead to potentially dangerous situations in golang-jwt
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| golang-jwt | — | jwt< 4.5.1 | Affected | Not stated | GitHub_M |
| Amazon Linux | AL2 | Release evaluationALAS2DOCKER-2025-048 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2DOCKER-2025-050 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2DOCKER-2025-051 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2ECS-2025-048 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2NITRO-ENCLAVES-2025-050 | Fixed | Not stated | Amazon Linux assessment |
| SUSE / openSUSE | SLE-15-SP3 | supportutils-plugin-saltnoarch | Advisory build | 1.2.3-150000.3.16.1 | SUSE-SU-2025:0525-1 |
| SUSE / openSUSE | SLE-15-SP4 | cosignaarch64 | Advisory build | 2.5.0-150400.3.27.1 | SUSE-SU-2025:1333-1 |
Show 101 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Amazon Linux | AL2023 | Release evaluationALAS2023-2025-816 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2025-834 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2025-852 | Fixed | Not stated | Amazon Linux assessment |
| SUSE / openSUSE | SLE-15-SP4 | cosignppc64le | Advisory build | 2.5.0-150400.3.27.1 | SUSE-SU-2025:1333-1 |
| SUSE / openSUSE | SLE-15-SP4 | cosigns390x | Advisory build | 2.5.0-150400.3.27.1 | SUSE-SU-2025:1333-1 |
| SUSE / openSUSE | SLE-15-SP4 | cosignx86_64 | Advisory build | 2.5.0-150400.3.27.1 | SUSE-SU-2025:1333-1 |
| SUSE / openSUSE | SLE-15-SP4 | supportutils-plugin-saltnoarch | Advisory build | 1.2.3-150000.3.16.1 | SUSE-SU-2025:0525-1 |
| SUSE / openSUSE | SLE-15-SP5 | cosignaarch64 | Advisory build | 2.5.0-150400.3.27.1 | SUSE-SU-2025:1333-1 |
| SUSE / openSUSE | SLE-15-SP5 | cosignppc64le | Advisory build | 2.5.0-150400.3.27.1 | SUSE-SU-2025:1333-1 |
| SUSE / openSUSE | SLE-15-SP5 | cosigns390x | Advisory build | 2.5.0-150400.3.27.1 | SUSE-SU-2025:1333-1 |
| SUSE / openSUSE | SLE-15-SP5 | cosignx86_64 | Advisory build | 2.5.0-150400.3.27.1 | SUSE-SU-2025:1333-1 |
| SUSE / openSUSE | SLE-15-SP5 | govulncheck-vulndbnoarch | Advisory build | 0.0.20241112T145010-150000.1.17.1 | SUSE-SU-2024:4042-1 |
| SUSE / openSUSE | SLE-15-SP5 | supportutils-plugin-saltnoarch | Advisory build | 1.2.3-150000.3.16.1 | SUSE-SU-2025:0525-1 |
| SUSE / openSUSE | SLE-15-SP6 | cosignaarch64 | Advisory build | 2.5.0-150400.3.27.1 | SUSE-SU-2025:1333-1 |
| SUSE / openSUSE | SLE-15-SP6 | cosignppc64le | Advisory build | 2.5.0-150400.3.27.1 | SUSE-SU-2025:1333-1 |
| SUSE / openSUSE | SLE-15-SP6 | cosigns390x | Advisory build | 2.5.0-150400.3.27.1 | SUSE-SU-2025:1333-1 |
| SUSE / openSUSE | SLE-15-SP6 | cosignx86_64 | Advisory build | 2.5.0-150400.3.27.1 | SUSE-SU-2025:1333-1 |
| SUSE / openSUSE | SLE-15-SP6 | golang-github-prometheus-prometheusaarch64 | Advisory build | 2.53.3-150100.4.23.1 | SUSE-SU-2025:0546-1 |
| SUSE / openSUSE | SLE-15-SP6 | golang-github-prometheus-prometheusppc64le | Advisory build | 2.53.3-150100.4.23.1 | SUSE-SU-2025:0546-1 |
| SUSE / openSUSE | SLE-15-SP6 | golang-github-prometheus-prometheuss390x | Advisory build | 2.53.3-150100.4.23.1 | SUSE-SU-2025:0546-1 |
| SUSE / openSUSE | SLE-15-SP6 | golang-github-prometheus-prometheusx86_64 | Advisory build | 2.53.3-150100.4.23.1 | SUSE-SU-2025:0546-1 |
| SUSE / openSUSE | SLE-15-SP6 | golang-github-prometheus-promuaarch64 | Advisory build | 0.17.0-150000.3.24.1 | SUSE-SU-2025:0525-1 |
| SUSE / openSUSE | SLE-15-SP6 | golang-github-prometheus-promuppc64le | Advisory build | 0.17.0-150000.3.24.1 | SUSE-SU-2025:0525-1 |
| SUSE / openSUSE | SLE-15-SP6 | golang-github-prometheus-promus390x | Advisory build | 0.17.0-150000.3.24.1 | SUSE-SU-2025:0525-1 |
| SUSE / openSUSE | SLE-15-SP6 | golang-github-prometheus-promux86_64 | Advisory build | 0.17.0-150000.3.24.1 | SUSE-SU-2025:0525-1 |
| SUSE / openSUSE | SLE-15-SP6 | govulncheck-vulndbnoarch | Advisory build | 0.0.20241112T145010-150000.1.17.1 | SUSE-SU-2024:4042-1 |
| SUSE / openSUSE | SLE-15-SP6 | supportutils-plugin-saltnoarch | Advisory build | 1.2.3-150000.3.16.1 | SUSE-SU-2025:0525-1 |
| SUSE / openSUSE | openSUSE-Leap-15.5 | govulncheck-vulndbnoarch | Advisory build | 0.0.20241112T145010-150000.1.17.1 | SUSE-SU-2024:4042-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | corednsi586 | Advisory build | 1.12.1-bp156.4.6.5 | OPENSUSE-SU-2025:0131-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | corednsx86_64 | Advisory build | 1.12.1-bp156.4.6.5 | OPENSUSE-SU-2025:0131-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | coredns-extrasnoarch | Advisory build | 1.12.1-bp156.4.6.5 | OPENSUSE-SU-2025:0131-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | cosignaarch64 | Advisory build | 2.5.0-150400.3.27.1 | SUSE-SU-2025:1333-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | cosignppc64le | Advisory build | 2.5.0-150400.3.27.1 | SUSE-SU-2025:1333-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | cosigns390x | Advisory build | 2.5.0-150400.3.27.1 | SUSE-SU-2025:1333-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | cosignx86_64 | Advisory build | 2.5.0-150400.3.27.1 | SUSE-SU-2025:1333-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | dracut-saltbootnoarch | Advisory build | 0.1.1728559936.c16d4fb-150000.1.56.1 | SUSE-SU-2025:0525-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | firewalld-prometheus-configaarch64 | Advisory build | 0.1-150100.4.23.1 | SUSE-SU-2025:0546-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | firewalld-prometheus-configppc64le | Advisory build | 0.1-150100.4.23.1 | SUSE-SU-2025:0546-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | firewalld-prometheus-configs390x | Advisory build | 0.1-150100.4.23.1 | SUSE-SU-2025:0546-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | firewalld-prometheus-configx86_64 | Advisory build | 0.1-150100.4.23.1 | SUSE-SU-2025:0546-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | golang-github-prometheus-prometheusaarch64 | Advisory build | 2.53.3-150100.4.23.1 | SUSE-SU-2025:0546-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | golang-github-prometheus-prometheusppc64le | Advisory build | 2.53.3-150100.4.23.1 | SUSE-SU-2025:0546-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | golang-github-prometheus-prometheuss390x | Advisory build | 2.53.3-150100.4.23.1 | SUSE-SU-2025:0546-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | golang-github-prometheus-prometheusx86_64 | Advisory build | 2.53.3-150100.4.23.1 | SUSE-SU-2025:0546-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | golang-github-prometheus-promuaarch64 | Advisory build | 0.17.0-150000.3.24.1 | SUSE-SU-2025:0525-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | golang-github-prometheus-promuppc64le | Advisory build | 0.17.0-150000.3.24.1 | SUSE-SU-2025:0525-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | golang-github-prometheus-promus390x | Advisory build | 0.17.0-150000.3.24.1 | SUSE-SU-2025:0525-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | golang-github-prometheus-promux86_64 | Advisory build | 0.17.0-150000.3.24.1 | SUSE-SU-2025:0525-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | govulncheck-vulndbnoarch | Advisory build | 0.0.20241112T145010-150000.1.17.1 | SUSE-SU-2024:4042-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | spacecmdnoarch | Advisory build | 5.0.11-150000.3.130.1 | SUSE-SU-2025:0525-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | supportutils-plugin-saltnoarch | Advisory build | 1.2.3-150000.3.16.1 | SUSE-SU-2025:0525-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | supportutils-plugin-susemanager-clientnoarch | Advisory build | 5.0.4-150000.3.27.1 | SUSE-SU-2025:0525-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | corednsaarch64 | Advisory build | 1.14.0-bp160.1.1 | OPENSUSE-SU-2026:20099-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | corednsppc64le | Advisory build | 1.14.0-bp160.1.1 | OPENSUSE-SU-2026:20099-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | corednsx86_64 | Advisory build | 1.14.0-bp160.1.1 | OPENSUSE-SU-2026:20099-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | coredns-extrasnoarch | Advisory build | 1.14.0-bp160.1.1 | OPENSUSE-SU-2026:20099-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | grafanaaarch64 | Advisory build | 11.6.11-bp160.1.1 | OPENSUSE-SU-2026:20654-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | grafanappc64le | Advisory build | 11.6.11-bp160.1.1 | OPENSUSE-SU-2026:20654-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | grafanas390x | Advisory build | 11.6.11-bp160.1.1 | OPENSUSE-SU-2026:20654-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | grafanax86_64 | Advisory build | 11.6.11-bp160.1.1 | OPENSUSE-SU-2026:20654-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | rcloneaarch64 | Advisory build | 1.73.5-bp160.1.1 | OPENSUSE-SU-2026:20620-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | rcloneppc64le | Advisory build | 1.73.5-bp160.1.1 | OPENSUSE-SU-2026:20620-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | rclonex86_64 | Advisory build | 1.73.5-bp160.1.1 | OPENSUSE-SU-2026:20620-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | rclone-bash-completionnoarch | Advisory build | 1.73.5-bp160.1.1 | OPENSUSE-SU-2026:20620-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | rclone-zsh-completionnoarch | Advisory build | 1.73.5-bp160.1.1 | OPENSUSE-SU-2026:20620-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | trivyaarch64 | Advisory build | 0.66.0-bp160.1.1 | OPENSUSE-SU-2025:20117-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | trivyaarch64 | Advisory build | 0.68.2-160000.1.1 | OPENSUSE-SU-2026:20798-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | trivyppc64le | Advisory build | 0.66.0-bp160.1.1 | OPENSUSE-SU-2025:20117-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | trivyppc64le | Advisory build | 0.68.2-160000.1.1 | OPENSUSE-SU-2026:20798-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | trivys390x | Advisory build | 0.66.0-bp160.1.1 | OPENSUSE-SU-2025:20117-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | trivys390x | Advisory build | 0.68.2-160000.1.1 | OPENSUSE-SU-2026:20798-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | trivyx86_64 | Advisory build | 0.66.0-bp160.1.1 | OPENSUSE-SU-2025:20117-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | trivyx86_64 | Advisory build | 0.68.2-160000.1.1 | OPENSUSE-SU-2026:20798-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | corednsaarch64 | Advisory build | 1.11.3+git129.387f34d-1.1 | OPENSUSE-SU-2024:14481-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | corednsppc64le | Advisory build | 1.11.3+git129.387f34d-1.1 | OPENSUSE-SU-2024:14481-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | corednss390x | Advisory build | 1.11.3+git129.387f34d-1.1 | OPENSUSE-SU-2024:14481-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | corednsx86_64 | Advisory build | 1.11.3+git129.387f34d-1.1 | OPENSUSE-SU-2024:14481-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | coredns-extrasaarch64 | Advisory build | 1.11.3+git129.387f34d-1.1 | OPENSUSE-SU-2024:14481-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | coredns-extrasppc64le | Advisory build | 1.11.3+git129.387f34d-1.1 | OPENSUSE-SU-2024:14481-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | coredns-extrass390x | Advisory build | 1.11.3+git129.387f34d-1.1 | OPENSUSE-SU-2024:14481-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | coredns-extrasx86_64 | Advisory build | 1.11.3+git129.387f34d-1.1 | OPENSUSE-SU-2024:14481-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | cosignaarch64 | Advisory build | 2.5.0-1.1 | OPENSUSE-SU-2025:14988-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | cosignppc64le | Advisory build | 2.5.0-1.1 | OPENSUSE-SU-2025:14988-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | cosigns390x | Advisory build | 2.5.0-1.1 | OPENSUSE-SU-2025:14988-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | cosignx86_64 | Advisory build | 2.5.0-1.1 | OPENSUSE-SU-2025:14988-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | cosign-bash-completionaarch64 | Advisory build | 2.5.0-1.1 | OPENSUSE-SU-2025:14988-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | cosign-bash-completionppc64le | Advisory build | 2.5.0-1.1 | OPENSUSE-SU-2025:14988-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | cosign-bash-completions390x | Advisory build | 2.5.0-1.1 | OPENSUSE-SU-2025:14988-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | cosign-bash-completionx86_64 | Advisory build | 2.5.0-1.1 | OPENSUSE-SU-2025:14988-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | cosign-fish-completionaarch64 | Advisory build | 2.5.0-1.1 | OPENSUSE-SU-2025:14988-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | cosign-fish-completionppc64le | Advisory build | 2.5.0-1.1 | OPENSUSE-SU-2025:14988-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | cosign-fish-completions390x | Advisory build | 2.5.0-1.1 | OPENSUSE-SU-2025:14988-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | cosign-fish-completionx86_64 | Advisory build | 2.5.0-1.1 | OPENSUSE-SU-2025:14988-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | cosign-zsh-completionaarch64 | Advisory build | 2.5.0-1.1 | OPENSUSE-SU-2025:14988-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | cosign-zsh-completionppc64le | Advisory build | 2.5.0-1.1 | OPENSUSE-SU-2025:14988-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | cosign-zsh-completions390x | Advisory build | 2.5.0-1.1 | OPENSUSE-SU-2025:14988-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | cosign-zsh-completionx86_64 | Advisory build | 2.5.0-1.1 | OPENSUSE-SU-2025:14988-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | flannelaarch64 | Advisory build | 0.28.10-1.1 | OPENSUSE-SU-2026:12270-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | flannelppc64le | Advisory build | 0.28.10-1.1 | OPENSUSE-SU-2026:12270-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | flannels390x | Advisory build | 0.28.10-1.1 | OPENSUSE-SU-2026:12270-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | flannelx86_64 | Advisory build | 0.28.10-1.1 | OPENSUSE-SU-2026:12270-1 |
Package entries are limited to the first 100 builds and 100 linked advisories.
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 tokens. A fix has been back-ported with the error handling logic from the `v5` branch to the `v4` branch. In this logic, the `ParseWithClaims` function will immediately return in "dangerous" situations (e.g., an invalid signature), limiting the combined errors only to situations where the signature is valid, but further validation failed (e.g., if the signature is valid, but is expired AND has the wrong audience). This fix is part of the 4.5.1 release. We are aware that this changes the behaviour of an established function and is not 100 % backwards compatible, so updating to 4.5.1 might break your code. In case you cannot update to 4.5.0, please make sure that you are properly checking for all errors ("dangerous" ones first), so that you are not running in the case detailed above.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 3.1 / 10
- Severity
- low
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| golang-jwt | jwt | < 4.5.1 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-755 CWE-755: Improper Handling of Exceptional Conditions
References
2Provider assertions
2GitHub_M · cna
Bad documentation of error handling in ParseWithClaims can lead to potentially dangerous situations in golang-jwt
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 7cc8a4a77dff678190ba8c3d873e7191cb531a9d542120eb5789f20040594cd7
- Ingested
- 23 Sep 2026, 08:30:23 UTC
- Source record
- Official CVE record