Lean 4 内核未验证投影表达式中所指明的结构是否与被投影值的类型相匹配。此外, 中的 函数在对由辅助类型替换的嵌套归纳类型应用进行类型检查时存在疏漏,导致其参数化参数绕过了类型检查。 在 Lean 进程内运行的元程序可以注册一个类型不良的嵌套归纳类型,其构造函数会将一个属于不相关类型 W 的值通过 投影进行访问。内核通过标准的 路径(该路径在最大程度的内核检查下运行)接受此声明,整个过程无需使用 、 、 、 、FFI,也不需要修改 文件。 该漏洞导致类型混淆,进而生成一个无需引入公理(axioms)即可证明 的
| Vendor | Product | Version Range | Status |
|---|---|---|---|
| leanprover | lean4 | < 4.32.2 |
affected |
4.32.2 |
unaffected | ||
4.33.0-rc1 |
affected |
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.
| Vendor | Product | Affected Versions | CPE | Subscribe |
|---|---|---|---|---|
| leanprover | lean4 | 0 ~ 4.32.2 | - |
|
| # | POC Description | Source Link | Shenlong Link |
|---|
No public POC found.
Login to generate AI POCNo comments yet