Export
The link always opens the latest version of this page.
Ask an AI about it
Open in ChatGPTA new chat that reads this entry from the site Open in ClaudeThe same, in ClaudeShare the link instead of a file, and they will always see the latest version.
Files are a snapshot of today. The live page has anything newer.
CWE-20: Improper Input Validation
The product does not validate or incorrectly validates input that affects control flow or data handling.
Definition
CWE-20 is a weakness in which a product fails to validate or incorrectly validates input that affects control flow or data handling.
Consequences
Improper input validation enables multiple attack vectors and failure modes:
-
Injection attacks: Applications become susceptible to SQL injection and cross-site scripting when user-controlled input is not properly sanitized 1
-
Denial of service: Unvalidated input can block legitimate users from accessing services 2 3
-
Memory safety violations: Invalid input can trigger out-of-bounds reads 4 5, exposing sensitive data or causing crashes
-
Code execution: In low-confidence scenarios, improper input validation may lead to arbitrary code execution
-
Type safety violations: In .NET environments, unvalidated input can result in unsafe type instantiation
-
Kernel-level failures: Operating system kernels accepting invalid CPU numbers can trigger paging faults during memory map updates
Significance
Input validation is a foundational security control. Because user-supplied data often influences critical decisions—including which code executes, how data is processed, and what resources are accessed—validation failures create broad attack surface. The weakness is particularly dangerous in contexts where input directly affects control flow or memory operations, where even minor validation gaps can escalate to severe consequences like code execution or privilege escalation.
In the news 5
- How Are You Handling Vibe Coding Security? · HackerNoon
- Google Workspace thinks my domain is an email provider (2025) · Hacker News (YC)
- Siemens WTV676 and WTV776 · CISA Advisories
- ZDI-26-698: Linux Kernel NTFS3 Out-Of-Bounds Read Information Disclosure Vulnerability · Zero Day Initiative
- ZDI-26-416: Microsoft Hyper-V netvsc Out-Of-Bounds Read Local Privilege Escalation Vulnerability · Zero Day Initiative
Sign in for the full story cards: summaries, tags and starring.