目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1359 元

100%

CVE-2021-39218— Wasmtime 缓冲区错误漏洞

一分钟漏洞结论

影响对象
bytecodealliance wasmtime
利用判断
尚无明确在野利用证据,仍需结合暴露面评估
建议动作
优先检查厂商安全公告和参考链接中的修复版本;无法立即升级时,限制受影响服务暴露并加强监测。

Wasmtime是一个字节码联盟项目,它是一个独立的仅用于 WebAssembly 和 WASI 的 wasm 优化运行时。 Wasmtime 存在缓冲区错误漏洞,该漏洞源于在 0.26.0 版本和 0.30.0 版本之前的 Wasmtime 中,受内存不健全漏洞影响,在运行 Wasm 时存在无效的自由和越界读写错误。

CVSS 6.3 · Medium EPSS 0.30% · P21
获取后续新漏洞提醒 登录后订阅

一、 漏洞 CVE-2021-39218 基础信息

漏洞信息

对漏洞内容有疑问?看看神龙的深度分析是否有帮助!
查看神龙十问 ↗

尽管我们使用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。神龙努力确保数据的准确性,但请您根据实际情况进行核实和判断。

Vulnerability Title
Out-of-bounds read/write and invalid free with `externref`s and GC safepoints in Wasmtime
来源: CVE Program / CVE List V5
Vulnerability Description
Wasmtime is an open source runtime for WebAssembly & WASI. In Wasmtime from version 0.26.0 and before version 0.30.0 is affected by a memory unsoundness vulnerability. There was an invalid free and out-of-bounds read and write bug when running Wasm that uses `externref`s in Wasmtime. To trigger this bug, Wasmtime needs to be running Wasm that uses `externref`s, the host creates non-null `externrefs`, Wasmtime performs a garbage collection (GC), and there has to be a Wasm frame on the stack that is at a GC safepoint where there are no live references at this safepoint, and there is a safepoint with live references earlier in this frame's function. Under this scenario, Wasmtime would incorrectly use the GC stack map for the safepoint from earlier in the function instead of the empty safepoint. This would result in Wasmtime treating arbitrary stack slots as `externref`s that needed to be rooted for GC. At the *next* GC, it would be determined that nothing was referencing these bogus `externref`s (because nothing could ever reference them, because they are not really `externref`s) and then Wasmtime would deallocate them and run `<ExternRef as Drop>::drop` on them. This results in a free of memory that is not necessarily on the heap (and shouldn't be freed at this moment even if it was), as well as potential out-of-bounds reads and writes. Even though support for `externref`s (via the reference types proposal) is enabled by default, unless you are creating non-null `externref`s in your host code or explicitly triggering GCs, you cannot be affected by this bug. We have reason to believe that the effective impact of this bug is relatively small because usage of `externref` is currently quite rare. This bug has been patched and users should upgrade to Wasmtime version 0.30.0. If you cannot upgrade Wasmtime at this time, you can avoid this bug by disabling the reference types proposal by passing `false` to `wasmtime::Config::wasm_reference_types`.
来源: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:H
来源: CVE Program / CVE List V5
Vulnerability Type
释放并不在堆上的内存
来源: CVE Program / CVE List V5
Vulnerability Title
Wasmtime 缓冲区错误漏洞
来源: 中国国家信息安全漏洞库 CNNVD
Vulnerability Description
Wasmtime是一个字节码联盟项目,它是一个独立的仅用于 WebAssembly 和 WASI 的 wasm 优化运行时。 Wasmtime 存在缓冲区错误漏洞,该漏洞源于在 0.26.0 版本和 0.30.0 版本之前的 Wasmtime 中,受内存不健全漏洞影响,在运行 Wasm 时存在无效的自由和越界读写错误。
来源: 中国国家信息安全漏洞库 CNNVD
CVSS Information
N/A
来源: 中国国家信息安全漏洞库 CNNVD
Vulnerability Type
N/A
来源: 中国国家信息安全漏洞库 CNNVD

受影响产品

厂商 产品 影响版本 CPE 订阅
bytecodealliance wasmtime >= 0.26.0, <= 0.29.0 -

二、漏洞 CVE-2021-39218 的公开POC

# POC 描述 源链接 神龙链接
AI 生成 POC 高级

未找到公开 POC。

登录以生成 AI POC

三、漏洞 CVE-2021-39218 的情报信息

请登录查看更多情报信息。

CVE-2021-39218 补丁与修复 (1)

CVE-2021-39218 厂商安全公告 (1)

CVE-2021-39218 邮件列表归档 (2)

CVE-2021-39218 其他参考 (1)

同批安全公告 · bytecodealliance · 2021-09-17 · 共 3 条

CVE-2021-39216 6.3 MEDIUM Wasmtime 资源管理错误漏洞
CVE-2021-39219 6.3 MEDIUM Wasmtime 代码问题漏洞

IV. Related Vulnerabilities

V. Comments for CVE-2021-39218

暂无评论


发表评论