CWE-20 is MITRE’s category for improper input validation. It describes software that accepts data without checking format, length, type, range, or context before using it. That sounds basic, but it is one of the most common root causes of serious security bugs because many security decisions depend on trusted input.
In practice, CWE-20 can lead to injection, buffer errors, logic bypasses, authentication flaws, and account takeover when crafted data reaches sensitive code paths. Defenders look for strong allowlist validation, centralized parsing, safe defaults, and rejection of unexpected values before any trust decision is made. Fuzzing, negative testing, and code review help find these weaknesses early, especially in network-facing services, desktop clients, and APIs where unauthenticated input may be processed first.


