{"answers":{"affected":"3 open source packages ship an affected version, including github.com/golang-jwt/jwt/v4.","exploited":"There is no known exploitation of CVE-2024-51744 in the wild and no public exploit code.","fix":"Upgrade github.com/golang-jwt/jwt/v4 to 4.5.1 or later.","what":"CVE-2024-51744 is a low-severity authentication bypass vulnerability in golang-jwt jwt, published on 4 Nov 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2024-51744 and fix it if it is affected.\n\nWhat it is: CVE-2024-51744 is a low-severity authentication bypass vulnerability in golang-jwt jwt, published on 4 Nov 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2024-51744 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/golang-jwt/jwt/v4 (Go): affected all versions; fixed in 4.5.1\n- github.com/golang-jwt/jwt/v4 (Go): affected all versions; fixed in 4.5.1\n- github.com/golang-jwt/jwt/v4 (Go): affected all versions; fixed in 4.5.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-51744/ (Markdown: https://insights.sbomify.com/CVE-2024-51744/index.md)","id":"CVE-2024-51744","markdown":"https://insights.sbomify.com/CVE-2024-51744/index.md","name":"CVE-2024-51744","record":{"aliases":["AZL-52171","AZL-52174","AZL-52180","AZL-52183","AZL-52186","AZL-52189","AZL-52192","AZL-52195","AZL-52198","AZL-52201","AZL-52204","AZL-52207","AZL-52210","AZL-52213","AZL-52216","AZL-52219","AZL-52221","AZL-52224","AZL-52227","AZL-52230","AZL-52233","AZL-52236","AZL-52239","AZL-52242","AZL-52248","AZL-52251","AZL-52254","AZL-52257","AZL-52260","AZL-52265","AZL-52266","AZL-52272","AZL-52275","AZL-52278","CLEANSTART-2026-MU61112","CLEANSTART-2026-PD51287","DEBIAN-CVE-2024-51744","GHSA-29wx-vh33-7x7r","GO-2024-3250","MINI-28qc-3m8m-v3jm","MINI-2r3g-gmqh-pmpq","MINI-4vph-2w8r-27fp","MINI-58cf-qrx4-9v85","MINI-63qw-vxrr-7x5h","MINI-94m5-fqgw-p39w","MINI-9hmx-gm2v-96hp","MINI-9v7c-3j3x-37rh","MINI-fcrx-237f-h3vh","MINI-fr6m-65p5-ch28","MINI-jpj5-p3q7-j46v","MINI-m9j4-8m5p-4rhr","MINI-mrqp-v8vq-2896","MINI-px78-qjpx-4x5m","MINI-qq3r-jqw2-4qfv","MINI-r8r9-cgr2-pwm4","MINI-rvwm-cjjj-3wxg","MINI-v54r-2xhg-87j9","MINI-v7h7-38j8-8vvx","MINI-whc4-r64w-2hw4","SUSE-SU-2025:0546-1","UBUNTU-CVE-2024-51744","openSUSE-SU-2024:14481-1","openSUSE-SU-2024:14484-1","openSUSE-SU-2024:14495-1","openSUSE-SU-2024:14517-1","openSUSE-SU-2024:14522-1","openSUSE-SU-2025:0131-1","openSUSE-SU-2025:14768-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Go JWT library","requires_auth":"none","summary":"Developers using golang-jwt may accept invalid tokens if they only check for expiration errors, bypassing signature validation.","user_interaction":"required","vuln_class":"auth_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":3.1,"severity":"low","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-755","name":"Improper Handling of Exceptional Conditions"}],"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.","ecosystems":["Go","SUSE:Linux Enterprise Module for Package Hub 15 SP6","SUSE:Manager Proxy Module 4.3","SUSE:Package Hub 15 SP6","openSUSE:Leap 15.6","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Bad documentation of error handling in ParseWithClaims can lead to potentially dangerous situations in golang-jwt","id":"CVE-2024-51744","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"auth_bypass","year":"2024"},"n_packages":14,"n_references":2,"next":{"headline":"Wasmtime doesn't fully sandbox all the Windows device filenames","id":"CVE-2024-51745"},"packages":[{"ecosystem":"Go","fixed":["4.5.1"],"introduced":["0"],"last_affected":[],"package":"github.com/golang-jwt/jwt/v4","purl":null,"source":"GHSA-29wx-vh33-7x7r"},{"ecosystem":"Go","fixed":["4.5.1"],"introduced":["0"],"last_affected":[],"package":"github.com/golang-jwt/jwt/v4","purl":"pkg:golang/github.com/golang-jwt/jwt/v4","source":"GHSA-29wx-vh33-7x7r"},{"ecosystem":"Go","fixed":["4.5.1"],"introduced":["0"],"last_affected":[],"package":"github.com/golang-jwt/jwt/v4","purl":"pkg:golang/github.com/golang-jwt/jwt/v4","source":"GO-2024-3250"},{"ecosystem":"SUSE:Linux Enterprise Module for Package Hub 15 SP6","fixed":["2.53.3-150100.4.23.1"],"introduced":["0"],"last_affected":[],"package":"golang-github-prometheus-prometheus","purl":"pkg:rpm/suse/golang-github-prometheus-prometheus\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Package%20Hub%2015%20SP6","source":"SUSE-SU-2025:0546-1"},{"ecosystem":"SUSE:Manager Proxy Module 4.3","fixed":["2.53.3-150100.4.23.1"],"introduced":["0"],"last_affected":[],"package":"golang-github-prometheus-prometheus","purl":"pkg:rpm/suse/golang-github-prometheus-prometheus\u0026distro=SUSE%20Manager%20Proxy%20Module%204.3","source":"SUSE-SU-2025:0546-1"},{"ecosystem":"SUSE:Package Hub 15 SP6","fixed":["1.12.1-bp156.4.6.5"],"introduced":["0"],"last_affected":[],"package":"coredns","purl":"pkg:rpm/suse/coredns\u0026distro=SUSE%20Package%20Hub%2015%20SP6","source":"openSUSE-SU-2025:0131-1"},{"ecosystem":"openSUSE:Leap 15.6","fixed":["1.12.1-bp156.4.6.5"],"introduced":["0"],"last_affected":[],"package":"coredns","purl":"pkg:rpm/opensuse/coredns\u0026distro=openSUSE%20Leap%2015.6","source":"openSUSE-SU-2025:0131-1"},{"ecosystem":"openSUSE:Leap 15.6","fixed":["2.53.3-150100.4.23.1"],"introduced":["0"],"last_affected":[],"package":"golang-github-prometheus-prometheus","purl":"pkg:rpm/opensuse/golang-github-prometheus-prometheus\u0026distro=openSUSE%20Leap%2015.6","source":"SUSE-SU-2025:0546-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["1.11.3+git129.387f34d-1.1"],"introduced":["0"],"last_affected":[],"package":"coredns","purl":"pkg:rpm/opensuse/coredns\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:14481-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["0.0.20241112T145010-1.1"],"introduced":["0"],"last_affected":[],"package":"govulncheck-vulndb","purl":"pkg:rpm/opensuse/govulncheck-vulndb\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:14484-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["11.5.1-1.1"],"introduced":["0"],"last_affected":[],"package":"grafana","purl":"pkg:rpm/opensuse/grafana\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2025:14768-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["1.68.1-2.1"],"introduced":["0"],"last_affected":[],"package":"rclone","purl":"pkg:rpm/opensuse/rclone\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:14495-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["3.2.1-1.1"],"introduced":["0"],"last_affected":[],"package":"traefik","purl":"pkg:rpm/opensuse/traefik\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:14522-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["2.11.14-1.1"],"introduced":["0"],"last_affected":[],"package":"traefik2","purl":"pkg:rpm/opensuse/traefik2\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:14517-1"}],"prev":{"headline":"Arbitrary File Write leading up to remote code execution (instructor accounts)","id":"CVE-2024-51743"},"products":["jwt"],"published":"2024-11-04","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-11-05","vendors":["golang-jwt"]},"summary":"Developers using golang-jwt may accept invalid tokens if they only check for expiration errors, bypassing signature validation.","url":"https://insights.sbomify.com/CVE-2024-51744/"}