
A critical security flaw in RISC Zero, the zero-knowledge proof system that Kaspa’s covenant tools are built around, has reached Kaspa’s issue tracker. On Sunday, Nov. 22, at 2:15 p.m. ET, developer akdadoc opened rusty-kaspa issue #1173, asking core developers to move Kaspa’s ZK software kit to the patched RISC Zero 3.1.0. Core developer Michael Sutton answered 27 minutes later with one word: “wip,” short for work in progress.
There is no sign the bug has been exploited on Kaspa. But it shows how much of Kaspa’s new contract stack leans on one outside proof system, and raises a question: does the fix need a change to the network’s rules?
What the bug is
Kaspa is a proof-of-work network built as a BlockDAG. Instead of a single chain where competing blocks are thrown away, it keeps parallel blocks and orders them with a consensus rule called GHOSTDAG, at about 10 blocks per second. The Toccata hard fork, active since June 30, 2026, added covenants, spending rules attached to coins, and an opcode called OpZkPrecompile that lets a transaction check a zero-knowledge proof on the base layer.
A zero-knowledge proof lets someone show that a computation was done correctly without the verifier redoing it. RISC Zero produces such proofs and can wrap them in a compact format called Groth16.
RISC Zero’s critical advisory GHSA-g6qg-9j8p-7j87, published Nov. 10 at 7:14 p.m. ET, says its Groth16 verifier “accepts a Groth16 receipt whose claim digest has been substituted with the digest of a different, attacker-chosen” claim. In plain terms, someone holding one valid proof could pass off a false result.
The fix, in risc0-zkvm 3.1.0, brings regenerated circuits and a new Groth16 verifying key. Older proofs no longer verify, and the advisory lists no workaround.
Where Kaspa is exposed
Rusty-kaspa v2.1.0, the current node release from Sept. 22, pins risc0-zkvm and risc0-groth16 at 3.0.4 and risc0-circuit-recursion at 4.0.4, all inside the vulnerable ranges, according to its Cargo.toml. The code points to two separate exposures.
Kaspa’s Groth16 check in consensus is generic: the transaction script supplies the verifying key. The ZK SDK, a helper library for developers, embeds the old RISC Zero key as a fixed constant, so apps built with it inherit the old key. Kaspa also has a second path that checks RISC Zero “succinct” proofs directly in consensus code, compiled against the same 3.0.4 libraries.
From the code, a new Groth16 key looks like an SDK change rather than a fork, but KaspaNews could not confirm that. Akdadoc asks whether the new key requires “a consensus-level upgrade” and whether existing Testnet-10 nodes could verify the new proofs. Core developers have not answered beyond “wip.” Akdadoc wrote that their own team has “deliberately paused GPU proving and network deployment until the verifier compatibility requirements are clear.”
The vProgs repository, the core team’s work on programs that settle with proofs, lists risc0-zkvm 3.0 and risc0-groth16 3.0.3. Dev-tooling project @HardKASOfficial advertised on Nov. 16 “Experimental ZK spends on Kaspa L1. RISC Zero Groth16 proofs, Toccata covenants and real node verification through the CLI.” (post)
Kozmic Bridge already switched one side
The clearest live case is Kozmic Bridge, Kaspero Labs’ USDC bridge between Ethereum and Kaspa. Its RISKS.md says both chains check RISC Zero proofs made with “zkVM 3.0.4, the version whose control root Kaspa’s SDK embeds,” and warns that a soundness bug “would let a prover prove false statements on either side, bounded by the cap.”
On-chain records show what happened next. RISC Zero’s admin wallet triggered the emergency stop on its 3.0.0 Ethereum verifier on Nov. 19 at 5:21 p.m. ET, and the stop contract still reads “paused.” Kozmic exits through Nov. 18 used that verifier’s ID. From Nov. 19 at 10:42 p.m. ET, every exit KaspaNews checked carried the ID of the new 3.1.0 verifier, so the Ethereum side has moved.
The vault then emptied. A 183.61 USDC exit at 12:48 a.m. ET on Nov. 20 went to the wallet that had funded most deposits, and on Monday morning the vault held 0.12 USDC, down from 202.08 USDC on Nov. 18. Kaspero Labs has not said publicly whether the Kaspa side, which checks Ethereum proofs through OpZkPrecompile, has moved to the new key. Kaspa’s official account said in its weekly roundup on Nov. 22 that Kaspero Labs “plan a few more rounds of testing before opening it to the public.” (post)
Why it matters and what to watch
For holders, plain KAS transfers do not use these proofs and are not affected. The risk sits with apps that accept RISC Zero proofs, and today those hold little money. For builders, any covenant that hard-codes the old key keeps trusting it, so contracts may have to be redeployed rather than patched. The KaspaDollar stablecoin’s revised whitepaper, published Nov. 22, has miners signal any future change of proof system rather than one team deciding it.
Watch for a pull request that bumps the RISC Zero libraries and the SDK key, an answer on whether the succinct path needs a hard fork, a Testnet-10 test, and a statement from Kaspero Labs on Kozmic’s Kaspa side. Until a patched release ships, the SDK’s default key remains the vulnerable one.
Sources
- https://github.com/kaspanet/rusty-kaspa/issues/1173
- https://github.com/risc0/risc0/security/advisories/GHSA-g6qg-9j8p-7j87
- https://github.com/risc0/risc0-ethereum/security/advisories/GHSA-mm6c-35cm-g4x2
- https://github.com/kaspanet/rusty-kaspa/blob/master/Cargo.toml
- https://github.com/kaspanet/rusty-kaspa/blob/master/crypto/txscript/zk-sdk/src/zk_to_script/fragments/groth16.rs
- https://github.com/kaspanet/rusty-kaspa/blob/master/crypto/txscript/src/zk_precompiles/groth16/mod.rs
- https://github.com/kaspanet/vprogs/blob/main/Cargo.toml
- https://github.com/kasperolabs/kozmic-bridge/blob/main/RISKS.md
- https://etherscan.io/tx/0xe3085eef2649076f40175f54e91e10f9390b565350971b8d0de52664ea6df31c
- https://etherscan.io/address/0x1B9f6750d8b9776Ed9128DC48A7537019ecB2243
- https://x.com/kaspaunchained/status/2124513412705382544
- https://x.com/HardKASOfficial/status/2122429415363932651