{"answers":{"affected":"6 open source packages ship an affected version, including github.com/go-jose/go-jose/v3 and github.com/square/go-jose.","exploited":"There is no known exploitation of GHSA-2c7c-3mj9-8fqh in the wild and no public exploit code.","fix":"Upgrade github.com/go-jose/go-jose/v3 to 3.0.1 or later.","what":"GHSA-2c7c-3mj9-8fqh is a denial of service vulnerability in github.com/go-jose/go-jose/v3, published on 21 Nov 2023. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for GHSA-2c7c-3mj9-8fqh and fix it if it is affected.\n\nWhat it is: GHSA-2c7c-3mj9-8fqh is a denial of service vulnerability in github.com/go-jose/go-jose/v3, published on 21 Nov 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of GHSA-2c7c-3mj9-8fqh in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/go-jose/go-jose/v3 (Go): affected all versions; fixed in 3.0.1\n- github.com/go-jose/go-jose/v3 (Go): affected all versions; fixed in 3.0.1\n- github.com/go-jose/go-jose/v3 (Go): affected all versions; fixed in 3.0.1\n- github.com/square/go-jose (Go): affected all versions; no fix listed\n- github.com/square/go-jose (Go): affected all versions; fixed in 2.6.2\n- github.com/square/go-jose (Go): affected all versions; fixed in 2.6.2\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/GHSA-2c7c-3mj9-8fqh/ (Markdown: https://insights.sbomify.com/GHSA-2c7c-3mj9-8fqh/index.md)","id":"GHSA-2c7c-3mj9-8fqh","markdown":"https://insights.sbomify.com/GHSA-2c7c-3mj9-8fqh/index.md","name":"GHSA-2c7c-3mj9-8fqh","record":{"aliases":["GO-2023-2334"],"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":"none","summary":"An attacker can cause denial of service by sending malicious JWE objects with large p2c values to applications using the go-jose library.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"The go-jose package is subject to a \"billion hashes attack\" causing denial-of-service when decrypting JWE inputs. This occurs when an attacker can provide a PBES2 encrypted JWE blob with a very large p2c value that, when decrypted, produces a denial-of-service.","ecosystems":["Go"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"Decryption of malicious PBES2 JWE objects can consume unbounded system resources","id":"GHSA-2c7c-3mj9-8fqh","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"Go","product":null,"products":[],"type":"denial_of_service","year":"2023"},"n_packages":6,"n_references":null,"packages":[{"ecosystem":"Go","fixed":["3.0.1"],"introduced":["0"],"last_affected":[],"package":"github.com/go-jose/go-jose/v3","purl":null,"source":"GHSA-2c7c-3mj9-8fqh"},{"ecosystem":"Go","fixed":["3.0.1"],"introduced":["0"],"last_affected":[],"package":"github.com/go-jose/go-jose/v3","purl":"pkg:golang/github.com/go-jose/go-jose/v3","source":"GHSA-2c7c-3mj9-8fqh"},{"ecosystem":"Go","fixed":["3.0.1"],"introduced":["0"],"last_affected":[],"package":"github.com/go-jose/go-jose/v3","purl":"pkg:golang/github.com/go-jose/go-jose/v3","source":"GO-2023-2334"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/square/go-jose","purl":"pkg:golang/github.com/square/go-jose","source":"GO-2023-2334"},{"ecosystem":"Go","fixed":["2.6.2"],"introduced":["0"],"last_affected":[],"package":"github.com/square/go-jose","purl":null,"source":"GHSA-2c7c-3mj9-8fqh"},{"ecosystem":"Go","fixed":["2.6.2"],"introduced":["0"],"last_affected":[],"package":"github.com/square/go-jose","purl":"pkg:golang/github.com/square/go-jose","source":"GHSA-2c7c-3mj9-8fqh"}],"products":null,"published":"2023-11-21","related":[],"sources":[{"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"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"An attacker can cause denial of service by sending malicious JWE objects with large p2c values to applications using the go-jose library.","url":"https://insights.sbomify.com/GHSA-2c7c-3mj9-8fqh/"}