{"answers":{"affected":"8 open source packages ship an affected version, including github.com/biscuit-auth/biscuit-go, biscuit-haskell and com.clever-cloud:biscuit-java. It affects 4 products.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-31053 exists.","fix":"Upgrade github.com/biscuit-auth/biscuit-go to 2.0.0 or later.","what":"CVE-2022-31053 is a critical vulnerability in biscuit-auth biscuit, published on 13 Jun 2022. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2022-31053 and fix it if it is affected.\n\nWhat it is: CVE-2022-31053 is a critical vulnerability in biscuit-auth biscuit, published on 13 Jun 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-31053 exists.\n\nAffected packages and fixed versions:\n- github.com/biscuit-auth/biscuit-go (Go): affected all versions; no fix listed\n- github.com/biscuit-auth/biscuit-go (Go): affected all versions; fixed in 2.0.0\n- github.com/biscuit-auth/biscuit-go (Go): affected all versions; fixed in 2.0.0\n- biscuit-haskell (Hackage): affected from 0.1.0.0; fixed in 0.2.0.0\n- com.clever-cloud:biscuit-java (Maven): affected all versions; fixed in 2.0.0\n- com.clever-cloud:biscuit-java (Maven): affected all versions; fixed in 2.0.0\n- biscuit-auth (crates.io): affected from 1.0.0; fixed in 2.0.0\n- biscuit-auth (crates.io): affected from 1.0.0; fixed in 2.0.0\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-2022-31053/ (Markdown: https://insights.sbomify.com/CVE-2022-31053/index.md)","id":"CVE-2022-31053","markdown":"https://insights.sbomify.com/CVE-2022-31053/index.md","name":"CVE-2022-31053","record":{"aliases":["GHSA-75rw-34q6-72cr","GO-2022-0564","HSEC-2023-0002"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["privilege_escalation","security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Biscuit authentication library","requires_auth":"none","summary":"Attackers can forge valid signatures to create tokens with arbitrary access levels, requiring an upgrade to specification version 2.","user_interaction":"not_required","vuln_class":"weak_cryptography"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"biscuit-auth","vendor":"biscuitsec"},{"product":"biscuit-go","vendor":"biscuitsec"},{"product":"biscuit-haskell","vendor":"biscuitsec"},{"product":"biscuit-java","vendor":"clever-cloud"}],"cvss":{"score":9.8,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-347","name":"Improper Verification of Cryptographic Signature"}],"description":"Biscuit is an authentication and authorization token for microservices architectures. The Biscuit specification version 1 contains a vulnerable algorithm that allows malicious actors to forge valid Γ-signatures. Such an attack would allow an attacker to create a token with any access level. The version 2 of the specification mandates a different algorithm than gamma signatures and as such is not affected by this vulnerability. The Biscuit implementations in Rust, Haskell, Go, Java and Javascript all have published versions following the v2 specification. There are no known workarounds for this issue.","ecosystems":["Go","Hackage","Maven","crates.io"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Signature forgery in Biscuit","id":"CVE-2022-31053","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"weak_cryptography","year":"2022"},"n_packages":8,"n_references":2,"next":{"headline":"Uses of deprecated API can be used to cause DoS in user-facing endpoints in Argo Events","id":"CVE-2022-31054"},"packages":[{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/biscuit-auth/biscuit-go","purl":"pkg:golang/github.com/biscuit-auth/biscuit-go","source":"GO-2022-0564"},{"ecosystem":"Go","fixed":["2.0.0"],"introduced":["0"],"last_affected":[],"package":"github.com/biscuit-auth/biscuit-go","purl":null,"source":"GHSA-75rw-34q6-72cr"},{"ecosystem":"Go","fixed":["2.0.0"],"introduced":["0"],"last_affected":[],"package":"github.com/biscuit-auth/biscuit-go","purl":"pkg:golang/github.com/biscuit-auth/biscuit-go","source":"GHSA-75rw-34q6-72cr"},{"ecosystem":"Hackage","fixed":["0.2.0.0"],"introduced":["0.1.0.0"],"last_affected":[],"package":"biscuit-haskell","purl":"pkg:hackage/biscuit-haskell","source":"HSEC-2023-0002"},{"ecosystem":"Maven","fixed":["2.0.0"],"introduced":["0"],"last_affected":[],"package":"com.clever-cloud:biscuit-java","purl":null,"source":"GHSA-75rw-34q6-72cr"},{"ecosystem":"Maven","fixed":["2.0.0"],"introduced":["0"],"last_affected":[],"package":"com.clever-cloud:biscuit-java","purl":"pkg:maven/com.clever-cloud/biscuit-java","source":"GHSA-75rw-34q6-72cr"},{"ecosystem":"crates.io","fixed":["2.0.0"],"introduced":["1.0.0"],"last_affected":[],"package":"biscuit-auth","purl":null,"source":"GHSA-75rw-34q6-72cr"},{"ecosystem":"crates.io","fixed":["2.0.0"],"introduced":["1.0.0"],"last_affected":[],"package":"biscuit-auth","purl":"pkg:cargo/biscuit-auth","source":"GHSA-75rw-34q6-72cr"}],"prev":{"headline":"URL previews can crash Synapse media repositories or Synapse monoliths","id":"CVE-2022-31052"},"products":["biscuit"],"published":"2022-06-13","related":[{"cvss_score":3,"headline":"biscuit-rust vulnerable to public key confusion in third party block","id":"CVE-2024-41949","kev_date_added":null,"published":"2024-08-01"}],"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":"open","licence":"CC0 1.0","name":"Haskell Security Response Team","prefix":"HSEC"},{"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":"yes","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-04-22","vendors":["biscuit-auth"]},"summary":"Attackers can forge valid signatures to create tokens with arbitrary access levels, requiring an upgrade to specification version 2.","url":"https://insights.sbomify.com/CVE-2022-31053/"}