CVE-2026-72844: Access of Resource Using Incompatible Type ('Type Confusion') in leanprover lean4
Description
CVE-2026-72844 is a type confusion vulnerability in the Lean 4 kernel where the system fails to verify that the structure named in a projection expression matches the type of the value being projected. This allows a metaprogram running within the Lean process to register an ill-typed nested inductive type, leading to a type confusion that yields a proof of False without axioms, enabling derivation of any proposition. Exploitation requires running a metaprogram in-process, such as building a project or importing a malicious dependency. The vulnerability affects Lean 4 versions from initial releases up to but excluding 4.32.2, and version 4.33.0-rc1. The CVSS score is 6.3 (medium severity).
CVSS v3.1
Score 6.3medium
Affected software
leanprover
lean4
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Lean 4 kernel does not properly verify type consistency in projection expressions and nested inductive applications, allowing a metaprogram to register an ill-typed nested inductive type. This results in type confusion that can produce a proof of False without axioms, effectively breaking the soundness of the proof system. The vulnerability is exploitable only by running a metaprogram within the Lean process, such as during project builds or when importing malicious dependencies. The published proof of concept uses hash collision techniques to bypass kernel caching, but this is a method to reach the flaw rather than the root cause.
Potential Impact
An attacker able to run a metaprogram in the Lean 4 process can exploit this vulnerability to cause type confusion, resulting in a proof of False without axioms. This undermines the soundness of the proof system, allowing derivation of arbitrary propositions, which compromises the integrity of proofs generated by Lean 4. There is no indication of direct impact on confidentiality or availability. Exploitation requires local code execution within the Lean environment.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid running untrusted metaprograms or importing untrusted dependencies in the Lean 4 environment to mitigate risk.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-08-10T15:14:51.467Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6a873babacd9273b49eebb04
Added to database: 08/20/2026, 17:38:51 UTC
Last enriched: 09/11/2026, 04:19:02 UTC
Last updated: 10/05/2026, 06:48:18 UTC
Views: 65
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.