{"answers":{"affected":"2 open source packages ship an affected version, including github.com/bnb-chain/tss-lib.","exploited":"There is no known exploitation of GHSA-h24c-6p6p-m3vx in the wild and no public exploit code.","fix":"No fix has been published for GHSA-h24c-6p6p-m3vx yet. Limit exposure of the affected software until one is available.","what":"GHSA-h24c-6p6p-m3vx is a vulnerability in github.com/bnb-chain/tss-lib, published on 1 Sep 2023. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for GHSA-h24c-6p6p-m3vx and fix it if it is affected.\n\nWhat it is: GHSA-h24c-6p6p-m3vx is a vulnerability in github.com/bnb-chain/tss-lib, published on 1 Sep 2023. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of GHSA-h24c-6p6p-m3vx in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/bnb-chain/tss-lib (Go): affected all versions up to 1.3.5; no fix listed\n- github.com/bnb-chain/tss-lib (Go): affected all versions up to 1.3.5; no fix listed\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-h24c-6p6p-m3vx/ (Markdown: https://insights.sbomify.com/GHSA-h24c-6p6p-m3vx/index.md)","id":"GHSA-h24c-6p6p-m3vx","markdown":"https://insights.sbomify.com/GHSA-h24c-6p6p-m3vx/index.md","name":"GHSA-h24c-6p6p-m3vx","record":{"aliases":[],"analysis":{"component_type":"library","fix_type":"patch","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Go cryptographic library","requires_auth":"low_privilege","summary":"An attacker can recover shared secret keys in tss-lib by exploiting unverified Paillier moduli during threshold ECDSA signing.","user_interaction":"not_required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"### Impact\n\nThe specification of the GG18 threshold ECDSA signature protocol contains a vulnerability allowing an attacker to recover the shared secret key. If a participant generates a Paillier modulus `N` containing small factors (less than `2^100`) they can interact with other participants in the signing protocol to steal their secret key shares in as little as sixteen signing attempts. The master key can then be reconstructed from these shares.\n\n### Patches\n\nThe implementation of GG18 in tss-lib did not prove that `N` is biprime or that it doesn't contain small factors. The fixed implementation adds the following proofs from the CGGMP21 threshold ECDSA protocol to the key generation:\n\n- Paillier-Blum Modulus (`N` is the product of two primes)\n- No Small Factor (both factors of `N` are greater than `2^256`)\n\nThese proofs apply to both the Paillier encryption modulus `N`, and the modulus `NTilde` used in MTA proofs.\n\nTo address the issue in the resharing protocol, an additional round has been added to the end so that participants can confirm that they received valid proofs.\n\n### References\n\n- [GG18](https://eprint.iacr.org/2019/114)\n- [CGGMP21](https://eprint.iacr.org/2021/060)","ecosystems":["Go"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":false,"headline":"tss-lib leaks secret keys in response to incorrectly constructed Paillier moduli","id":"GHSA-h24c-6p6p-m3vx","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"Go","product":null,"products":[],"type":"information_disclosure","year":"2023"},"n_packages":2,"n_references":null,"packages":[{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":["1.3.5"],"package":"github.com/bnb-chain/tss-lib","purl":null,"source":"GHSA-h24c-6p6p-m3vx"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":["1.3.5"],"package":"github.com/bnb-chain/tss-lib","purl":"pkg:golang/github.com/bnb-chain/tss-lib","source":"GHSA-h24c-6p6p-m3vx"}],"products":null,"published":"2023-09-01","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"An attacker can recover shared secret keys in tss-lib by exploiting unverified Paillier moduli during threshold ECDSA signing.","url":"https://insights.sbomify.com/GHSA-h24c-6p6p-m3vx/"}