CWE-383: J2EE Bad Practices: Direct Use of Threads
Thread management in a Web application is forbidden in some circumstances and is always highly error prone.
Last updated
Overview
CWE-383 (J2EE Bad Practices: Direct Use of Threads) 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.
Background
Thread management in a web application is forbidden by the J2EE standard in some circumstances and is always highly error prone. Managing threads is difficult and is likely to interfere in unpredictable ways with the behavior of the application container.
Common consequences
What can happen when CWE-383 is exploited.
Quality Degradation, Varies by Context
Affects: Other
Even without interfering with the container, thread management usually leads to bugs that are hard to detect and diagnose, such as deadlock, race conditions, and other synchronization errors.
How it happens
When it is introduced
Typically introduced during these phases of the software lifecycle.
Applies to
Languages
Technologies