Search

Find a vulnerability

Search criteria

    6 vulnerabilities found for lean4 by leanprover

    GCVE-1988-2026-0442

    Vulnerability from gna-1988 – Published: 2026-11-02 07:29 – Updated: 2026-11-02 07:29
    VLAI
    Title
    [Bugtraq] CVE-2026-72711: Lean 4 kernel soundness bug — inference cache poisoning via opaque declarations (0 = 1 demonstrated)
    Summary
    1. Summary ========== A soundness bug in the Lean 4 kernel allows construction of a checked proof of False — and by extension, any proposition, including 0 = 1 — without axioms, sorry, unsafeCast, debug.skipKernelTC, or modified .olean files. The proof passes the kernel at maximum checking (--trust=0). The kernel's add_opaque path skips the closure check (check_no_metavar_no_fvar) that the definition and theorem paths perform. A stale entry in the type checker's inference cache can be reused after its local variable is gone, allowing a metaprogram to submit an opaque declaration whose value references an unbound free variable. The kernel then admits an opaque constant of type False. 2. Context ========== Lean 4 is increasingly used as a foundation for formally verified software, proof-carrying code, and mathematical libraries. Its kernel is the trusted core: every theorem must pass kernel type-checking before it is accepted. A soundness bug in the kernel undermines the guarantees of any system built on top of it. 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. Independent checkers such as Nanoda and lean4lean that replay proofs against the same kernel rules are equally affected by the missing closure check. 3. Impact ========= - Formally verified software: any proposition can be "proved" and kernel-checked, including safety properties of compilers, OS kernels, and cryptographic libraries. - Proof-carrying code: a malicious Lake dependency could inject unsound opaque declarations that pass kernel checking. - Mathematical proof verification: results checked by the Lean kernel cannot be trusted on affected versions. 4. Proof of Concept =================== A Docker-reproducible PoC is available: git clone https://github.com/endrazine/lean-cve-poc-14484 cd lean-cve-poc-14484 docker build -t lean-cve-poc-14484 . docker run --rm lean-cve-poc-14484 On a vulnerable version, the output reports the proof of 0 = 1 as axiom-free. On a patched version, the kernel rejects the opaque declaration. 5. Root Cause ============= The function environment::add_opaque does not call check_no_metavar_no_fvar on the declaration's body, unlike the definition and theorem paths. This means: (a) A free variable (fvar) that existed in a now-discarded local context is not detected. CWE-488 (Exposure of Data Element to Wrong Session). (b) The kernel accepts a body containing references to variables that are no longer in scope. CWE-20 (Improper Input Validation). A metaprogram exploits this by caching a type-checking result for False against a temporary local, restoring the context, and submitting an opaque declaration referencing the stale cache entry. 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-488: Exposure of Data Element to Wrong Session CWE-20: Improper Input Validation 8. CVE ====== CVE-2026-72711 (assigned by VulnCheck as CNA) 9. Affected Versions ==================== Lean 4 < v4.32.2 (all versions from initial release) Fixed in: v4.32.2, v4.33.0, nightly 2026-07-23 and later 10. Mitigation ============== - Upgrade to Lean 4 v4.32.2 or later. - No workaround exists for affected versions — the flaw is in the kernel itself. 11. References ============== Bug report: https://github.com/leanprover/lean4/issues/14484 Fix: https://github.com/leanprover/lean4/pull/14498 PoC: https://github.com/endrazine/lean-cve-poc-14484 VulnCheck: https://www.vulncheck.com/advisories/lean-4-before-kernel-accepts-opaque-dec... NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-72711 12. Timeline ============ 2026 Bug reported (leanprover/lean4#14484) 2026 Kernel fix merged (PR #14498) 2026-08-24 CVE-2026-72711 published by VulnCheck 2026-08-24 Docker-reproducible PoC published 13. Credit ========== Bug discovery: Patrick Hulin Kernel fix: Joachim Breitner (PR #14498) PoC packaging: Jonathan Brossard (@endrazine) — MOABI / PSIRT.com
    Severity
    No CVSS data available.
    Assigner
    VULNARCHIVE GNA GNA-1988
    GNA scorecard E 38/100 over 581 records in the last 180 days details
    Impacted products
    Vendor Product Version
    leanprover lean4 Affected: unknown
    Create a notification for this product.
    Relationships
    analysis GCVE-1988-2026-0442 (this record)

    {
      "containers": {
        "cna": {
          "affected": [
            {
              "product": "lean4",
              "vendor": "leanprover",
              "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 Lean 4 kernel allows construction of a checked\nproof of False \u2014 and by extension, any proposition, including 0 = 1 \u2014\nwithout axioms, sorry, unsafeCast, debug.skipKernelTC, or modified\n.olean files. The proof passes the kernel at maximum checking (--trust=0).\nThe kernel\u0027s add_opaque path skips the closure check\n(check_no_metavar_no_fvar) that the definition and theorem paths\nperform. A stale entry in the type checker\u0027s inference cache can be\nreused after its local variable is gone, allowing a metaprogram to\nsubmit an opaque declaration whose value references an unbound free\nvariable. The kernel then admits an opaque constant of type False.\n2. Context\n==========\nLean 4 is increasingly used as a foundation for formally verified\nsoftware, proof-carrying code, and mathematical libraries. Its kernel is\nthe trusted core: every theorem must pass kernel type-checking before it\nis accepted. A soundness bug in the kernel undermines the guarantees of\nany system built on top of it.\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.\nIndependent checkers such as Nanoda and lean4lean that replay proofs\nagainst the same kernel rules are equally affected by the missing\nclosure check.\n3. Impact\n=========\n- Formally verified software: any proposition can be \"proved\" and\nkernel-checked, including safety properties of compilers, OS kernels,\nand cryptographic libraries.\n- Proof-carrying code: a malicious Lake dependency could inject unsound\nopaque declarations that pass kernel checking.\n- Mathematical proof verification: results checked by the Lean kernel\ncannot be trusted on affected versions.\n4. Proof of Concept\n===================\nA Docker-reproducible PoC is available:\ngit clone https://github.com/endrazine/lean-cve-poc-14484\ncd lean-cve-poc-14484\ndocker build -t lean-cve-poc-14484 .\ndocker run --rm lean-cve-poc-14484\nOn a vulnerable version, the output reports the proof of 0 = 1 as\naxiom-free. On a patched version, the kernel rejects the opaque\ndeclaration.\n5. Root Cause\n=============\nThe function environment::add_opaque does not call\ncheck_no_metavar_no_fvar on the declaration\u0027s body, unlike the\ndefinition and theorem paths. This means:\n(a) A free variable (fvar) that existed in a now-discarded local context\nis not detected. CWE-488 (Exposure of Data Element to Wrong Session).\n(b) The kernel accepts a body containing references to variables that\nare no longer in scope. CWE-20 (Improper Input Validation).\nA metaprogram exploits this by caching a type-checking result for False\nagainst a temporary local, restoring the context, and submitting an\nopaque declaration referencing the stale cache entry.\n6. Scoring\n==========\nCVSS 3.1: AV:L/AC:L/PR:N/UI:R/S:C/C:N/I:H/A:N \u2014 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 \u2014 6.8\n(Medium)\n7. CWE\n======\nCWE-488: Exposure of Data Element to Wrong Session\nCWE-20: Improper Input Validation\n8. CVE\n======\nCVE-2026-72711 (assigned by VulnCheck as CNA)\n9. Affected Versions\n====================\nLean 4 \u003c v4.32.2 (all versions from initial release)\nFixed in: v4.32.2, v4.33.0, nightly 2026-07-23 and later\n10. Mitigation\n==============\n- Upgrade to Lean 4 v4.32.2 or later.\n- No workaround exists for affected versions \u2014 the flaw is in the\nkernel itself.\n11. References\n==============\nBug report:  https://github.com/leanprover/lean4/issues/14484\nFix:         https://github.com/leanprover/lean4/pull/14498\nPoC:         https://github.com/endrazine/lean-cve-poc-14484\nVulnCheck:\nhttps://www.vulncheck.com/advisories/lean-4-before-kernel-accepts-opaque-dec...\nNVD:         https://nvd.nist.gov/vuln/detail/CVE-2026-72711\n12. Timeline\n============\n2026        Bug reported (leanprover/lean4#14484)\n2026        Kernel fix merged (PR #14498)\n2026-08-24  CVE-2026-72711 published by VulnCheck\n2026-08-24  Docker-reproducible PoC published\n13. Credit\n==========\nBug discovery:   Patrick Hulin\nKernel fix:      Joachim Breitner (PR #14498)\nPoC packaging:   Jonathan Brossard (@endrazine) \u2014 MOABI / PSIRT.com"
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-20",
                  "description": "CWE-20",
                  "lang": "en",
                  "type": "CWE"
                },
                {
                  "cweId": "CWE-488",
                  "description": "CWE-488",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-11-02T07:29:44Z",
            "orgId": "4e2abfbf-4a2a-4b76-a4e0-d77c18ba156c",
            "shortName": "VULNARCHIVE"
          },
          "references": [
            {
              "tags": [
                "technical-description",
                "exploit"
              ],
              "url": "https://vuln.freearchive.org/archive/item/7b0ccc01e25fddbcaeadf955c7c62d194d45d1670b03c1a293a09d87a10cbc86"
            },
            {
              "tags": [
                "technical-description"
              ],
              "url": "https://lists.securityfocus.com/hyperkitty/list/bugtraq@bugtraq.ai/message/HASOMMUIF672Y7I6NSEVO64G6IOOELJW/"
            },
            {
              "url": "https://github.com/endrazine/lean-cve-poc-14484"
            },
            {
              "url": "https://github.com/leanprover/lean4/issues/14484"
            },
            {
              "url": "https://github.com/leanprover/lean4/pull/14498"
            },
            {
              "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-72711"
            },
            {
              "url": "https://www.vulncheck.com/advisories/lean-4-before-kernel-accepts-opaque-declaration-with-an-unbound-free-variable"
            }
          ],
          "source": {
            "defect": [
              "c7290a16-635f-49be-96f8-3b83b3ca52c7%40gmail.com"
            ],
            "discovery": "EXTERNAL"
          },
          "title": "[Bugtraq] CVE-2026-72711: Lean 4 kernel soundness bug \u2014 inference cache poisoning via opaque declarations (0 = 1 demonstrated)",
          "x_gcve": [
            {
              "recordType": "analysis",
              "relationships": [
                {
                  "destId": "CVE-2026-72711",
                  "type": "related"
                }
              ],
              "vulnId": "GCVE-1988-2026-0442",
              "x_vulnarchive": {
                "archiveUrl": "https://vuln.freearchive.org/archive/item/7b0ccc01e25fddbcaeadf955c7c62d194d45d1670b03c1a293a09d87a10cbc86",
                "automated": true,
                "contentSha256": "7b0ccc01e25fddbcaeadf955c7c62d194d45d1670b03c1a293a09d87a10cbc86",
                "evidenceScore": 10,
                "messageId": "c7290a16-635f-49be-96f8-3b83b3ca52c7%40gmail.com",
                "originalUrl": "https://lists.securityfocus.com/hyperkitty/list/bugtraq@bugtraq.ai/message/HASOMMUIF672Y7I6NSEVO64G6IOOELJW/",
                "policy": "vulnarchive-1",
                "sourceFormat": "text/html",
                "sourcePublishedAt": "2026-11-02T07:29:44Z"
              }
            },
            {
              "recordType": "advisory",
              "vulnId": "gcve-1988-2026-0442"
            }
          ]
        }
      },
      "cveMetadata": {
        "assignerOrgId": "4e2abfbf-4a2a-4b76-a4e0-d77c18ba156c",
        "assignerShortName": "VULNARCHIVE",
        "datePublished": "2026-11-02T07:29:44Z",
        "dateUpdated": "2026-11-02T07:29:44Z",
        "state": "PUBLISHED",
        "vulnId": "GCVE-1988-2026-0442"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    GCVE-1988-2026-0441

    Vulnerability from gna-1988 – Published: 2026-11-02 07:29 – Updated: 2026-11-02 07:29
    VLAI
    Title
    [Bugtraq] CVE-2026-72844: Lean 4 kernel soundness bug — forging proofs via nested inductive projections (0 = 1 demonstrated)
    Summary
    1. Summary ========== A soundness bug in the Lean 4 kernel allows construction of a checked proof of False — and by extension, any proposition, including 0 = 1 — without axioms, sorry, unsafeCast, or modified .olean files. The kernel does not verify that the structure named in a projection expression matches the type of the value being projected. Additionally, environment::add_inductive in src/kernel/inductive.cpp did not type-check nested inductive applications, leaving their parameters unchecked. A metaprogram can register an ill-typed nested inductive and produce a proof of False at maximum kernel checking (--trust=0). The proof of concept pads expressions to force hash collisions, defeating kernel caching. This is the means of reaching the flaw, not its cause. 2. Context ========== Lean 4 is increasingly used as a foundation for formally verified software, proof-carrying code, and mathematical libraries. Its kernel is the trusted core: every theorem must pass kernel type-checking before it is accepted. A soundness bug in the kernel undermines the guarantees of any system built on top of it. 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. Independent checkers such as Nanoda and lean4lean replay proofs against the same kernel rules and are therefore equally affected. 3. Impact ========= - Formally verified software: any proposition can be "proved" and kernel-checked, including safety properties of compilers, OS kernels, and cryptographic libraries. - Proof-carrying code: a malicious Lake dependency could inject unsound declarations that pass kernel checking. - Mathematical proof verification: results checked by the Lean kernel cannot be trusted on affected versions. 4. Proof of Concept =================== A Docker-reproducible PoC is available: git clone https://github.com/endrazine/lean-cve-poc cd lean-cve-poc docker build -t lean-cve-poc . docker run --rm lean-cve-poc On a vulnerable version, the output reports: zero_eq_one : 0 = 1 -- no axioms On a patched version, the kernel rejects the ill-typed inductive. 5. Root Cause ============= Two omissions in the kernel: (a) Projection validation: the kernel does not check that the structure named in a projection matches the type of the value being projected. CWE-843 (Type Confusion). (b) Nested inductive checking: environment::add_inductive does not type-check nested inductive applications, so their parameters go unchecked. CWE-20 (Improper Input Validation). Combined, these allow a metaprogram to register an ill-typed nested inductive that exploits the projection mismatch, producing a closed proof of False. 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-843: Access of Resource Using Incompatible Type (Type Confusion) CWE-20: Improper Input Validation 8. CVE ====== CVE-2026-72844 (assigned by VulnCheck as CNA) 9. Affected Versions ==================== Lean 4 ≤ v4.31.0 / nightly ≤ 2026-07-27 Fixed in: nightly 2026-07-29 and later; v4.32.2 10. Mitigation ============== - Upgrade to Lean 4 v4.32.2 or later. - No workaround exists for affected versions — the flaw is in the kernel itself. 11. References ============== Bug report: https://github.com/leanprover/lean4/issues/14576 Fix: https://github.com/leanprover/lean4/pull/14577 PoC: https://github.com/endrazine/lean-cve-poc VulnCheck: https://www.vulncheck.com/advisories/lean-4-before-kernel-type-checking-bypa... NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-72844 12. Timeline ============ 2026-07-27 Bug reported (leanprover/lean4#14576) 2026-07-29 Kernel fix merged (PR #14577) 2026-08-02 Advisory posted to oss-security 2026-08-20 CVE-2026-72844 published by VulnCheck 2026-08-24 Docker-reproducible PoC published 13. Credit ========== Bug discovery and minimal PoC: @kiranandcode Original CollatzLean exploit: Ramana Kumar (@xrchz) Kernel fix: Leonardo de Moura PoC packaging: Jonathan Brossard (@endrazine) — MOABI / PSIRT.com
    Severity
    No CVSS data available.
    Assigner
    VULNARCHIVE GNA GNA-1988
    GNA scorecard E 38/100 over 581 records in the last 180 days details
    Impacted products
    Vendor Product Version
    leanprover lean4 Affected: unknown
    Create a notification for this product.
    Relationships
    analysis GCVE-1988-2026-0441 (this record)

    {
      "containers": {
        "cna": {
          "affected": [
            {
              "product": "lean4",
              "vendor": "leanprover",
              "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 Lean 4 kernel allows construction of a checked\nproof of False \u2014 and by extension, any proposition, including 0 = 1 \u2014\nwithout axioms, sorry, unsafeCast, or modified .olean files.\nThe kernel does not verify that the structure named in a projection\nexpression matches the type of the value being projected. Additionally,\nenvironment::add_inductive in src/kernel/inductive.cpp did not type-check\nnested inductive applications, leaving their parameters unchecked. A\nmetaprogram can register an ill-typed nested inductive and produce a\nproof of False at maximum kernel checking (--trust=0).\nThe proof of concept pads expressions to force hash collisions, defeating\nkernel caching. This is the means of reaching the flaw, not its cause.\n2. Context\n==========\nLean 4 is increasingly used as a foundation for formally verified\nsoftware, proof-carrying code, and mathematical libraries. Its kernel is\nthe trusted core: every theorem must pass kernel type-checking before it\nis accepted. A soundness bug in the kernel undermines the guarantees of\nany system built on top of it.\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.\nIndependent checkers such as Nanoda and lean4lean replay proofs against\nthe same kernel rules and are therefore equally affected.\n3. Impact\n=========\n- Formally verified software: any proposition can be \"proved\" and\nkernel-checked, including safety properties of compilers, OS kernels,\nand cryptographic libraries.\n- Proof-carrying code: a malicious Lake dependency could inject unsound\ndeclarations that pass kernel checking.\n- Mathematical proof verification: results checked by the Lean kernel\ncannot be trusted on affected versions.\n4. Proof of Concept\n===================\nA Docker-reproducible PoC is available:\ngit clone https://github.com/endrazine/lean-cve-poc\ncd lean-cve-poc\ndocker build -t lean-cve-poc .\ndocker run --rm lean-cve-poc\nOn a vulnerable version, the output reports:\nzero_eq_one : 0 = 1\n-- no axioms\nOn a patched version, the kernel rejects the ill-typed inductive.\n5. Root Cause\n=============\nTwo omissions in the kernel:\n(a) Projection validation: the kernel does not check that the structure\nnamed in a projection matches the type of the value being projected.\nCWE-843 (Type Confusion).\n(b) Nested inductive checking: environment::add_inductive does not\ntype-check nested inductive applications, so their parameters go\nunchecked. CWE-20 (Improper Input Validation).\nCombined, these allow a metaprogram to register an ill-typed nested\ninductive that exploits the projection mismatch, producing a closed\nproof of False.\n6. Scoring\n==========\nCVSS 3.1: AV:L/AC:L/PR:N/UI:R/S:C/C:N/I:H/A:N \u2014 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 \u2014 6.8\n(Medium)\n7. CWE\n======\nCWE-843: Access of Resource Using Incompatible Type (Type Confusion)\nCWE-20: Improper Input Validation\n8. CVE\n======\nCVE-2026-72844 (assigned by VulnCheck as CNA)\n9. Affected Versions\n====================\nLean 4 \u2264 v4.31.0 / nightly \u2264 2026-07-27\nFixed in: nightly 2026-07-29 and later; v4.32.2\n10. Mitigation\n==============\n- Upgrade to Lean 4 v4.32.2 or later.\n- No workaround exists for affected versions \u2014 the flaw is in the\nkernel itself.\n11. References\n==============\nBug report:  https://github.com/leanprover/lean4/issues/14576\nFix:         https://github.com/leanprover/lean4/pull/14577\nPoC:         https://github.com/endrazine/lean-cve-poc\nVulnCheck:\nhttps://www.vulncheck.com/advisories/lean-4-before-kernel-type-checking-bypa...\nNVD:         https://nvd.nist.gov/vuln/detail/CVE-2026-72844\n12. Timeline\n============\n2026-07-27  Bug reported (leanprover/lean4#14576)\n2026-07-29  Kernel fix merged (PR #14577)\n2026-08-02  Advisory posted to oss-security\n2026-08-20  CVE-2026-72844 published by VulnCheck\n2026-08-24  Docker-reproducible PoC published\n13. Credit\n==========\nBug discovery and minimal PoC: @kiranandcode\nOriginal CollatzLean exploit:  Ramana Kumar (@xrchz)\nKernel fix:                    Leonardo de Moura\nPoC packaging:                 Jonathan Brossard (@endrazine) \u2014 MOABI /\nPSIRT.com"
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-20",
                  "description": "CWE-20",
                  "lang": "en",
                  "type": "CWE"
                },
                {
                  "cweId": "CWE-843",
                  "description": "CWE-843",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-11-02T07:29:43Z",
            "orgId": "4e2abfbf-4a2a-4b76-a4e0-d77c18ba156c",
            "shortName": "VULNARCHIVE"
          },
          "references": [
            {
              "tags": [
                "technical-description",
                "exploit"
              ],
              "url": "https://vuln.freearchive.org/archive/item/1d180a8302029b1f56d12aff2ae2936067901f43fe12e67588131da7114d6012"
            },
            {
              "tags": [
                "technical-description"
              ],
              "url": "https://lists.securityfocus.com/hyperkitty/list/bugtraq@bugtraq.ai/message/5APDW5T3SOY76W62O73OGAX7GDRAIXF2/"
            },
            {
              "url": "https://github.com/endrazine/lean-cve-poc"
            },
            {
              "url": "https://github.com/leanprover/lean4/issues/14576"
            },
            {
              "url": "https://github.com/leanprover/lean4/pull/14577"
            },
            {
              "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-72844"
            },
            {
              "url": "https://www.vulncheck.com/advisories/lean-4-before-kernel-type-checking-bypass"
            }
          ],
          "source": {
            "defect": [
              "9374a790-b0c0-4fd2-b81a-f8cd507dc8a1%40gmail.com"
            ],
            "discovery": "EXTERNAL"
          },
          "title": "[Bugtraq] CVE-2026-72844: Lean 4 kernel soundness bug \u2014 forging proofs via nested inductive projections (0 = 1 demonstrated)",
          "x_gcve": [
            {
              "recordType": "analysis",
              "relationships": [
                {
                  "destId": "CVE-2026-72844",
                  "type": "related"
                }
              ],
              "vulnId": "GCVE-1988-2026-0441",
              "x_vulnarchive": {
                "archiveUrl": "https://vuln.freearchive.org/archive/item/1d180a8302029b1f56d12aff2ae2936067901f43fe12e67588131da7114d6012",
                "automated": true,
                "contentSha256": "1d180a8302029b1f56d12aff2ae2936067901f43fe12e67588131da7114d6012",
                "evidenceScore": 10,
                "messageId": "9374a790-b0c0-4fd2-b81a-f8cd507dc8a1%40gmail.com",
                "originalUrl": "https://lists.securityfocus.com/hyperkitty/list/bugtraq@bugtraq.ai/message/5APDW5T3SOY76W62O73OGAX7GDRAIXF2/",
                "policy": "vulnarchive-1",
                "sourceFormat": "text/html",
                "sourcePublishedAt": "2026-11-02T07:29:43Z"
              }
            },
            {
              "recordType": "advisory",
              "vulnId": "gcve-1988-2026-0441"
            }
          ]
        }
      },
      "cveMetadata": {
        "assignerOrgId": "4e2abfbf-4a2a-4b76-a4e0-d77c18ba156c",
        "assignerShortName": "VULNARCHIVE",
        "datePublished": "2026-11-02T07:29:43Z",
        "dateUpdated": "2026-11-02T07:29:43Z",
        "state": "PUBLISHED",
        "vulnId": "GCVE-1988-2026-0441"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-72711 (GCVE-0-2026-72711)

    Vulnerability from nvd – Published: 2026-08-24 20:08 – Updated: 2026-10-26 01:23
    VLAI
    Title
    Lean 4 before 4.32.2 Kernel Accepts Opaque Declaration With an Unbound Free Variable
    Summary
    The Lean 4 kernel does not check that the body of an opaque declaration is closed. environment::add_opaque omits the check_no_metavar_no_fvar call that the definition and theorem paths perform, so a value containing a free variable that is absent from the local context is not rejected outright. A metaprogram can first cause the kernel to create a temporary local of type False and record its type in the type checker's inference cache, then restore the local context while that cache entry persists on the same type checker instance, and finally submit an opaque declaration whose value is the now-unbound variable. The cache lookup answers before the branch that would test membership of the local context, so the kernel infers the cached type and admits an opaque constant of type False, from which any proposition follows. The declaration is accepted through the ordinary checked path at maximum kernel checking, without sorry, unsafeCast, debug.skipKernelTC, addDeclWithoutChecking, foreign code or a modified .olean file, and the result carries no axioms. Fixed in 4.32.2 by adding the missing closure check.
    SSVC
    Exploitation: poc Automatable: no Technical Impact: partial
    CISA Coordinator · CISA-ADP (v2.0.3)
    Decision recorded 2026-08-24 20:14 UTC
    CWE
    • CWE-20 - Improper Input Validation
    Assigner
    VulnCheck CNA under the mitre root
    CNA scorecard B 85/100 over 9434 records in the last 180 days details
    Impacted products
    Vendor Product Version
    leanprover lean4 Affected: 0 , < 4.32.2 (semver)
    Create a notification for this product.
    Date Public
    2026-07-22 00:00
    Show details on NVD website

    {
      "containers": {
        "adp": [
          {
            "metrics": [
              {
                "other": {
                  "content": {
                    "id": "CVE-2026-72711",
                    "options": [
                      {
                        "Exploitation": "poc"
                      },
                      {
                        "Automatable": "no"
                      },
                      {
                        "Technical Impact": "partial"
                      }
                    ],
                    "role": "CISA Coordinator",
                    "timestamp": "2026-08-24T20:14:31.474084Z",
                    "version": "2.0.3"
                  },
                  "type": "ssvc"
                }
              }
            ],
            "providerMetadata": {
              "dateUpdated": "2026-08-24T20:14:41.969Z",
              "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
              "shortName": "CISA-ADP"
            },
            "title": "CISA ADP Vulnrichment"
          },
          {
            "providerMetadata": {
              "dateUpdated": "2026-10-26T01:23:57.370Z",
              "orgId": "af854a3a-2127-422b-91ae-364da2661108",
              "shortName": "CVE"
            },
            "references": [
              {
                "url": "http://www.openwall.com/lists/oss-security/2026/10/26/3"
              }
            ],
            "title": "CVE Program Container"
          }
        ],
        "cna": {
          "affected": [
            {
              "defaultStatus": "unaffected",
              "packageURL": "pkg:github/leanprover/lean4",
              "product": "lean4",
              "repo": "https://github.com/leanprover/lean4",
              "vendor": "leanprover",
              "versions": [
                {
                  "lessThan": "4.32.2",
                  "status": "affected",
                  "version": "0",
                  "versionType": "semver"
                }
              ]
            }
          ],
          "credits": [
            {
              "lang": "en",
              "type": "finder",
              "value": "Patrick Hulin"
            },
            {
              "lang": "en",
              "type": "finder",
              "value": "Jonathan Brossard (MOABI)"
            }
          ],
          "datePublic": "2026-07-22T00:00:00.000Z",
          "descriptions": [
            {
              "lang": "en",
              "value": "The Lean 4 kernel does not check that the body of an opaque declaration is closed. environment::add_opaque omits the check_no_metavar_no_fvar call that the definition and theorem paths perform, so a value containing a free variable that is absent from the local context is not rejected outright. A metaprogram can first cause the kernel to create a temporary local of type False and record its type in the type checker\u0027s inference cache, then restore the local context while that cache entry persists on the same type checker instance, and finally submit an opaque declaration whose value is the now-unbound variable. The cache lookup answers before the branch that would test membership of the local context, so the kernel infers the cached type and admits an opaque constant of type False, from which any proposition follows. The declaration is accepted through the ordinary checked path at maximum kernel checking, without sorry, unsafeCast, debug.skipKernelTC, addDeclWithoutChecking, foreign code or a modified .olean file, and the result carries no axioms. Fixed in 4.32.2 by adding the missing closure check."
            }
          ],
          "metrics": [
            {
              "cvssV4_0": {
                "attackComplexity": "LOW",
                "attackRequirements": "NONE",
                "attackVector": "LOCAL",
                "baseScore": 6.8,
                "baseSeverity": "MEDIUM",
                "privilegesRequired": "NONE",
                "subAvailabilityImpact": "NONE",
                "subConfidentialityImpact": "NONE",
                "subIntegrityImpact": "NONE",
                "userInteraction": "PASSIVE",
                "vectorString": "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",
                "version": "4.0",
                "vulnAvailabilityImpact": "NONE",
                "vulnConfidentialityImpact": "NONE",
                "vulnIntegrityImpact": "HIGH"
              },
              "format": "CVSS"
            },
            {
              "cvssV3_1": {
                "attackComplexity": "LOW",
                "attackVector": "LOCAL",
                "availabilityImpact": "NONE",
                "baseScore": 6.3,
                "baseSeverity": "MEDIUM",
                "confidentialityImpact": "NONE",
                "integrityImpact": "HIGH",
                "privilegesRequired": "NONE",
                "scope": "CHANGED",
                "userInteraction": "REQUIRED",
                "vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:N/I:H/A:N",
                "version": "3.1"
              },
              "format": "CVSS"
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-20",
                  "description": "Improper Input Validation",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-09-24T14:18:53.683Z",
            "orgId": "83251b91-4cc7-4094-a5c7-464a1b83ea10",
            "shortName": "VulnCheck"
          },
          "references": [
            {
              "tags": [
                "product"
              ],
              "url": "https://github.com/leanprover/lean4"
            },
            {
              "tags": [
                "issue-tracking"
              ],
              "url": "https://github.com/leanprover/lean4/issues/14484"
            },
            {
              "tags": [
                "issue-tracking",
                "patch"
              ],
              "url": "https://github.com/leanprover/lean4/pull/14498"
            },
            {
              "tags": [
                "exploit"
              ],
              "url": "https://github.com/endrazine/lean-cve-poc-14484"
            },
            {
              "name": "VulnCheck Advisory: Lean 4 before 4.32.2 Kernel Accepts Opaque Declaration With an Unbound Free Variable",
              "tags": [
                "third-party-advisory"
              ],
              "url": "https://www.vulncheck.com/advisories/lean-4-before-kernel-accepts-opaque-declaration-with-an-unbound-free-variable"
            }
          ],
          "title": "Lean 4 before 4.32.2 Kernel Accepts Opaque Declaration With an Unbound Free Variable",
          "x_generator": {
            "engine": "vulncheck-endgame"
          }
        }
      },
      "cveMetadata": {
        "assignerOrgId": "83251b91-4cc7-4094-a5c7-464a1b83ea10",
        "assignerShortName": "VulnCheck",
        "cveId": "CVE-2026-72711",
        "datePublished": "2026-08-24T20:08:33.219Z",
        "dateReserved": "2026-08-10T13:02:52.001Z",
        "dateUpdated": "2026-10-26T01:23:57.370Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-72844 (GCVE-0-2026-72844)

    Vulnerability from nvd – Published: 2026-08-20 17:19 – Updated: 2026-11-08 14:08
    VLAI
    Title
    Lean 4 Kernel Type Checking Bypass via Mismatched Structure Projections
    Summary
    The Lean 4 kernel does not verify that the structure named in a projection expression matches the type of the value being projected, and environment::add_inductive in src/kernel/inductive.cpp did not type check the nested inductive applications that are replaced by auxiliary types, so their parametric arguments escaped checking. A metaprogram running in the Lean process can register an ill-typed nested inductive whose constructor applies a .proj C 0 projection to a value of the unrelated type W, and the kernel admits the declaration through the ordinary checked addDecl path at maximum kernel checking, without sorry, unsafeCast, debug.skipKernelTC, addDeclWithoutChecking, FFI, or a modified .olean file. The result is a type confusion yielding a proof of False that carries no axioms, from which any proposition can be derived. The published proof of concept additionally pads two expressions until their hashes and approximate depths collide, which defeats kernel caching; that is the technique used to reach the flaw, not its cause. Exploitation requires running a metaprogram in-process, for example by building a project or importing a malicious Lake dependency.
    SSVC
    Exploitation: poc Automatable: no Technical Impact: partial
    CISA Coordinator · CISA-ADP (v2.0.3)
    Decision recorded 2026-08-21 21:13 UTC
    CWE
    • CWE-843 - Access of Resource Using Incompatible Type ('Type Confusion')
    Assigner
    VulnCheck CNA under the mitre root
    CNA scorecard B 85/100 over 9434 records in the last 180 days details
    Impacted products
    Vendor Product Version
    leanprover lean4 Affected: 0 , < 4.32.2 (semver)
    Unaffected: 4.32.2 (semver)
    Affected: 4.33.0-rc1 (semver)
    Create a notification for this product.
    Date Public
    2026-07-28 00:00
    Show details on NVD website

    {
      "containers": {
        "adp": [
          {
            "metrics": [
              {
                "other": {
                  "content": {
                    "id": "CVE-2026-72844",
                    "options": [
                      {
                        "Exploitation": "poc"
                      },
                      {
                        "Automatable": "no"
                      },
                      {
                        "Technical Impact": "partial"
                      }
                    ],
                    "role": "CISA Coordinator",
                    "timestamp": "2026-08-21T21:13:48.944575Z",
                    "version": "2.0.3"
                  },
                  "type": "ssvc"
                }
              }
            ],
            "providerMetadata": {
              "dateUpdated": "2026-08-21T21:46:54.936Z",
              "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
              "shortName": "CISA-ADP"
            },
            "title": "CISA ADP Vulnrichment"
          },
          {
            "providerMetadata": {
              "dateUpdated": "2026-10-26T01:23:59.293Z",
              "orgId": "af854a3a-2127-422b-91ae-364da2661108",
              "shortName": "CVE"
            },
            "references": [
              {
                "url": "http://www.openwall.com/lists/oss-security/2026/10/26/2"
              }
            ],
            "title": "CVE Program Container"
          }
        ],
        "cna": {
          "affected": [
            {
              "defaultStatus": "unaffected",
              "product": "lean4",
              "repo": "https://github.com/leanprover/lean4",
              "vendor": "leanprover",
              "versions": [
                {
                  "lessThan": "4.32.2",
                  "status": "affected",
                  "version": "0",
                  "versionType": "semver"
                },
                {
                  "status": "unaffected",
                  "version": "4.32.2",
                  "versionType": "semver"
                },
                {
                  "status": "affected",
                  "version": "4.33.0-rc1",
                  "versionType": "semver"
                }
              ]
            }
          ],
          "credits": [
            {
              "lang": "en",
              "type": "finder",
              "value": "kiranandcode"
            },
            {
              "lang": "en",
              "type": "other",
              "value": "Ramana Kumar (@xrchz)"
            },
            {
              "lang": "en",
              "type": "remediation developer",
              "value": "Leonardo de Moura"
            },
            {
              "lang": "en",
              "type": "other",
              "value": "Jonathan Brossard (MOABI)"
            }
          ],
          "datePublic": "2026-07-28T00:00:00.000Z",
          "descriptions": [
            {
              "lang": "en",
              "value": "The Lean 4 kernel does not verify that the structure named in a projection expression matches the type of the value being projected, and environment::add_inductive in src/kernel/inductive.cpp did not type check the nested inductive applications that are replaced by auxiliary types, so their parametric arguments escaped checking. A metaprogram running in the Lean process can register an ill-typed nested inductive whose constructor applies a .proj C 0 projection to a value of the unrelated type W, and the kernel admits the declaration through the ordinary checked addDecl path at maximum kernel checking, without sorry, unsafeCast, debug.skipKernelTC, addDeclWithoutChecking, FFI, or a modified .olean file. The result is a type confusion yielding a proof of False that carries no axioms, from which any proposition can be derived. The published proof of concept additionally pads two expressions until their hashes and approximate depths collide, which defeats kernel caching; that is the technique used to reach the flaw, not its cause. Exploitation requires running a metaprogram in-process, for example by building a project or importing a malicious Lake dependency."
            }
          ],
          "metrics": [
            {
              "cvssV3_1": {
                "attackComplexity": "LOW",
                "attackVector": "LOCAL",
                "availabilityImpact": "NONE",
                "baseScore": 6.3,
                "baseSeverity": "MEDIUM",
                "confidentialityImpact": "NONE",
                "integrityImpact": "HIGH",
                "privilegesRequired": "NONE",
                "scope": "CHANGED",
                "userInteraction": "REQUIRED",
                "vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:N/I:H/A:N",
                "version": "3.1"
              },
              "format": "CVSS"
            },
            {
              "cvssV4_0": {
                "attackComplexity": "LOW",
                "attackRequirements": "NONE",
                "attackVector": "LOCAL",
                "baseScore": 6.8,
                "baseSeverity": "MEDIUM",
                "privilegesRequired": "NONE",
                "subAvailabilityImpact": "NONE",
                "subConfidentialityImpact": "NONE",
                "subIntegrityImpact": "NONE",
                "userInteraction": "PASSIVE",
                "vectorString": "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",
                "version": "4.0",
                "vulnAvailabilityImpact": "NONE",
                "vulnConfidentialityImpact": "NONE",
                "vulnIntegrityImpact": "HIGH"
              },
              "format": "CVSS"
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-843",
                  "description": "Access of Resource Using Incompatible Type (\u0027Type Confusion\u0027)",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-11-08T14:08:40.851Z",
            "orgId": "83251b91-4cc7-4094-a5c7-464a1b83ea10",
            "shortName": "VulnCheck"
          },
          "references": [
            {
              "name": "GitHub Issue #14576",
              "tags": [
                "issue-tracking"
              ],
              "url": "https://github.com/leanprover/lean4/issues/14576"
            },
            {
              "name": "fix: missing check at kernel inductive declaration",
              "tags": [
                "patch"
              ],
              "url": "https://github.com/leanprover/lean4/commit/a39eab69e1eee9ad38f4efe507907b1026a77808"
            },
            {
              "name": "GitHub Pull Request #14577",
              "tags": [
                "issue-tracking",
                "patch"
              ],
              "url": "https://github.com/leanprover/lean4/pull/14577"
            },
            {
              "name": "lean-cve-poc",
              "tags": [
                "exploit"
              ],
              "url": "https://github.com/endrazine/lean-cve-poc"
            },
            {
              "name": "CollatzLean",
              "tags": [
                "exploit"
              ],
              "url": "https://github.com/xrchz/CollatzLean"
            },
            {
              "name": "oss-security: Lean 4 kernel soundness bug",
              "tags": [
                "third-party-advisory"
              ],
              "url": "https://www.openwall.com/lists/oss-security/2026/08/02/1"
            },
            {
              "tags": [
                "product"
              ],
              "url": "https://github.com/leanprover/lean4"
            },
            {
              "name": "VulnCheck Advisory: Lean 4 Kernel Type Checking Bypass via Mismatched Structure Projections",
              "tags": [
                "third-party-advisory"
              ],
              "url": "https://www.vulncheck.com/advisories/lean-4-kernel-type-checking-bypass-via-mismatched-structure-projections"
            }
          ],
          "timeline": [
            {
              "lang": "en",
              "time": "2026-07-25T00:00:00.000Z",
              "value": "CollatzLean repository published, exploiting the bug"
            },
            {
              "lang": "en",
              "time": "2026-07-28T00:00:00.000Z",
              "value": "Bug identified and reported in issue #14576"
            },
            {
              "lang": "en",
              "time": "2026-07-28T00:00:00.000Z",
              "value": "Fix submitted in pull request #14577"
            },
            {
              "lang": "en",
              "time": "2026-07-29T00:00:00.000Z",
              "value": "Fix available in nightly builds"
            },
            {
              "lang": "en",
              "time": "2026-08-02T00:00:00.000Z",
              "value": "Public advisory on oss-security"
            }
          ],
          "title": "Lean 4 Kernel Type Checking Bypass via Mismatched Structure Projections",
          "x_generator": {
            "engine": "vulncheck-endgame"
          }
        }
      },
      "cveMetadata": {
        "assignerOrgId": "83251b91-4cc7-4094-a5c7-464a1b83ea10",
        "assignerShortName": "VulnCheck",
        "cveId": "CVE-2026-72844",
        "datePublished": "2026-08-20T17:19:34.054Z",
        "dateReserved": "2026-08-10T15:14:51.467Z",
        "dateUpdated": "2026-11-08T14:08:40.851Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-72711 (GCVE-0-2026-72711)

    Vulnerability from cvelistv5 – Published: 2026-08-24 20:08 – Updated: 2026-10-26 01:23
    VLAI
    Title
    Lean 4 before 4.32.2 Kernel Accepts Opaque Declaration With an Unbound Free Variable
    Summary
    The Lean 4 kernel does not check that the body of an opaque declaration is closed. environment::add_opaque omits the check_no_metavar_no_fvar call that the definition and theorem paths perform, so a value containing a free variable that is absent from the local context is not rejected outright. A metaprogram can first cause the kernel to create a temporary local of type False and record its type in the type checker's inference cache, then restore the local context while that cache entry persists on the same type checker instance, and finally submit an opaque declaration whose value is the now-unbound variable. The cache lookup answers before the branch that would test membership of the local context, so the kernel infers the cached type and admits an opaque constant of type False, from which any proposition follows. The declaration is accepted through the ordinary checked path at maximum kernel checking, without sorry, unsafeCast, debug.skipKernelTC, addDeclWithoutChecking, foreign code or a modified .olean file, and the result carries no axioms. Fixed in 4.32.2 by adding the missing closure check.
    SSVC
    Exploitation: poc Automatable: no Technical Impact: partial
    CISA Coordinator · CISA-ADP (v2.0.3)
    Decision recorded 2026-08-24 20:14 UTC
    CWE
    • CWE-20 - Improper Input Validation
    Assigner
    VulnCheck CNA under the mitre root
    CNA scorecard B 85/100 over 9434 records in the last 180 days details
    Impacted products
    Vendor Product Version
    leanprover lean4 Affected: 0 , < 4.32.2 (semver)
    Create a notification for this product.
    Date Public
    2026-07-22 00:00
    Show details on NVD website

    {
      "containers": {
        "adp": [
          {
            "metrics": [
              {
                "other": {
                  "content": {
                    "id": "CVE-2026-72711",
                    "options": [
                      {
                        "Exploitation": "poc"
                      },
                      {
                        "Automatable": "no"
                      },
                      {
                        "Technical Impact": "partial"
                      }
                    ],
                    "role": "CISA Coordinator",
                    "timestamp": "2026-08-24T20:14:31.474084Z",
                    "version": "2.0.3"
                  },
                  "type": "ssvc"
                }
              }
            ],
            "providerMetadata": {
              "dateUpdated": "2026-08-24T20:14:41.969Z",
              "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
              "shortName": "CISA-ADP"
            },
            "title": "CISA ADP Vulnrichment"
          },
          {
            "providerMetadata": {
              "dateUpdated": "2026-10-26T01:23:57.370Z",
              "orgId": "af854a3a-2127-422b-91ae-364da2661108",
              "shortName": "CVE"
            },
            "references": [
              {
                "url": "http://www.openwall.com/lists/oss-security/2026/10/26/3"
              }
            ],
            "title": "CVE Program Container"
          }
        ],
        "cna": {
          "affected": [
            {
              "defaultStatus": "unaffected",
              "packageURL": "pkg:github/leanprover/lean4",
              "product": "lean4",
              "repo": "https://github.com/leanprover/lean4",
              "vendor": "leanprover",
              "versions": [
                {
                  "lessThan": "4.32.2",
                  "status": "affected",
                  "version": "0",
                  "versionType": "semver"
                }
              ]
            }
          ],
          "credits": [
            {
              "lang": "en",
              "type": "finder",
              "value": "Patrick Hulin"
            },
            {
              "lang": "en",
              "type": "finder",
              "value": "Jonathan Brossard (MOABI)"
            }
          ],
          "datePublic": "2026-07-22T00:00:00.000Z",
          "descriptions": [
            {
              "lang": "en",
              "value": "The Lean 4 kernel does not check that the body of an opaque declaration is closed. environment::add_opaque omits the check_no_metavar_no_fvar call that the definition and theorem paths perform, so a value containing a free variable that is absent from the local context is not rejected outright. A metaprogram can first cause the kernel to create a temporary local of type False and record its type in the type checker\u0027s inference cache, then restore the local context while that cache entry persists on the same type checker instance, and finally submit an opaque declaration whose value is the now-unbound variable. The cache lookup answers before the branch that would test membership of the local context, so the kernel infers the cached type and admits an opaque constant of type False, from which any proposition follows. The declaration is accepted through the ordinary checked path at maximum kernel checking, without sorry, unsafeCast, debug.skipKernelTC, addDeclWithoutChecking, foreign code or a modified .olean file, and the result carries no axioms. Fixed in 4.32.2 by adding the missing closure check."
            }
          ],
          "metrics": [
            {
              "cvssV4_0": {
                "attackComplexity": "LOW",
                "attackRequirements": "NONE",
                "attackVector": "LOCAL",
                "baseScore": 6.8,
                "baseSeverity": "MEDIUM",
                "privilegesRequired": "NONE",
                "subAvailabilityImpact": "NONE",
                "subConfidentialityImpact": "NONE",
                "subIntegrityImpact": "NONE",
                "userInteraction": "PASSIVE",
                "vectorString": "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",
                "version": "4.0",
                "vulnAvailabilityImpact": "NONE",
                "vulnConfidentialityImpact": "NONE",
                "vulnIntegrityImpact": "HIGH"
              },
              "format": "CVSS"
            },
            {
              "cvssV3_1": {
                "attackComplexity": "LOW",
                "attackVector": "LOCAL",
                "availabilityImpact": "NONE",
                "baseScore": 6.3,
                "baseSeverity": "MEDIUM",
                "confidentialityImpact": "NONE",
                "integrityImpact": "HIGH",
                "privilegesRequired": "NONE",
                "scope": "CHANGED",
                "userInteraction": "REQUIRED",
                "vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:N/I:H/A:N",
                "version": "3.1"
              },
              "format": "CVSS"
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-20",
                  "description": "Improper Input Validation",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-09-24T14:18:53.683Z",
            "orgId": "83251b91-4cc7-4094-a5c7-464a1b83ea10",
            "shortName": "VulnCheck"
          },
          "references": [
            {
              "tags": [
                "product"
              ],
              "url": "https://github.com/leanprover/lean4"
            },
            {
              "tags": [
                "issue-tracking"
              ],
              "url": "https://github.com/leanprover/lean4/issues/14484"
            },
            {
              "tags": [
                "issue-tracking",
                "patch"
              ],
              "url": "https://github.com/leanprover/lean4/pull/14498"
            },
            {
              "tags": [
                "exploit"
              ],
              "url": "https://github.com/endrazine/lean-cve-poc-14484"
            },
            {
              "name": "VulnCheck Advisory: Lean 4 before 4.32.2 Kernel Accepts Opaque Declaration With an Unbound Free Variable",
              "tags": [
                "third-party-advisory"
              ],
              "url": "https://www.vulncheck.com/advisories/lean-4-before-kernel-accepts-opaque-declaration-with-an-unbound-free-variable"
            }
          ],
          "title": "Lean 4 before 4.32.2 Kernel Accepts Opaque Declaration With an Unbound Free Variable",
          "x_generator": {
            "engine": "vulncheck-endgame"
          }
        }
      },
      "cveMetadata": {
        "assignerOrgId": "83251b91-4cc7-4094-a5c7-464a1b83ea10",
        "assignerShortName": "VulnCheck",
        "cveId": "CVE-2026-72711",
        "datePublished": "2026-08-24T20:08:33.219Z",
        "dateReserved": "2026-08-10T13:02:52.001Z",
        "dateUpdated": "2026-10-26T01:23:57.370Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-72844 (GCVE-0-2026-72844)

    Vulnerability from cvelistv5 – Published: 2026-08-20 17:19 – Updated: 2026-11-08 14:08
    VLAI
    Title
    Lean 4 Kernel Type Checking Bypass via Mismatched Structure Projections
    Summary
    The Lean 4 kernel does not verify that the structure named in a projection expression matches the type of the value being projected, and environment::add_inductive in src/kernel/inductive.cpp did not type check the nested inductive applications that are replaced by auxiliary types, so their parametric arguments escaped checking. A metaprogram running in the Lean process can register an ill-typed nested inductive whose constructor applies a .proj C 0 projection to a value of the unrelated type W, and the kernel admits the declaration through the ordinary checked addDecl path at maximum kernel checking, without sorry, unsafeCast, debug.skipKernelTC, addDeclWithoutChecking, FFI, or a modified .olean file. The result is a type confusion yielding a proof of False that carries no axioms, from which any proposition can be derived. The published proof of concept additionally pads two expressions until their hashes and approximate depths collide, which defeats kernel caching; that is the technique used to reach the flaw, not its cause. Exploitation requires running a metaprogram in-process, for example by building a project or importing a malicious Lake dependency.
    SSVC
    Exploitation: poc Automatable: no Technical Impact: partial
    CISA Coordinator · CISA-ADP (v2.0.3)
    Decision recorded 2026-08-21 21:13 UTC
    CWE
    • CWE-843 - Access of Resource Using Incompatible Type ('Type Confusion')
    Assigner
    VulnCheck CNA under the mitre root
    CNA scorecard B 85/100 over 9434 records in the last 180 days details
    Impacted products
    Vendor Product Version
    leanprover lean4 Affected: 0 , < 4.32.2 (semver)
    Unaffected: 4.32.2 (semver)
    Affected: 4.33.0-rc1 (semver)
    Create a notification for this product.
    Date Public
    2026-07-28 00:00
    Show details on NVD website

    {
      "containers": {
        "adp": [
          {
            "metrics": [
              {
                "other": {
                  "content": {
                    "id": "CVE-2026-72844",
                    "options": [
                      {
                        "Exploitation": "poc"
                      },
                      {
                        "Automatable": "no"
                      },
                      {
                        "Technical Impact": "partial"
                      }
                    ],
                    "role": "CISA Coordinator",
                    "timestamp": "2026-08-21T21:13:48.944575Z",
                    "version": "2.0.3"
                  },
                  "type": "ssvc"
                }
              }
            ],
            "providerMetadata": {
              "dateUpdated": "2026-08-21T21:46:54.936Z",
              "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
              "shortName": "CISA-ADP"
            },
            "title": "CISA ADP Vulnrichment"
          },
          {
            "providerMetadata": {
              "dateUpdated": "2026-10-26T01:23:59.293Z",
              "orgId": "af854a3a-2127-422b-91ae-364da2661108",
              "shortName": "CVE"
            },
            "references": [
              {
                "url": "http://www.openwall.com/lists/oss-security/2026/10/26/2"
              }
            ],
            "title": "CVE Program Container"
          }
        ],
        "cna": {
          "affected": [
            {
              "defaultStatus": "unaffected",
              "product": "lean4",
              "repo": "https://github.com/leanprover/lean4",
              "vendor": "leanprover",
              "versions": [
                {
                  "lessThan": "4.32.2",
                  "status": "affected",
                  "version": "0",
                  "versionType": "semver"
                },
                {
                  "status": "unaffected",
                  "version": "4.32.2",
                  "versionType": "semver"
                },
                {
                  "status": "affected",
                  "version": "4.33.0-rc1",
                  "versionType": "semver"
                }
              ]
            }
          ],
          "credits": [
            {
              "lang": "en",
              "type": "finder",
              "value": "kiranandcode"
            },
            {
              "lang": "en",
              "type": "other",
              "value": "Ramana Kumar (@xrchz)"
            },
            {
              "lang": "en",
              "type": "remediation developer",
              "value": "Leonardo de Moura"
            },
            {
              "lang": "en",
              "type": "other",
              "value": "Jonathan Brossard (MOABI)"
            }
          ],
          "datePublic": "2026-07-28T00:00:00.000Z",
          "descriptions": [
            {
              "lang": "en",
              "value": "The Lean 4 kernel does not verify that the structure named in a projection expression matches the type of the value being projected, and environment::add_inductive in src/kernel/inductive.cpp did not type check the nested inductive applications that are replaced by auxiliary types, so their parametric arguments escaped checking. A metaprogram running in the Lean process can register an ill-typed nested inductive whose constructor applies a .proj C 0 projection to a value of the unrelated type W, and the kernel admits the declaration through the ordinary checked addDecl path at maximum kernel checking, without sorry, unsafeCast, debug.skipKernelTC, addDeclWithoutChecking, FFI, or a modified .olean file. The result is a type confusion yielding a proof of False that carries no axioms, from which any proposition can be derived. The published proof of concept additionally pads two expressions until their hashes and approximate depths collide, which defeats kernel caching; that is the technique used to reach the flaw, not its cause. Exploitation requires running a metaprogram in-process, for example by building a project or importing a malicious Lake dependency."
            }
          ],
          "metrics": [
            {
              "cvssV3_1": {
                "attackComplexity": "LOW",
                "attackVector": "LOCAL",
                "availabilityImpact": "NONE",
                "baseScore": 6.3,
                "baseSeverity": "MEDIUM",
                "confidentialityImpact": "NONE",
                "integrityImpact": "HIGH",
                "privilegesRequired": "NONE",
                "scope": "CHANGED",
                "userInteraction": "REQUIRED",
                "vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:N/I:H/A:N",
                "version": "3.1"
              },
              "format": "CVSS"
            },
            {
              "cvssV4_0": {
                "attackComplexity": "LOW",
                "attackRequirements": "NONE",
                "attackVector": "LOCAL",
                "baseScore": 6.8,
                "baseSeverity": "MEDIUM",
                "privilegesRequired": "NONE",
                "subAvailabilityImpact": "NONE",
                "subConfidentialityImpact": "NONE",
                "subIntegrityImpact": "NONE",
                "userInteraction": "PASSIVE",
                "vectorString": "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",
                "version": "4.0",
                "vulnAvailabilityImpact": "NONE",
                "vulnConfidentialityImpact": "NONE",
                "vulnIntegrityImpact": "HIGH"
              },
              "format": "CVSS"
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-843",
                  "description": "Access of Resource Using Incompatible Type (\u0027Type Confusion\u0027)",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-11-08T14:08:40.851Z",
            "orgId": "83251b91-4cc7-4094-a5c7-464a1b83ea10",
            "shortName": "VulnCheck"
          },
          "references": [
            {
              "name": "GitHub Issue #14576",
              "tags": [
                "issue-tracking"
              ],
              "url": "https://github.com/leanprover/lean4/issues/14576"
            },
            {
              "name": "fix: missing check at kernel inductive declaration",
              "tags": [
                "patch"
              ],
              "url": "https://github.com/leanprover/lean4/commit/a39eab69e1eee9ad38f4efe507907b1026a77808"
            },
            {
              "name": "GitHub Pull Request #14577",
              "tags": [
                "issue-tracking",
                "patch"
              ],
              "url": "https://github.com/leanprover/lean4/pull/14577"
            },
            {
              "name": "lean-cve-poc",
              "tags": [
                "exploit"
              ],
              "url": "https://github.com/endrazine/lean-cve-poc"
            },
            {
              "name": "CollatzLean",
              "tags": [
                "exploit"
              ],
              "url": "https://github.com/xrchz/CollatzLean"
            },
            {
              "name": "oss-security: Lean 4 kernel soundness bug",
              "tags": [
                "third-party-advisory"
              ],
              "url": "https://www.openwall.com/lists/oss-security/2026/08/02/1"
            },
            {
              "tags": [
                "product"
              ],
              "url": "https://github.com/leanprover/lean4"
            },
            {
              "name": "VulnCheck Advisory: Lean 4 Kernel Type Checking Bypass via Mismatched Structure Projections",
              "tags": [
                "third-party-advisory"
              ],
              "url": "https://www.vulncheck.com/advisories/lean-4-kernel-type-checking-bypass-via-mismatched-structure-projections"
            }
          ],
          "timeline": [
            {
              "lang": "en",
              "time": "2026-07-25T00:00:00.000Z",
              "value": "CollatzLean repository published, exploiting the bug"
            },
            {
              "lang": "en",
              "time": "2026-07-28T00:00:00.000Z",
              "value": "Bug identified and reported in issue #14576"
            },
            {
              "lang": "en",
              "time": "2026-07-28T00:00:00.000Z",
              "value": "Fix submitted in pull request #14577"
            },
            {
              "lang": "en",
              "time": "2026-07-29T00:00:00.000Z",
              "value": "Fix available in nightly builds"
            },
            {
              "lang": "en",
              "time": "2026-08-02T00:00:00.000Z",
              "value": "Public advisory on oss-security"
            }
          ],
          "title": "Lean 4 Kernel Type Checking Bypass via Mismatched Structure Projections",
          "x_generator": {
            "engine": "vulncheck-endgame"
          }
        }
      },
      "cveMetadata": {
        "assignerOrgId": "83251b91-4cc7-4094-a5c7-464a1b83ea10",
        "assignerShortName": "VulnCheck",
        "cveId": "CVE-2026-72844",
        "datePublished": "2026-08-20T17:19:34.054Z",
        "dateReserved": "2026-08-10T15:14:51.467Z",
        "dateUpdated": "2026-11-08T14:08:40.851Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }