Vulnerability Information
Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.
Vulnerability Title
Lean 4 Kernel Type Checking Bypass via Mismatched Structure Projections
Vulnerability Description
The Lean 4 kernel does not verify that the structure named in a projection expression matches the type of the value being projected, and environment::add_inductive in src/kernel/inductive.cpp did not type check the nested inductive applications that are replaced by auxiliary types, so their parametric arguments escaped checking. A metaprogram running in the Lean process can register an ill-typed nested inductive whose constructor applies a .proj C 0 projection to a value of the unrelated type W, and the kernel admits the declaration through the ordinary checked addDecl path at maximum kernel checking, without sorry, unsafeCast, debug.skipKernelTC, addDeclWithoutChecking, FFI, or a modified .olean file. The result is a type confusion yielding a proof of False that carries no axioms, from which any proposition can be derived. The published proof of concept additionally pads two expressions until their hashes and approximate depths collide, which defeats kernel caching; that is the technique used to reach the flaw, not its cause. Exploitation requires running a metaprogram in-process, for example by building a project or importing a malicious Lake dependency.
CVSS Information
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:N/I:H/A:N
Vulnerability Type
使用不兼容类型访问资源(类型混淆)
Vulnerability Title
Lean 4 缓冲区错误漏洞
Vulnerability Description
Lean 4是Lean组织的一个交互式定理证明与函数式编程框架。 Lean 4 4.32.2之前版本和4.33.0-rc1版本存在缓冲区错误漏洞,该漏洞源于内核未验证投影表达式中的结构类型与值类型匹配,且environment::add_inductive未对嵌套归纳应用进行类型检查,可能导致类型混淆,进而产生无公理False证明并推导出任意命题。
CVSS Information
N/A
Vulnerability Type
N/A