Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CWE-20 (输入验证不恰当) — Vulnerability Class 3320

3320 vulnerabilities classified as CWE-20 (输入验证不恰当). AI Chinese analysis included.

CWE-20 represents a critical software weakness where applications fail to properly verify the integrity, format, or type of incoming data before processing it. This oversight allows attackers to inject malicious payloads, such as SQL injection strings or cross-site scripting code, which can bypass security controls and compromise system integrity. Exploitation typically occurs when untrusted data from external sources, like user forms or network packets, is treated as executable code or trusted input. To mitigate this risk, developers must implement rigorous input validation strategies, including strict type checking, length constraints, and allow-listing acceptable characters. Additionally, employing parameterized queries and output encoding ensures that even if validation fails, the injected data remains inert, thereby preserving application security and preventing unauthorized execution or data exposure.

MITRE CWE Description
The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. Input validation is a frequently-used technique for checking potentially dangerous inputs in order to ensure that the inputs are safe for processing within the code, or when communicating with other components. Input can consist of: raw data - strings, numbers, parameters, file contents, etc. metadata - information about the raw data, such as headers or size Data can be simple or structured. Structured data can be composed of many nested layers, composed of combinations of metadata and raw data, with other simple or structured data. Many properties of raw data or metadata may need to be validated upon entry into the code, such as: specified quantities such as size, length, frequency, price, rate, number of operations, time, etc. implied or derived quantities, such as the actual size of a file instead of a specified size indexes, offsets, or positions into more complex data structures symbolic keys or other elements into hash tables, associative arrays, etc. well-formedness, i.e. syntactic correctness - compliance with expected syntax lexical token correctness - compliance with rules for what is treated as a token specified or derived type - the actual type of the input (or what the input appears to be) consistency - between individual data el…
Common Consequences (3)
AvailabilityDoS: Crash, Exit, or Restart, DoS: Resource Consumption (CPU), DoS: Resource Consumption (Memory)
An attacker could provide unexpected values and cause a program crash or arbitrary control of resource allocation, leading to excessive consumption of resources such as memory and CPU.
ConfidentialityRead Memory, Read Files or Directories
An attacker could read confidential data if they are able to control resource references.
Integrity, Confidentiality, AvailabilityModify Memory, Execute Unauthorized Code or Commands
An attacker could use malicious input to modify data or possibly alter control flow in unexpected ways, including arbitrary command execution.
Mitigations (5)
Architecture and DesignConsider using language-theoretic security (LangSec) techniques that characterize inputs using a formal language and build "recognizers" for that language. This effectively requires parsing to be a distinct layer that effectively enforces a boundary between raw input and internal data representations, instead of allowing parser code to be scattered throughout the program, where it could be subjec…
Architecture and DesignUse an input validation framework such as Struts or the OWASP ESAPI Validation API. Note that using a framework does not automatically address all input validation problems; be mindful of weaknesses that could arise from misusing the framework itself (CWE-1173).
Architecture and Design, ImplementationUnderstand all the potential areas where untrusted inputs can enter the product, including but not limited to: parameters or arguments, cookies, anything read from the network, environment variables, reverse DNS lookups, query results, request headers, URL components, e-mail, files, filenames, databases, and any external systems that provide data to the application. Remember that such inputs may b…
ImplementationAssume all input is malicious. Use an "accept known good" input validation strategy, i.e., use a list of acceptable inputs that strictly conform to specifications. Reject any input that does not strictly conform to specifications, or transform it into something that does. When performing input validation, consider all potentially relevant properties, including length, type of input, the full range…
Effectiveness: High
Architecture and DesignFor any security checks that are performed on the client side, ensure that these checks are duplicated on the server side, in order to avoid CWE-602. Attackers can bypass the client-side checks by modifying values after the checks have been performed, or by changing the client to remove the client-side checks entirely. Then, these modified values would be submitted to the server. Even though clien…
Examples (2)
This example demonstrates a shopping interaction in which the user is free to specify the quantity of items to be purchased and a total is calculated.
... public static final double price = 20.00; int quantity = currentUser.getAttribute("quantity"); double total = price * quantity; chargeUser(total); ...
Bad · Java
This example asks the user for a height and width of an m X n game board with a maximum dimension of 100 squares.
... #define MAX_DIM 100 ... /* board dimensions */ int m,n, error; board_square_t *board; printf("Please specify the board height: \n"); error = scanf("%d", &m); if ( EOF == error ){ die("No integer passed: Die evil hacker!\n"); } printf("Please specify the board width: \n"); error = scanf("%d", &n); if ( EOF == error ){ die("No integer passed: Die evil hacker!\n"); } if ( m > MAX_DIM || n > MAX_DIM ) { die("Value too large: Die evil hacker!\n"); } board = (board_square_t*) malloc( m * n * sizeof(board_square_t)); ...
Bad · C
CVE IDTitleCVSSSeverityPublished
CVE-2026-26063 CediPay Affected by Improper Input Validation in Payment Processing — CediPay 8.2AIHighAI2026-02-19
CVE-2025-13587 Two Factor (2FA) Authentication via Email <= 1.9.8 - Two-Factor Authentication Bypass via token — Two Factor (2FA) Authentication via Email 6.5 Medium2026-02-19
CVE-2026-24734 Apache Tomcat Native, Apache Tomcat: OCSP revocation bypass — Apache Tomcat Native 7.5AIHighAI2026-02-17
CVE-2026-24733 Apache Tomcat: Security constraint bypass with HTTP/0.9 — Apache Tomcat 7.5AIHighAI2026-02-17
CVE-2025-66614 Apache Tomcat: Client certificate verification bypass due to virtual host mapping — Apache Tomcat 9.8AICriticalAI2026-02-17
CVE-2026-2391 qs's arrayLimit bypass in comma parsing allows denial of service 3.7 Low2026-02-12
CVE-2026-21229 Power BI Remote Code Execution Vulnerability — Power BI Report Server 8.0 High2026-02-10
CVE-2026-21247 Windows Hyper-V Remote Code Execution Vulnerability — Windows 10 Version 1607 7.3 High2026-02-10
CVE-2026-21258 Microsoft Excel Information Disclosure Vulnerability — Microsoft 365 Apps for Enterprise 5.5 Medium2026-02-10
CVE-2026-25892 Adminer has an Unauthenticated Persistent DoS via Array Injection in ?script=version Endpoint — adminer 7.5 High2026-02-09
CVE-2026-25631 Domain allowlist bypass enables credential exfiltration — n8n 6.5AIMediumAI2026-02-06
CVE-2026-25723 Claude Code Vulnerable to Command Injection via Piped sed Command Bypasses File Write Restrictions — claude-code 9.4AICriticalAI2026-02-06
CVE-2026-25722 Claude Code Vulnerable to Command Injection via Directory Change Bypasses Write Protection — claude-code 7.5AIHighAI2026-02-06
CVE-2025-15566 ingress-nginx auth-proxy-set-headers nginx configuration injection — ingress-nginx 8.8 High2026-02-06
CVE-2025-12131 Truncated 802.15.4 packet leads to denial of service — Simplicity SDK 6.5AIMediumAI2026-02-05
CVE-2026-25514 FacturaScripts has SQL Injection vulnerability in Autocomplete Actions — facturascripts 6.5AIMediumAI2026-02-04
CVE-2026-24512 ingress-nginx auth-method nginx configuration injection — ingress-nginx 8.8 High2026-02-03
CVE-2026-1580 ingress-nginx auth-method nginx configuration injection — ingress-nginx 8.8 High2026-02-03
CVE-2026-22220 Improper Input Validation Leading to DoS on TP-Link Archer BE230 — Archer BE230 v1.2 4.5AIMediumAI2026-02-03
CVE-2026-24936 An improper input validation vulnerability was found in ADM while joining a AD Domain. — ADM 9.8AICriticalAI2026-02-03
CVE-2026-25128 fast-xml-parser has RangeError DoS Numeric Entities Bug — fast-xml-parser 7.5 High2026-01-30
CVE-2024-4027 Undertow: outofmemoryerror in httpservletrequestimpl.getparameternames() can cause remote dos attacks — OpenShift Serverless 7.5 High2026-01-30
CVE-2026-25126 PolarLearn's unvalidated vote direction allows vote count manipulation — PolarLearn 7.1 High2026-01-29
CVE-2026-25117 pwn.college DOJO vulnerable to sandbox escape leading to arbitrary javascript execution — dojo 7.6AIHighAI2026-01-29
CVE-2025-15545 Insufficient Backup File Upload Input Validation on TP-Link Archer RE605X — Archer RE605X 7.8AIHighAI2026-01-29
CVE-2026-23570 Log timestamp tampering vulnerability in Content Distribution Service — DEX 6.5 Medium2026-01-29
CVE-2026-23566 Log Injection in Content Distribution Service UDP Handler — DEX 6.5 Medium2026-01-29
CVE-2026-23571 Command Injection in 1E-Nomad-RunPkgStatusRequest Instruction in TeamViewer DEX — DEX 6.8 Medium2026-01-29
CVE-2026-24856 iccDEV has UB runtime error in <icTagTypeSignature> — iccDEV 7.8 High2026-01-28
CVE-2025-59895 Remote denial-of-service (DoS) vulnerability in Sync Breeze Enterprise Server — Sync Breeze Enterprise Server 7.5AIHighAI2026-01-28

Vulnerabilities classified as CWE-20 (输入验证不恰当) represent 3320 CVEs. The CWE taxonomy describes the weakness; review individual CVEs for product-specific impact.