Description
The guard checker in Rocq Prover does not recheck the recursive tree representation of an inductive type parameter after that parameter has been changed by transport. A fixpoint may apply a rewrite along an equality between types to its recursive argument, which the guard checker accepts because the inductive type is preserved, while the recursive tree recorded for the parameter is altered. A second fixpoint that calls the first inherits the altered recursive tree without verification, so a call that is not structurally decreasing is accepted as terminating. The resulting non-terminating definition proves that a natural number equals its own successor and therefore False, from which any proposition follows. The demonstration uses two axioms that follow from univalence and are consistent with the calculus of inductive constructions, so the contradiction comes from the guard check rather than from the assumptions. A fix is proposed but not merged.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| rocq-prover | rocq | ≤ 9.2.0 | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 1 repository
-
endrazine/rocq-cve-poc-22024 ★ 0 · Aug 23, 2026
CVE-2026-72704 — Rocq Guard Checker Trusts Corrupted Recursive Tree After Transport
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
References
- https://github.com/rocq-prover/rocq product
- https://github.com/rocq-prover/rocq/issues/22024 issue-tracking
- https://github.com/rocq-prover/rocq/pull/22027 issue-tracking patch
- https://github.com/endrazine/rocq-cve-poc-22024 exploit
- VulnCheck Advisory: Rocq Prover through 9.2.0 Guard Checker Trusts Corrupted Recursive Tree After Transport third-party-advisory