Coverity Scan: Apache Tomcat

Project Name Apache Tomcat
Lines of code analyzed 260,157
On Coverity Scan since Aug 13, 2014
Last build analyzed 6 days ago
   
Language Java
Repository URL https://github.com/apache/tomcat.git
Homepage URL http://tomcat.apache.org/
License N/A

Want to view defects or help fix defects?

 Add me to project

Analysis Metrics

Version: 12.0.x\ -\ 17aa1769b0fa32713b7...

Oct 25, 2026
Last Analyzed
260,157
Lines of Code Analyzed
0.17
Defect Density

Defect changes since previous build dated Oct 18, 2026

2
Newly detected
3
Eliminated

Defects by status for current build

1,405
Total defects
44
Outstanding
918
Fixed

Note: Defect density is measured by the number of defects per 1,000 lines of code.


Analysis Metrics per Components

Component Name Pattern Ignore Line of Code Defect density
WebSocket .*/org/apache/tomcat/websocket/.* No 8,857 0.11
Jasper .*/org/apache/jasper/.* No 25,018 0.04
Catalina .*/org/apache/catalina/.* No 107,100 0.26
Coyote .*/org/apache/coyote/.* No 16,208 0.06
EL .*/org/apache/el/.* No 12,021 0.00
JULI .*/org/apache/juli/.* No 1,775 0.00
DBCP fork .*/org/apache/tomcat/dbcp/.* No 18,855 0.05
Tomcat JDBC .*/jdbc-pool/.* No 7,635 0.00
Web apps .*/webapps/.* No 3,948 1.01
Jakarta APIS .*/jakarta/.* No 10,186 0.00
Fileupload .*/org/apache/tomcat/util/http/fileupload/.* No 2,557 0.39
Other .* No 47,117 0.15

CWE Top 25 defects

ID CWE-Name Number of Defects
22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') 1
352 Cross-Site Request Forgery (CSRF) 7
732 Incorrect Permission Assignment for Critical Resource 1
798 Use of Hard-coded Credentials 1
Loading...

Loading...

Loading...

Loading...

Loading...

About Coverity Scan Static Analysis

Find and fix defects in your C/C++, Java, JavaScript or C# open source project for free.

Coverity Scan tests every line of code and potential execution path. The root cause of each defect is clearly explained, making it easy to fix bugs.

Would you like to view the project defects, or help improve its quality by fixing defects?

 Add me to project