CWE-382: J2EE Bad Practices: Use of System.exit()
A J2EE application uses System.exit().
Last updated
Overview
CWE-382 (J2EE Bad Practices: Use of System.exit()) is a variant-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.
Real-world CVEs
1 recorded CVE is caused by CWE-382 (J2EE Bad Practices: Use of System.exit()). 1 new CWE-382 CVE has been recorded so far in 2026.
Common consequences
What can happen when CWE-382 is exploited.
DoS: Crash, Exit, or Restart
Affects: Availability
Access to a function that can shut down the application is an avenue for Denial of Service (DoS) attacks, since use of System.exit() also shuts down the application's container.
How it happens
When it is introduced
Typically introduced during these phases of the software lifecycle.