Unicorn with delicious cookie
Our website uses cookies to enhance your browsing experience.
Accept
to the top
>
>
>
Classification of PVS-Studio warnings a…

Classification of PVS-Studio warnings according to 2023 CWE Top 25 Most Dangerous Software Weaknesses

CWE Top 25 Most Dangerous Software Weaknesses is a list of the most dangerous and common software weaknesses. These software weaknesses are dangerous because attackers can easily find and exploit them. They can use them to disrupt application operations, steal data, or even completely take full control of a system. CWE Top 25 Most Dangerous Software Weaknesses is a valuable community resource. It assists developers, testers, users, project managers, security researchers, and educators. They may use this list to get an idea of the most common and dangerous security defects that exist today.

Below is a table showing how PVS-Studio diagnostic rules divided by programming languages comply with the CWE Top 25 Most Dangerous Software Weaknesses 2023 list.

PVS-Studio has diagnostic rules for detecting 16/25 (64%) of the listed vulnerability types.

#

CWE ID

Name

PVS-Studio Diagnostics

1

CWE‑787

Out-of-bounds Write

C++: V512, V557, V582, V645

C#: V3106, V3199

Java: V6025

2

CWE‑79

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

C#: V5610

3

CWE‑89

Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

C#: V5608

Java: V5309

4

CWE‑416

Use After Free

C++: V623, V723, V758, V774, V1017

5

CWE‑78

Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

C++: V1010, V5009

C#: V5616

Java: V5310

6

CWE‑20

Improper Input Validation

C++: V739, V781, V1010, V1024, V1111, V5009

7

CWE‑125

Out-of-bounds Read

C++: V512, V557, V582

C#: V3106, V3199

Java: V6025

8

CWE‑22

Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

C#: V5609, V5628

9

CWE‑352

Cross-Site Request Forgery (CSRF)

Coming in the future.

10

CWE‑434

Unrestricted Upload of File with Dangerous Type

Coming in the future.

11

CWE‑862

Missing Authorization

Coming in the future.

12

CWE‑476

NULL Pointer Dereference

C++: V522, V595, V664, V713, V1004

C#: V3027, V3042, V3080, V3095, V3100, V3125, V3145, V3146, V3148, V3149, V3153, V3168, V3195

Java: V6008, V6060, V6093

13

CWE‑287

Improper Authentication

Coming in the future.

14

CWE‑190

Integer Overflow or Wraparound

C++: V629, V658, V673, V683, V1026, V1028, V1081, V1083, V1085, V5004, V5005, V5006, V5007, V5010, V5011

C#: V3113, V3200, V3217

Java: V5308, V6105, V6117

15

CWE‑502

Deserialization of Untrusted Data

C#: V5611

16

CWE‑77

Improper Neutralization of Special Elements used in a Command ('Command Injection')

C#: V5616

Java: V5310

17

CWE‑119

Improper Restriction of Operations within the Bounds of a Memory Buffer

C++: V512, V557, V582, V769, V783, V1004, V1086

18

CWE‑798

Use of Hard-coded Credentials

C++: V5013

C#: V5601

Java: V5305

19

CWE‑918

Server-Side Request Forgery (SSRF)

C#: V5618

20

CWE‑306

Missing Authentication for Critical Function

Coming in the future.

21

CWE‑362

Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')

Coming in the future.

22

CWE‑269

Improper Privilege Management

Coming in the future.

23

CWE‑94

Improper Control of Generation of Code ('Code Injection')

Coming in the future.

24

CWE‑863

Incorrect Authorization

Coming in the future.

25

CWE‑276

Incorrect Default Permissions

Java: V5318

close form

Fill out the form in 2 simple steps below:

Your contact information:

Step 1
Congratulations! This is your promo code!

Desired license type:

Step 2
Team license
Enterprise license
** By clicking this button you agree to our Privacy Policy statement
close form
Request our prices
New License
License Renewal
--Select currency--
USD
EUR
* By clicking this button you agree to our Privacy Policy statement

close form
Free PVS‑Studio license for Microsoft MVP specialists
* By clicking this button you agree to our Privacy Policy statement

close form
To get the licence for your open-source project, please fill out this form
* By clicking this button you agree to our Privacy Policy statement

close form
I want to join the test
* By clicking this button you agree to our Privacy Policy statement

close form
check circle
Message submitted.

Your message has been sent. We will email you at


If you do not see the email in your inbox, please check if it is filtered to one of the following folders:

  • Promotion
  • Updates
  • Spam