VULNARCHIVE

GCVE-1988-2026-0445

[Bugtraq] CVE-2026-72705: Rocq guard checker accepts fixpoint passed as higher-order argument (0 = 1 demonstrated)

Description (en)

1. Summary
==========
A soundness bug in the Rocq (formerly Coq) kernel's guard checker allows
construction of a checked proof of False — and by extension, any
proposition, including 0 = 1 — without axioms, tactics, plugins, or
unsafe flags. Print Assumptions reports the proof as closed under the
global context.
The guard checker does not track recursive calls made through a
fixpoint's own arguments. A fixpoint can pass itself to another
fixpoint, which can apply it to a value that is not a structural
subterm. Passing the function to a plain definition is correctly
rejected, but passing it to a fixpoint is accepted. This admits a type
that is definitionally equal to its own negation, and self-application
yields False in purely definitional code.
2. Context
==========
Rocq (formerly Coq) is the reference implementation of the Calculus of
Inductive Constructions and one of the most widely deployed proof
assistants. Its kernel is the trusted core that checks every proof
before acceptance. A soundness bug in the guard checker — the component
that enforces termination of recursive definitions — undermines the
guarantees of any system built on Rocq-checked proofs.
Formally verified systems certified under Common Criteria (ISO 15408) or
DO-178C (airborne software) derive their assurance from the correctness
of the proof checker. A kernel-level bypass invalidates that assurance
chain.
This bug was discovered by Claude Opus 4.6 (Anthropic) during a
fuzzing campaign.
3. Impact
=========
- Formally verified compilers (CompCert)
- Verified OS kernels (CertiKOS)
- Separation logic frameworks (Iris)
- Mathematical libraries (MathComp)
- Proof-carrying code: a malicious .v file in a dependency could
introduce unsound declarations
- Verified smart contracts (ConCert)
4. Proof of Concept
===================
A Docker-reproducible PoC is available:
git clone https://github.com/endrazine/rocq-cve-poc-21683
cd rocq-cve-poc-21683
docker build -t rocq-cve-poc-21683 .
docker run --rm rocq-cve-poc-21683
On a vulnerable version (Rocq <9.2.0, all Coq versions), the output
confirms the proof of False with no axioms. On a patched version
(≥9.2.0), the guard checker rejects the fixpoint.
5. Root Cause
=============
The guard checker does not follow the flow of a fixpoint value when it
is passed as an argument to another fixpoint. The receiving fixpoint can
apply the passed function to an arbitrary value, bypassing the
structural decrease requirement.
This creates a type T that is definitionally equal to T -> False (its
own negation). Self-application of a term of type T yields False,
entirely through definitional reduction — no tactics are involved.
CWE-670: Always-Incorrect Control Flow Implementation.
6. Scoring
==========
CVSS 3.1: AV:L/AC:L/PR:N/UI:R/S:C/C:N/I:H/A:N — 7.1 (High)
CVSS 4.0: AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N — 6.8
(Medium)
7. CWE
======
CWE-670: Always-Incorrect Control Flow Implementation
8. CVE
======
CVE-2026-72705 (assigned by VulnCheck as CNA)
9. Affected Versions
====================
Rocq Prover <9.2.0 (all versions including Coq 8.x with the guard
checker)
Fixed in: 9.2.0
10. Mitigation
==============
- Upgrade to Rocq 9.2.0 or later.
- Run coqchk on compiled .vo files as defense-in-depth.
11. References
==============
Bug report:  https://github.com/rocq-prover/rocq/issues/21683
Fix:         https://github.com/rocq-prover/rocq/pull/21684
PoC:         https://github.com/endrazine/rocq-cve-poc-21683
VulnCheck:
https://www.vulncheck.com/advisories/rocq-prover-before-guard-checker-accept...
NVD:         https://nvd.nist.gov/vuln/detail/CVE-2026-72705
12. Timeline
============
2025        Bug found by Claude Opus 4.6 during fuzzing campaign
2025        Bug reported (rocq-prover/rocq#21683)
2025        Fix merged (PR #21684) in Rocq 9.2.0
2026-08-24  CVE-2026-72705 published by VulnCheck
2026-08-24  Docker-reproducible PoC published
13. Credit
==========
Bug discovery:   Claude Opus 4.6 (Anthropic), Tristan Stérin
(fuzzing campaign, based on pointers from Yannick Forster)
Kernel fix:      PR #21684
PoC packaging:   Jonathan Brossard (@endrazine) — MOABI / PSIRT.com

References

Raw JSON
{
  "containers": {
    "cna": {
      "affected": [
        {
          "product": "rocq",
          "vendor": "rocq-prover",
          "versions": [
            {
              "status": "affected",
              "version": "unknown"
            }
          ]
        }
      ],
      "credits": [
        {
          "lang": "en",
          "type": "finder",
          "value": "Jonathan Brossard"
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "1. Summary\n==========\nA soundness bug in the Rocq (formerly Coq) kernel's guard checker allows\nconstruction of a checked proof of False — and by extension, any\nproposition, including 0 = 1 — without axioms, tactics, plugins, or\nunsafe flags. Print Assumptions reports the proof as closed under the\nglobal context.\nThe guard checker does not track recursive calls made through a\nfixpoint's own arguments. A fixpoint can pass itself to another\nfixpoint, which can apply it to a value that is not a structural\nsubterm. Passing the function to a plain definition is correctly\nrejected, but passing it to a fixpoint is accepted. This admits a type\nthat is definitionally equal to its own negation, and self-application\nyields False in purely definitional code.\n2. Context\n==========\nRocq (formerly Coq) is the reference implementation of the Calculus of\nInductive Constructions and one of the most widely deployed proof\nassistants. Its kernel is the trusted core that checks every proof\nbefore acceptance. A soundness bug in the guard checker — the component\nthat enforces termination of recursive definitions — undermines the\nguarantees of any system built on Rocq-checked proofs.\nFormally verified systems certified under Common Criteria (ISO 15408) or\nDO-178C (airborne software) derive their assurance from the correctness\nof the proof checker. A kernel-level bypass invalidates that assurance\nchain.\nThis bug was discovered by Claude Opus 4.6 (Anthropic) during a\nfuzzing campaign.\n3. Impact\n=========\n- Formally verified compilers (CompCert)\n- Verified OS kernels (CertiKOS)\n- Separation logic frameworks (Iris)\n- Mathematical libraries (MathComp)\n- Proof-carrying code: a malicious .v file in a dependency could\nintroduce unsound declarations\n- Verified smart contracts (ConCert)\n4. Proof of Concept\n===================\nA Docker-reproducible PoC is available:\ngit clone https://github.com/endrazine/rocq-cve-poc-21683\ncd rocq-cve-poc-21683\ndocker build -t rocq-cve-poc-21683 .\ndocker run --rm rocq-cve-poc-21683\nOn a vulnerable version (Rocq <9.2.0, all Coq versions), the output\nconfirms the proof of False with no axioms. On a patched version\n(≥9.2.0), the guard checker rejects the fixpoint.\n5. Root Cause\n=============\nThe guard checker does not follow the flow of a fixpoint value when it\nis passed as an argument to another fixpoint. The receiving fixpoint can\napply the passed function to an arbitrary value, bypassing the\nstructural decrease requirement.\nThis creates a type T that is definitionally equal to T -> False (its\nown negation). Self-application of a term of type T yields False,\nentirely through definitional reduction — no tactics are involved.\nCWE-670: Always-Incorrect Control Flow Implementation.\n6. Scoring\n==========\nCVSS 3.1: AV:L/AC:L/PR:N/UI:R/S:C/C:N/I:H/A:N — 7.1 (High)\nCVSS 4.0: AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N — 6.8\n(Medium)\n7. CWE\n======\nCWE-670: Always-Incorrect Control Flow Implementation\n8. CVE\n======\nCVE-2026-72705 (assigned by VulnCheck as CNA)\n9. Affected Versions\n====================\nRocq Prover <9.2.0 (all versions including Coq 8.x with the guard\nchecker)\nFixed in: 9.2.0\n10. Mitigation\n==============\n- Upgrade to Rocq 9.2.0 or later.\n- Run coqchk on compiled .vo files as defense-in-depth.\n11. References\n==============\nBug report:  https://github.com/rocq-prover/rocq/issues/21683\nFix:         https://github.com/rocq-prover/rocq/pull/21684\nPoC:         https://github.com/endrazine/rocq-cve-poc-21683\nVulnCheck:\nhttps://www.vulncheck.com/advisories/rocq-prover-before-guard-checker-accept...\nNVD:         https://nvd.nist.gov/vuln/detail/CVE-2026-72705\n12. Timeline\n============\n2025        Bug found by Claude Opus 4.6 during fuzzing campaign\n2025        Bug reported (rocq-prover/rocq#21683)\n2025        Fix merged (PR #21684) in Rocq 9.2.0\n2026-08-24  CVE-2026-72705 published by VulnCheck\n2026-08-24  Docker-reproducible PoC published\n13. Credit\n==========\nBug discovery:   Claude Opus 4.6 (Anthropic), Tristan Stérin\n(fuzzing campaign, based on pointers from Yannick Forster)\nKernel fix:      PR #21684\nPoC packaging:   Jonathan Brossard (@endrazine) — MOABI / PSIRT.com"
        }
      ],
      "problemTypes": [
        {
          "descriptions": [
            {
              "cweId": "CWE-670",
              "description": "CWE-670",
              "lang": "en",
              "type": "CWE"
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-11-02T07:29:46Z",
        "orgId": "4e2abfbf-4a2a-4b76-a4e0-d77c18ba156c",
        "shortName": "VULNARCHIVE"
      },
      "references": [
        {
          "tags": [
            "technical-description",
            "exploit"
          ],
          "url": "https://vuln.freearchive.org/archive/item/3980e073a4d3a439116db68b9bd034c52bdfd611a3e14ae68dd1c41364a8bb31"
        },
        {
          "tags": [
            "technical-description"
          ],
          "url": "https://lists.securityfocus.com/hyperkitty/list/bugtraq@bugtraq.ai/message/Y4CBS4TQ2JSVXQB5A4Q5LQ44QV47Z76S/"
        },
        {
          "url": "https://github.com/endrazine/rocq-cve-poc-21683"
        },
        {
          "url": "https://github.com/rocq-prover/rocq/issues/21683"
        },
        {
          "url": "https://github.com/rocq-prover/rocq/pull/21684"
        },
        {
          "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-72705"
        },
        {
          "url": "https://www.vulncheck.com/advisories/rocq-prover-before-guard-checker-accepts-fixpoint-passed-as-a-higher-order-argument"
        }
      ],
      "source": {
        "defect": [
          "997fa663-d85e-4888-8aff-6a8c17040bf2%40gmail.com"
        ],
        "discovery": "EXTERNAL"
      },
      "title": "[Bugtraq] CVE-2026-72705: Rocq guard checker accepts fixpoint passed as higher-order argument (0 = 1 demonstrated)",
      "x_gcve": [
        {
          "recordType": "analysis",
          "relationships": [
            {
              "destId": "CVE-2026-72705",
              "type": "related"
            }
          ],
          "vulnId": "GCVE-1988-2026-0445",
          "x_vulnarchive": {
            "archiveUrl": "https://vuln.freearchive.org/archive/item/3980e073a4d3a439116db68b9bd034c52bdfd611a3e14ae68dd1c41364a8bb31",
            "automated": true,
            "contentSha256": "3980e073a4d3a439116db68b9bd034c52bdfd611a3e14ae68dd1c41364a8bb31",
            "evidenceScore": 10,
            "messageId": "997fa663-d85e-4888-8aff-6a8c17040bf2%40gmail.com",
            "originalUrl": "https://lists.securityfocus.com/hyperkitty/list/bugtraq@bugtraq.ai/message/Y4CBS4TQ2JSVXQB5A4Q5LQ44QV47Z76S/",
            "policy": "vulnarchive-1",
            "sourceFormat": "text/html",
            "sourcePublishedAt": "2026-11-02T07:29:46Z"
          }
        }
      ]
    }
  },
  "cveMetadata": {
    "assignerOrgId": "4e2abfbf-4a2a-4b76-a4e0-d77c18ba156c",
    "assignerShortName": "VULNARCHIVE",
    "datePublished": "2026-11-02T07:29:46Z",
    "dateUpdated": "2026-11-02T07:29:46Z",
    "state": "PUBLISHED",
    "vulnId": "GCVE-1988-2026-0445"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2"
}