CWE-768: Incorrect Short Circuit Evaluation
1 CVE has CWE-768 as its primary weakness. 0 of them are in the CISA KEV catalog. The highest EPSS score among them is 0.156%.
The product contains a conditional statement with multiple logical expressions in which one of the non-leading expressions may produce side effects.
If the first condition of an or statement is assumed to be true under normal circumstances, or if the first condition of an and statement is assumed to be false, then any subsequent conditional may contain its own logic errors that are not detected during code review or testing.
Child of CWE-705: Incorrect Control Flow Scoping
Mitigations
- Implementation: Minimizing the number of statements in a conditional that produce side effects will help to prevent the likelihood of short circuit evaluation to alter control flow in an unexpected way.
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cwe_lookup/CWE-768'curl 'https://api.contrastcyber.com/cve_search?cwe_id=CWE-768'
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).