CVE-2026-72844: Access of Resource Using Incompatible Type ('Type Confusion') in leanprover lean4
CVE-2026-72844 is a type confusion vulnerability in the Lean 4 kernel that allows a metaprogram running within the Lean process to register an ill-typed nested inductive declaration. This occurs because the kernel does not verify that the structure named in a projection expression matches the type of the value being projected, and certain nested inductive applications escape type checking. Exploitation can lead to a proof of False without axioms, enabling derivation of any proposition. The vulnerability requires running a metaprogram in-process, such as by building a project or importing a malicious dependency.
AI Analysis
Technical Summary
The Lean 4 kernel fails to verify that the structure named in a projection expression matches the type of the value being projected. Additionally, the environment::add_inductive function in src/kernel/inductive.cpp does not type check nested inductive applications replaced by auxiliary types, allowing parametric arguments to escape checking. A metaprogram can exploit this by registering an ill-typed nested inductive whose constructor applies a projection to a value of an unrelated type. This type confusion is admitted by the kernel through the normal checked addDecl path without requiring unsafe flags or modifications. The result is a proof of False carrying no axioms, from which any proposition can be derived. The published proof of concept uses hash and depth collisions to defeat kernel caching, but this technique is not the root cause. Exploitation requires running a metaprogram in-process, such as building a project or importing a malicious Lake dependency.
Potential Impact
This vulnerability allows an attacker who can run a metaprogram inside the Lean 4 process to create ill-typed nested inductive declarations that lead to type confusion. This results in a proof of False without axioms, effectively breaking the soundness of the proof system and allowing derivation of any proposition. There is no impact on confidentiality or availability, but the integrity of proofs is compromised.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, users should avoid running untrusted metaprograms or importing untrusted dependencies that could exploit this vulnerability. No official fix or temporary workaround is currently documented.
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 that allows a metaprogram running within the Lean process to register an ill-typed nested inductive declaration. This occurs because the kernel does not verify that the structure named in a projection expression matches the type of the value being projected, and certain nested inductive applications escape type checking. Exploitation can lead to a proof of False without axioms, enabling derivation of any proposition. The vulnerability requires running a metaprogram in-process, such as by building a project or importing a malicious dependency.
CVSS v3.1
Score 6.3medium
Affected software
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 fails to verify that the structure named in a projection expression matches the type of the value being projected. Additionally, the environment::add_inductive function in src/kernel/inductive.cpp does not type check nested inductive applications replaced by auxiliary types, allowing parametric arguments to escape checking. A metaprogram can exploit this by registering an ill-typed nested inductive whose constructor applies a projection to a value of an unrelated type. This type confusion is admitted by the kernel through the normal checked addDecl path without requiring unsafe flags or modifications. The result is a proof of False carrying no axioms, from which any proposition can be derived. The published proof of concept uses hash and depth collisions to defeat kernel caching, but this technique is not the root cause. Exploitation requires running a metaprogram in-process, such as building a project or importing a malicious Lake dependency.
Potential Impact
This vulnerability allows an attacker who can run a metaprogram inside the Lean 4 process to create ill-typed nested inductive declarations that lead to type confusion. This results in a proof of False without axioms, effectively breaking the soundness of the proof system and allowing derivation of any proposition. There is no impact on confidentiality or availability, but the integrity of proofs is compromised.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, users should avoid running untrusted metaprograms or importing untrusted dependencies that could exploit this vulnerability. No official fix or temporary workaround is currently documented.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-08-10T15:14:51.467Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a873babacd9273b49eebb04
Added to database: 08/20/2026, 17:38:51 UTC
Last enriched: 08/20/2026, 17:52:45 UTC
Last updated: 08/20/2026, 22:13:06 UTC
Views: 8
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.