# CVE-2026-72844: Lean 4 Kernel Type Checking Bypass via Mismatched Structure Projections

- Severity: Medium 6.8 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 11% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2026-08-20T17:19:34.054Z
- Modified: 2026-11-08T14:08:40.851Z
- Weaknesses: CWE-843
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: VulnCheck

## Description

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.

(As written by CVE List.)

## Affected

- leanprover lean4: before 4.32.2; 4.33.0-rc1 (not affected: 4.32.2)

## Every score

- VulnCheck: CVSS:3.1 6.3 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:N/I:H/A:N`
- VulnCheck: CVSS:4.0 6.8 Medium `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`

## References

- <https://github.com/endrazine/lean-cve-poc> (exploit)
- <https://github.com/xrchz/CollatzLean> (exploit)
- <https://github.com/leanprover/lean4/issues/14576> (issue-tracking)
- <https://github.com/leanprover/lean4/commit/a39eab69e1eee9ad38f4efe507907b1026a77808> (patch)
- <https://github.com/leanprover/lean4/pull/14577> (issue-tracking, patch)
- <https://www.openwall.com/lists/oss-security/2026/08/02/1> (third-party-advisory)
- <https://github.com/leanprover/lean4> (product)
- <https://www.vulncheck.com/advisories/lean-4-kernel-type-checking-bypass-via-mismatched-structure-projections> (third-party-advisory)
- <http://www.openwall.com/lists/oss-security/2026/10/26/2>

## Sources

- CVE List: [CVE-2026-72844](https://www.cve.org/CVERecord?id=CVE-2026-72844), CVE Terms of Use, modified 2026-11-08
- NVD: [CVE-2026-72844](https://nvd.nist.gov/vuln/detail/CVE-2026-72844), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-72844 · Whole record: https://cve.day/CVE-2026-72844.json · Rebuilt by cve.day 2026-11-25T22:59:34.680Z
