Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CWE-705 (控制流范围控制不正确) — Vulnerability Class 2

2 vulnerabilities classified as CWE-705 (控制流范围控制不正确). AI Chinese analysis included.

CWE-705, Incorrect Control Flow Scoping, is a logic error where a software component fails to properly return control to the expected location after completing a task or handling an exception. This weakness typically arises from improper use of return statements, exception handling, or loop breaks, causing execution to jump to unintended code paths. Attackers exploit this by manipulating input to trigger specific conditions, allowing them to bypass security checks, execute arbitrary code, or cause denial of service by forcing the application into an unstable state. To prevent this, developers must rigorously validate control flow structures, ensuring that every conditional branch and exception handler explicitly returns control to the correct scope. Using structured programming practices, static analysis tools, and comprehensive unit testing helps identify scoping errors early, maintaining the integrity of the execution flow and preventing unauthorized state transitions.

MITRE CWE Description
The product does not properly return control flow to the proper location after it has completed a task or detected an unusual condition.
Common Consequences (1)
OtherAlter Execution Logic, Other
Examples (2)
The following example attempts to resolve a hostname.
protected void doPost (HttpServletRequest req, HttpServletResponse res) throws IOException { String ip = req.getRemoteAddr(); InetAddress addr = InetAddress.getByName(ip); ... out.println("hello " + addr.getHostName()); }
Bad · Java
This code queries a server and displays its status when a request comes from an authorized IP address.
$requestingIP = $_SERVER['REMOTE_ADDR']; if(!in_array($requestingIP,$ipAllowList)){ echo "You are not authorized to view this page"; http_redirect($errorPageURL); } $status = getServerStatus(); echo $status; ...
Bad · PHP
CVE IDTitleCVSSSeverityPublished
CVE-2026-3449 @tootallnate/once 安全漏洞 — @tootallnate/once 3.3 Low2026-03-03
CVE-2025-53856 TMM vulnerability — BIG-IP 7.5 High2025-10-15

Vulnerabilities classified as CWE-705 (控制流范围控制不正确) represent 2 CVEs. The CWE taxonomy describes the weakness; review individual CVEs for product-specific impact.