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

目标: 1000 元 · 已筹: 1359 元

100%

CWE-1265 类漏洞列表 2

CWE-1265 类弱点 2 条 CVE 漏洞汇总,含 AI 中文分析。

MITRE CWE 官方描述
The product invokes code that is believed to be reentrant, but the code performs a call that unintentionally produces a nested invocation of the non-reentrant code. In a complex product, a single function call may lead to many different possible code paths, some of which may involve deeply nested calls. It may be difficult to foresee all possible code paths that could emanate from a given function call, even if that call is assumed to be reentrant. In some systems, an external actor can manipulate inputs to the system and thereby achieve a wide range of possible control flows. This is frequently a concern in products that execute scripts from untrusted sources. Examples of such products are web browsers and PDF readers. A weakness is present when one of the possible code paths resulting from a function call alters program state that the original caller assumes to be unchanged during the call.
常见影响 (1)
Integrity Unexpected State
Exploitation of this weakness can leave the application in an unexpected state and cause variables to be reassigned before the first invocation has completed. This may eventually result in memory corruption or unexpected code execution.
缓解措施 (2)
Architecture and Design When architecting a system that will execute untrusted code in response to events, consider executing the untrusted event handlers asynchronously (asynchronous message passing) as opposed to executing them synchronously at the time each event fires. The untrusted code should execute at the start of the next iteration of the thread's message loop. In this way, calls into non-reentrant code are stri…
Effectiveness: High
Implementation Make sure the code (e.g., function or class) in question is reentrant by not leveraging non-local data, not modifying its own code, and not calling other non-reentrant code.
Effectiveness: High
代码示例 (2)
The implementation of the Widget class in the following C++ code is an example of code that is not designed to be reentrant. If an invocation of a method of Widget inadvertently produces a second nested invocation of a method of Widget, then data member backgroundImage may unexpectedly change during execution of the outer call.
class Widget { private: Image* backgroundImage; public: void click() { if (backgroundImage) { backgroundImage->click(); } } void changeBackgroundImage(Image* newImage) { if (backgroundImage) { delete backgroundImage; } backgroundImage = newImage; } } class Image { public: void click() { scriptEngine->fireOnImageClick(); /* perform some operations using "this" pointer */ } }
Bad · C++
This is another example of C++ code that is not designed to be reentrant.
class Request { private: std::string uri; /* ... */ public: void setup(ScriptObject* _uri) { this->uri = scriptEngine->coerceToString(_uri); /* ... */ } void send(ScriptObject* _data) { Credentials credentials = GetCredentials(uri); std::string data = scriptEngine->coerceToString(_data); doSend(uri, credentials, data); } }
Bad · C++
CVE ID 标题 CVSS 风险等级 Published
CVE-2026-119141 Wasmtime 46.0.0 前及 49.0.0 前拒绝服务漏洞 — wasmtime 5.3 Medium 2026-10-29
CVE-2026-119136 Wasmtime 异步入口点强制绕过漏洞 — wasmtime 4.8 Medium 2026-10-29

CWE-1265 是常见的弱点类别,本平台收录该类弱点关联的 2 条 CVE 漏洞。