Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-72844: Access of Resource Using Incompatible Type ('Type Confusion') in leanprover lean4

0
Medium
VulnerabilityCVE-2026-72844cvecve-2026-72844
Published: 08/20/2026 (08/20/2026, 17:19:34 UTC)
Source: CVE Database V5
Vendor/Project: leanprover
Product: 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

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
None
Integrity
High
Availability
None
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:N/I:H/A:N

Affected software

GitHub Actionsmore threats →cve
lean4
pkg:github/lean4
Affected versions
<4.32.2=4.33.0-rc1

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

AILast updated: 08/20/2026, 17:52:45 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses