{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-72844",
        "assignerOrgId": "83251b91-4cc7-4094-a5c7-464a1b83ea10",
        "state": "PUBLISHED",
        "assignerShortName": "VulnCheck",
        "dateReserved": "2026-08-10T15:14:51.467Z",
        "datePublished": "2026-08-20T17:19:34.054Z",
        "dateUpdated": "2026-08-21T21:46:54.936Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "83251b91-4cc7-4094-a5c7-464a1b83ea10",
                "shortName": "VulnCheck",
                "dateUpdated": "2026-08-21T11:20:58.955Z"
            },
            "datePublic": "2026-07-28T00:00:00.000Z",
            "title": "Lean 4 Kernel Type Checking Bypass via Mismatched Structure Projections",
            "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."
                }
            ],
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "lang": "en",
                            "description": "Access of Resource Using Incompatible Type ('Type Confusion')",
                            "cweId": "CWE-843",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "affected": [
                {
                    "vendor": "leanprover",
                    "product": "lean4",
                    "defaultStatus": "unaffected",
                    "repo": "https://github.com/leanprover/lean4",
                    "versions": [
                        {
                            "version": "0",
                            "lessThan": "4.32.2",
                            "status": "affected",
                            "versionType": "semver"
                        },
                        {
                            "version": "4.32.2",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "4.33.0-rc1",
                            "status": "affected",
                            "versionType": "semver"
                        }
                    ]
                }
            ],
            "metrics": [
                {
                    "format": "CVSS",
                    "cvssV3_1": {
                        "version": "3.1",
                        "vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:N/I:H/A:N",
                        "attackVector": "LOCAL",
                        "attackComplexity": "LOW",
                        "privilegesRequired": "NONE",
                        "userInteraction": "REQUIRED",
                        "scope": "CHANGED",
                        "confidentialityImpact": "NONE",
                        "integrityImpact": "HIGH",
                        "availabilityImpact": "NONE",
                        "baseScore": 6.3,
                        "baseSeverity": "MEDIUM"
                    }
                },
                {
                    "format": "CVSS",
                    "cvssV4_0": {
                        "version": "4.0",
                        "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",
                        "attackVector": "LOCAL",
                        "attackComplexity": "LOW",
                        "attackRequirements": "NONE",
                        "privilegesRequired": "NONE",
                        "userInteraction": "PASSIVE",
                        "vulnConfidentialityImpact": "NONE",
                        "vulnIntegrityImpact": "HIGH",
                        "vulnAvailabilityImpact": "NONE",
                        "subConfidentialityImpact": "NONE",
                        "subIntegrityImpact": "NONE",
                        "subAvailabilityImpact": "NONE",
                        "baseScore": 6.8,
                        "baseSeverity": "MEDIUM"
                    }
                }
            ],
            "references": [
                {
                    "url": "https://github.com/leanprover/lean4/issues/14576",
                    "tags": [
                        "issue-tracking"
                    ],
                    "name": "GitHub Issue #14576"
                },
                {
                    "url": "https://github.com/leanprover/lean4/commit/a39eab69e1eee9ad38f4efe507907b1026a77808",
                    "tags": [
                        "patch"
                    ],
                    "name": "fix: missing check at kernel inductive declaration"
                },
                {
                    "url": "https://github.com/leanprover/lean4/pull/14577",
                    "tags": [
                        "issue-tracking"
                    ],
                    "name": "GitHub Pull Request #14577"
                },
                {
                    "url": "https://github.com/endrazine/lean-cve-poc",
                    "tags": [
                        "exploit"
                    ],
                    "name": "lean-cve-poc"
                },
                {
                    "url": "https://github.com/xrchz/CollatzLean",
                    "tags": [
                        "exploit"
                    ],
                    "name": "CollatzLean"
                },
                {
                    "url": "https://www.openwall.com/lists/oss-security/2026/08/02/1",
                    "tags": [
                        "third-party-advisory"
                    ],
                    "name": "oss-security: Lean 4 kernel soundness bug"
                },
                {
                    "url": "https://github.com/leanprover/lean4",
                    "tags": [
                        "product"
                    ]
                },
                {
                    "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"
                }
            ],
            "credits": [
                {
                    "lang": "en",
                    "value": "kiranandcode",
                    "type": "finder"
                },
                {
                    "lang": "en",
                    "value": "Ramana Kumar (@xrchz)",
                    "type": "other"
                },
                {
                    "lang": "en",
                    "value": "Leonardo de Moura",
                    "type": "remediation developer"
                },
                {
                    "lang": "en",
                    "value": "Jonathan Brossard (MOABI)",
                    "type": "other"
                }
            ],
            "x_generator": {
                "engine": "vulncheck-endgame"
            },
            "timeline": [
                {
                    "time": "2026-07-25T00:00:00.000Z",
                    "lang": "en",
                    "value": "CollatzLean repository published, exploiting the bug"
                },
                {
                    "time": "2026-07-28T00:00:00.000Z",
                    "lang": "en",
                    "value": "Bug identified and reported in issue #14576"
                },
                {
                    "time": "2026-07-28T00:00:00.000Z",
                    "lang": "en",
                    "value": "Fix submitted in pull request #14577"
                },
                {
                    "time": "2026-07-29T00:00:00.000Z",
                    "lang": "en",
                    "value": "Fix available in nightly builds"
                },
                {
                    "time": "2026-08-02T00:00:00.000Z",
                    "lang": "en",
                    "value": "Public advisory on oss-security"
                }
            ]
        },
        "adp": [
            {
                "metrics": [
                    {
                        "other": {
                            "type": "ssvc",
                            "content": {
                                "timestamp": "2026-08-21T21:13:48.944575Z",
                                "id": "CVE-2026-72844",
                                "options": [
                                    {
                                        "Exploitation": "poc"
                                    },
                                    {
                                        "Automatable": "no"
                                    },
                                    {
                                        "Technical Impact": "partial"
                                    }
                                ],
                                "role": "CISA Coordinator",
                                "version": "2.0.3"
                            }
                        }
                    }
                ],
                "title": "CISA ADP Vulnrichment",
                "providerMetadata": {
                    "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
                    "shortName": "CISA-ADP",
                    "dateUpdated": "2026-08-21T21:46:54.936Z"
                }
            }
        ]
    }
}