CWE-705: Incorrect Control Flow Scoping
5 CVEs have CWE-705 as their primary weakness. 0 of them are in the CISA KEV catalog. The highest EPSS score among them is 0.550%.
The product does not properly return control flow to the proper location after it has completed a task or detected an unusual condition.
Child of CWE-691: Insufficient Control Flow Management
Observed examples
- CVE-2023-21087: Java code in a smartphone OS can encounter a boot loop due to an uncaught exception
- CVE-2014-1266: Chain: incorrect goto in Apple SSL product bypasses certificate validation, allowing Adversary-in-the-Middle (AITM) attack (Apple goto fail bug). CWE-705 (Incorrect Control Flow Scoping) -> CWE-561 (Dead Code) -> CWE-295 (Improper Certificate Validation) -> CWE-393 (Return of Wrong Status Code) -> CWE-300 (Channel Accessible by Non-Endpoint). The code's whitespace indentation did not reflect the actual control flow (CWE-1114) and did not explicitly delimit the block (CWE-483), which could have made it more difficult for human code auditors to detect the vulnerability.
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cwe_lookup/CWE-705'curl 'https://api.contrastcyber.com/cve_search?cwe_id=CWE-705'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).