CVE-2026-72711: falha de média gravidade em leanprover lean4
Lean 4 before 4.32.2 Kernel Accepts Opaque Declaration With an Unbound Free Variable
Publicada em · Atualizada em
Aviso por e-mail quando ela entrar no KEV, ganhar PoC pública ou subir de nota.
33Vexday Risk Score
Sem sinal de exploração. Ela tem prova de conceito pública.
ssvc Attendcvss 6.8epss 0.2%
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.
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
Produtos afetados
leanprover · lean4PoCs públicas encontradas — 1
cve_referencegithub.com/endrazine/lean-cve-poc-14484★ 0⚠ Recursos públicos, para você avaliar a exposição de sistemas que controla ou está autorizado a testar. Teste apenas com autorização.
CVEs relacionadas — leanprover lean4
No mesmo produto, das mais perigosas para as menos.
Referências
https://github.com/endrazine/lean-cve-poc-14484https://github.com/leanprover/lean4https://github.com/leanprover/lean4/issues/14484https://github.com/leanprover/lean4/pull/14498https://www.vulncheck.com/advisories/lean-4-before-kernel-accepts-opaque-declaration-with-an-unbound-free-variablehttp://www.openwall.com/lists/oss-security/2026/10/26/3