CVE-2026-72711: Improper Input Validation in leanprover lean4
CVE-2026-72711 is a medium severity vulnerability in the Lean 4 kernel where improper input validation allows an opaque declaration to be accepted without verifying that its body is closed. This flaw enables a metaprogram to introduce an opaque constant of type False, potentially undermining logical soundness. The issue is fixed in version 4.32.2 by adding the missing closure check.
AI Analysis
Technical Summary
The Lean 4 kernel fails to check that the body of an opaque declaration is closed because environment::add_opaque omits the check_no_metavar_no_fvar call that other declaration paths perform. This omission allows a metaprogram to create a temporary local of type False, cache its type, restore the local context, and then submit an opaque declaration with the now-unbound variable. The kernel infers the cached type without verifying local context membership, admitting an opaque constant of type False. This bypass occurs through the standard checked path at maximum kernel checking without requiring unsafe operations or modified files. The vulnerability is fixed in version 4.32.2 by adding the missing closure check.
Potential Impact
An attacker can cause the kernel to accept an opaque constant of type False, from which any proposition follows, potentially compromising the logical soundness of proofs or programs relying on Lean 4. This could lead to incorrect theorem proofs or unsound reasoning within the environment.
Mitigation Recommendations
A fix is available in Lean 4 version 4.32.2, which adds the missing closure check to environment::add_opaque. Users should upgrade to version 4.32.2 or later to remediate this vulnerability.
CVE-2026-72711: Improper Input Validation in leanprover lean4
Description
CVE-2026-72711 is a medium severity vulnerability in the Lean 4 kernel where improper input validation allows an opaque declaration to be accepted without verifying that its body is closed. This flaw enables a metaprogram to introduce an opaque constant of type False, potentially undermining logical soundness. The issue is fixed in version 4.32.2 by adding the missing closure check.
CVSS v4.0
Score 6.8medium
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 check that the body of an opaque declaration is closed because environment::add_opaque omits the check_no_metavar_no_fvar call that other declaration paths perform. This omission allows a metaprogram to create a temporary local of type False, cache its type, restore the local context, and then submit an opaque declaration with the now-unbound variable. The kernel infers the cached type without verifying local context membership, admitting an opaque constant of type False. This bypass occurs through the standard checked path at maximum kernel checking without requiring unsafe operations or modified files. The vulnerability is fixed in version 4.32.2 by adding the missing closure check.
Potential Impact
An attacker can cause the kernel to accept an opaque constant of type False, from which any proposition follows, potentially compromising the logical soundness of proofs or programs relying on Lean 4. This could lead to incorrect theorem proofs or unsound reasoning within the environment.
Mitigation Recommendations
A fix is available in Lean 4 version 4.32.2, which adds the missing closure check to environment::add_opaque. Users should upgrade to version 4.32.2 or later to remediate this vulnerability.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-08-10T13:02:52.001Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a8ca814acd9273b49150582
Added to database: 08/24/2026, 20:22:44 UTC
Last enriched: 08/24/2026, 20:37:54 UTC
Last updated: 08/24/2026, 21:31:08 UTC
Views: 4
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.