{"answers":{"affected":"6 open source packages ship an affected version, including github.com/lestrrat-go/jwx and github.com/lestrrat-go/jwx/v2. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-28122 exists.","fix":"Upgrade github.com/lestrrat-go/jwx to 1.2.29 or later.","what":"CVE-2024-28122 is a medium-severity denial of service vulnerability in lestrrat-go jwx, published on 9 Mar 2024. An attacker needs administrator access to exploit it, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-28122 and fix it if it is affected.\n\nWhat it is: CVE-2024-28122 is a medium-severity denial of service vulnerability in lestrrat-go jwx, published on 9 Mar 2024. An attacker needs administrator access to exploit it, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-28122 exists.\n\nAffected packages and fixed versions:\n- github.com/lestrrat-go/jwx (Go): affected all versions; fixed in 1.2.29\n- github.com/lestrrat-go/jwx (Go): affected all versions; fixed in 1.2.29\n- github.com/lestrrat-go/jwx (Go): affected all versions; fixed in 1.2.29\n- github.com/lestrrat-go/jwx/v2 (Go): affected all versions; fixed in 2.0.21\n- github.com/lestrrat-go/jwx/v2 (Go): affected all versions; fixed in 2.0.21\n- github.com/lestrrat-go/jwx/v2 (Go): affected all versions; fixed in 2.0.21\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-28122/ (Markdown: https://insights.sbomify.com/CVE-2024-28122/index.md)","id":"CVE-2024-28122","markdown":"https://insights.sbomify.com/CVE-2024-28122/index.md","name":"CVE-2024-28122","record":{"aliases":["GHSA-hj3v-m684-v259","GO-2024-2632","MINI-2268-jc36-p9mc","MINI-44w4-g8rh-fch5","MINI-7cqx-pcq2-4wr4","MINI-ffmj-967w-w75h","MINI-fmxx-8r4m-478w","MINI-fr37-7963-x5mv","MINI-gwj6-46cm-p6r9","MINI-j4w4-xj42-89q6","MINI-mfxq-q9ph-xxxr","MINI-mgxh-6v3c-chj4","MINI-v9j9-w3cg-fj22","MINI-xmwq-2q99-9rv9"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Go JOSE library","requires_auth":"high_privilege","summary":"An attacker can cause a denial of service in the JWX Go library by sending a maliciously compressed JWE token, requiring an upgrade to patched versions.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"jwx","vendor":"lestrrat-go"}],"cvss":{"score":6.8,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"description":"JWX is Go module implementing various JWx (JWA/JWE/JWK/JWS/JWT, otherwise known as JOSE) technologies. This vulnerability allows an attacker with a trusted public key to cause a Denial-of-Service (DoS) condition by crafting a malicious JSON Web Encryption (JWE) token with an exceptionally high compression ratio. This issue has been patched in versions 1.2.29 and 2.0.21.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"JWX vulnerable to a denial of service attack using compressed JWE message","id":"CVE-2024-28122","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"denial_of_service","year":"2024"},"n_packages":6,"n_references":3,"next":{"headline":"Wasmi Out-of-bounds Write for host to Wasm calls with more than 128 Parameters","id":"CVE-2024-28123"},"packages":[{"ecosystem":"Go","fixed":["1.2.29"],"introduced":["0"],"last_affected":[],"package":"github.com/lestrrat-go/jwx","purl":null,"source":"GHSA-hj3v-m684-v259"},{"ecosystem":"Go","fixed":["1.2.29"],"introduced":["0"],"last_affected":[],"package":"github.com/lestrrat-go/jwx","purl":"pkg:golang/github.com/lestrrat-go/jwx","source":"GHSA-hj3v-m684-v259"},{"ecosystem":"Go","fixed":["1.2.29"],"introduced":["0"],"last_affected":[],"package":"github.com/lestrrat-go/jwx","purl":"pkg:golang/github.com/lestrrat-go/jwx","source":"GO-2024-2632"},{"ecosystem":"Go","fixed":["2.0.21"],"introduced":["0"],"last_affected":[],"package":"github.com/lestrrat-go/jwx/v2","purl":null,"source":"GHSA-hj3v-m684-v259"},{"ecosystem":"Go","fixed":["2.0.21"],"introduced":["0"],"last_affected":[],"package":"github.com/lestrrat-go/jwx/v2","purl":"pkg:golang/github.com/lestrrat-go/jwx/v2","source":"GHSA-hj3v-m684-v259"},{"ecosystem":"Go","fixed":["2.0.21"],"introduced":["0"],"last_affected":[],"package":"github.com/lestrrat-go/jwx/v2","purl":"pkg:golang/github.com/lestrrat-go/jwx/v2","source":"GO-2024-2632"}],"prev":{"headline":"Reflex arbitrary method call in stimulus_reflex","id":"CVE-2024-28121"},"products":["jwx"],"published":"2024-03-09","related":[{"cvss_score":5.3,"headline":"Malicious parameters can cause a denial of service in lestrrat-go/jwx","id":"CVE-2023-49290","kev_date_added":null,"published":"2023-12-04"},{"cvss_score":4.3,"headline":"Parsing JSON serialized payload without protected field can lead to segfault","id":"CVE-2024-21664","kev_date_added":null,"published":"2024-01-09"}],"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":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-04-16","vendors":["lestrrat-go"]},"summary":"An attacker can cause a denial of service in the JWX Go library by sending a maliciously compressed JWE token, requiring an upgrade to patched versions.","url":"https://insights.sbomify.com/CVE-2024-28122/"}