Vulnerabilities & PatchesEmerging1 src
CVE-2026-72711 - Lean 4 before 4.32.2 Kernel Accepts Opaque Declaration With an Unbound Free Variable
CVE ID : CVE-2026-72711
Published : Aug. 24, 2026, 8:17 p. m.
• 54 minutes ago
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.