Skip to main content
EPSS 0.2%top 94%

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 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

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

leanprover

lean4

Affected versions
>=0 <4.32.2=4.33.0-rc1
GitHub Actionsmore threats →cve
lean4
pkg:github/lean4
Affected versions
>=0 <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: 09/11/2026, 04:19:02 UTC

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.

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

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 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