Type Checking Bypass in Lean 4 Kernel by Lean Prover
CVE-2026-72844

6.8MEDIUM

Key Information:

Vendor

Leanprover

Status
Vendor
CVE Published:
20 August 2026

Badges

๐Ÿ‘พ Exploit Exists๐ŸŸก Public PoC

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

Score:
6.8
Severity:
MEDIUM
Confidentiality:
None
Integrity:
High
Availability:
None
Attack Vector:
Local
Attack Complexity:
Low
Attack Required:
None
Privileges Required:
Undefined
User Interaction:
Unknown

Timeline

  • ๐ŸŸก

    Public PoC available

  • ๐Ÿ‘พ

    Exploit known to exist

  • Vulnerability published

  • Vulnerability Reserved

Credit

kiranandcode
Ramana Kumar (@xrchz)
Leonardo de Moura
Jonathan Brossard (MOABI)
.