Skip to content

CWE-670: Always-Incorrect Control Flow Implementation

Class

The code contains a control flow path that does not reflect the algorithm that the path is intended to implement, leading to incorrect behavior any time this path is navigated.

This weakness captures cases in which a particular code segment is always incorrect with respect to the algorithm that it is implementing. For example, if a C programmer intends to include multiple statements in a single block but does not include the enclosing braces (CWE-483), then the logic is always incorrect. This issue is in contrast to most weaknesses in which the code usually behaves correctly, except when it is externally manipulated in malicious ways.

Consequences

  • Other: Other, Alter Execution Logic

Recent advisories

  • GHSA-vg88-3v92-rjx2 — Vyper: Return inside for loop more than 1 level deep
  • GHSA-w5hq-g745-h8pq — uuid: Missing buffer bounds check in v3/v5/v6 when buf is provided
  • GHSA-q49f-xg75-m9xw — Wasmtime has host panic when Winch compiler executes `table.fill`
  • GHSA-9f4w-67g7-mqwv — OpenClaw: Endpoint persists after trust decline, leaking gateway credentials
  • GHSA-v4wr-j3w6-mxqc — tough terminating targets role delegations are not respected
  • GHSA-vgf2-gvx8-xwc3 — Vyper Does Not Check the Success of Certain Precompile Calls
  • GHSA-hm3c-93pg-4cxw — In Gradio, the `enable_monitoring` flag set to `False` does not disable monitoring
  • GHSA-q8hx-mm92-4wvg — wasmtime has a runtime crash when combining tail calls with trapping imports
  • GHSA-vr26-jcq5-fjj8 — Denial of service in quinn-proto when using `Endpoint::retry()`
  • CVE-2024-32896 — there is a possible way to bypass due to a logic error in the code.
  • GHSA-4vc8-pg5c-vg4x — Keycloak's improper input validation allows using email as username
  • GHSA-9wx4-h78v-vm56 — Requests `Session` object does not verify requests after making first request with verify=False
  • GHSA-q9p4-hw9m-fj2v — Apollo Router vulnerable to Critical Regression In Query Plan Cache
  • GHSA-699g-q6qh-q4v8 — OpenZeppelin Contracts and Contracts Upgradeable duplicated execution of subcalls in v4.9.4
  • GHSA-gxh7-wv9q-fwfr — Electron's Content-Secrity-Policy disabling eval not applied consistently in renderers with sandbox disabled

All advisories for CWE-670

Is this in your code?

MergeHarbor checks every repository's dependencies against this database, ranks what matters by exploitability and reachability, routes it to the owning team and opens the fix pull request.

Check your repos with MergeHarbor