CVE-2026-72711
Last modified
CVE-2026-72711 is a medium-severity vulnerability rated 6.3/10 on the CVSS scale. The Lean 4 kernel does not check that the body of an opaque declaration is closed. environment::add_opaque omits the check_no_metavar_no_fvar call that the definition and theorem paths perform, so a value containing a free variable that is absent from the local context is not rejected outright. EPSS estimates a 0.18% chance of exploitation in the next 30 days.
Description
The Lean 4 kernel does not check that the body of an opaque declaration is closed. environment::add_opaque omits the check_no_metavar_no_fvar call that the definition and theorem paths perform, so a value containing a free variable that is absent from the local context is not rejected outright. A metaprogram can first cause the kernel to create a temporary local of type False and record its type in the type checker's inference cache, then restore the local context while that cache entry persists on the same type checker instance, and finally submit an opaque declaration whose value is the now-unbound variable. The cache lookup answers before the branch that would test membership of the local context, so the kernel infers the cached type and admits an opaque constant of type False, from which any proposition follows. The declaration is accepted through the ordinary checked path at maximum kernel checking, without sorry, unsafeCast, debug.skipKernelTC, addDeclWithoutChecking, foreign code or a modified .olean file, and the result carries no axioms. Fixed in 4.32.2 by adding the missing closure check.
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| leanprover | lean4 | < 4.32.2 |
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2026-72711?
How severe is CVE-2026-72711?
How do I fix CVE-2026-72711?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-72704The guard checker in Rocq Prover does not recheck the recurs…6.3
- CVE-2026-72705The guard checker in Rocq Prover does not follow recursive c…6.3
- CVE-2026-72708SPIP before 4.4.18 contains an unauthenticated blind SQL inj…7.5
- CVE-2026-72709SPIP before version 4.4.18 contains a missing authorization …9.8
- CVE-2026-7271A vulnerability was detected in DV0x creative-ad-agent up to…5.5
- CVE-2026-72710SPIP before 4.4.18 contains a mass assignment vulnerability …9.8
- CVE-2026-72712Nmap versions up to and including 7.99 contains a denial of …6.5
- CVE-2026-72713XAgent contains a path traversal vulnerability in the worksp…7.5
- CVE-2026-72714Rocq Prover does not restore the universe graph's copy of th…6.3
- CVE-2026-72716Orval generates type-safe JavaScript clients in TypeScript f…9.3
- CVE-2026-72717Orval generates type-safe JavaScript clients in TypeScript f…9.3
- CVE-2026-72718goose is general-purpose AI agent that runs on your machine.…7
Are you affected by CVE-2026-72711?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
