CWE-584: Return Inside Finally Block
The code has a return statement inside a finally block.
Last updated
Overview
CWE-584 (Return Inside Finally Block) is a base-level software weakness catalogued by MITRE in the Common Weakness Enumeration (CWE). It describes a recurring type of mistake that can lead to exploitable security vulnerabilities.
Common consequences
What can happen when CWE-584 is exploited.
Alter Execution Logic, Unexpected State, Varies by Context
Affects: Other
With some languages, this will cause any thrown exception in the try block to be discarded.
How it happens
When it is introduced
Typically introduced during these phases of the software lifecycle.
Applies to
Languages
How to prevent it
Practical mitigations for CWE-584, grouped by where in the lifecycle they apply.