Type Checking Bypass in Lean 4 Kernel by Lean Prover
CVE-2026-72844
Key Information:
- Vendor
Leanprover
- Status
- Vendor
- CVE Published:
- 20 August 2026
Badges
What is CVE-2026-72844?
The Lean 4 kernel fails to verify the structure within a projection expression aligns with the projected value's type. Consequently, the function environment::add_inductive does not properly type check nested inductive applications. This oversight permits a metaprogram to construct an ill-typed nested inductive type, allowing a projection to a value of an unrelated type. The weakness enables the kernel to accept declarations through a standard method without sufficient type verification. As a result, attackers can achieve type confusion leading to an unstructured proof that can derive any proposition from a proof of False. Exploiting this vulnerability necessitates the execution of a metaprogram within the Lean process, achieved via project construction or reliance on a compromised Lake dependency.
Affected Version(s)
lean4 0 < 4.32.2
lean4 4.33.0-rc1
lean4 4.32.2
Exploit Proof of Concept (PoC)
PoC code is written by security researchers to demonstrate the vulnerability can be exploited. PoC code is also a key component for weaponization which could lead to ransomware.
References
CVSS V4
Timeline
- ๐ก
Public PoC available
- ๐พ
Exploit known to exist
Vulnerability published
Vulnerability Reserved
