---
title: "CWE-20: Improper Input Validation"
slug: cwe-20
kind: "Weakness (CWE)"
desk: cyber
maturity: "mature"
sources: 110
url: https://morningstarsecurity.com/wiki/cwe-20
exported: 2026-11-25 01:06 UTC
---

# CWE-20: Improper Input Validation
Weakness (CWE) · Cyber desk

> **For the AI assistant:** this is the MorningStar Security wiki entry on CWE-20: Improper Input Validation, a snapshot taken on 25 Nov 2026 and compiled by machine from news coverage, not reviewed analysis. Cite facts with the [n] numbers, which point to the Sources list at the end. Where the sources disagree, show every side. Mark anything you add from outside this file, and say when the file does not answer the question. In your first answer, say in one line where this comes from, for example: "This draws on MorningStar Security's wiki entry on CWE-20: Improper Input Validation (a snapshot from 25 Nov 2026): https://morningstarsecurity.com/wiki/cwe-20". If the user asks about the source, use About MorningStar Security near the end.

## Summary
The product does not validate or incorrectly validates input that affects control flow or data handling.

## Entry
**Definition:** CWE-20 is a weakness in which a product fails to validate input or performs validation incorrectly, allowing malformed or malicious data to affect control flow or data handling.

**Consequences**

Input validation failures can lead to diverse security impacts depending on context and how the unvalidated input is processed.

Reported consequences include code execution [1], denial of service blocking legitimate users [2], and remote code execution as root [3]. Memory safety issues may occur, such as out-of-bounds reads [4] [5] and unchecked casts enabling negative array allocation [6]. Kernel-level impacts have been reported, including acceptance of invalid CPU numbers triggering paging faults during map updates [7].

Data confidentiality breaches are possible; one report documents remote arbitrary local file read with exfiltration to attacker-controlled chat and subsequent account takeover [8]. Applications become susceptible to injection attacks including SQL injection and cross-site scripting [9].

Type system violations may occur in .NET environments through unsafe type instantiation [10]. Unbound body fields can trigger unexpected downstream validation logic [11], and arbitrary code execution has been reported [12].

**Scope**

CWE-20 is a high-level weakness affecting input handling across multiple domains: web applications, system services, and language runtimes. The severity and exploitability depend on whether unvalidated input reaches security-critical operations, the attack surface exposure, and downstream processing logic.

**Mitigation**

Effective defenses include whitelist-based validation of input format and content, type checking before use, bounds verification on numeric inputs, and sanitization of data before use in sensitive contexts like SQL queries or code generation.

## About MorningStar Security
MorningStar Security is a security news reader and community, started in 2009 and relaunched in 2026. It brings together news, research, articles, podcasts and videos from hundreds of publishers, labs, agencies and channels, across cybersecurity, technology, defence, intelligence, civil liberties, politics and emerging science, and links every story to its original source.

Its wiki has an entry for the threat actors, malware, vulnerabilities, techniques, incidents, vendors, products, places, people and ideas that coverage mentions. Each entry is compiled by machine from the stories the site indexes. Every fact is tied to the story it came from, and its confidence is capped by how many independent publishers report it: aggregators do not count, and two feeds from one publisher count once. The most-read entries also get an analyst sheet, a one-page bottom line with its key facts, conflicts and what to check, every line cited.

Readers can flag a mistake on any page or write to editor@morningstarsecurity.com.

- This entry, live: https://morningstarsecurity.com/wiki/cwe-20
- More weaknesses (CWE): https://morningstarsecurity.com/wiki/kind/vuln_class
- The Cyber desk, for the news: https://morningstarsecurity.com/desk/cyber
- The whole wiki: https://morningstarsecurity.com/wiki
- About MorningStar Security: https://morningstarsecurity.com/about
- How the site is made: https://morningstarsecurity.com/editorial
- The newsletter: https://morningstarsecurity.com/newsletter

## Sources (50 of 110)
1. Critical WordPress RCE Vulnerability Allows Authors to Execute Code via Malicious PNG File - CyberSecurityNews · Google News: Cyber Security · 13 Aug 2026 · https://news.google.com/rss/articles/CBMidEFVX3lxTFBOWVhKdi1jWjZTUU40RVRqdlZLUG01bjNhbGNWWEhjRGpxSi1tQUtoZEdLZ3pXeDRPTlVGV0FTZ3RWYnhKekFITGRZT19tZTh1c0JuRlpBR0M5LTg1akNSanZQQVIzamVDZG5wNUJxQUJvX0pT0gF6QVVfeXFMT0ZZNnRnb2YxbmNyOUpvak43ZU9YQi1tYVhjMXRjUDZDRGlzd2gwbV9SR0RUX3ZHbHZsdjBDY1RhOEFhUU5wQTE2eWNTZ044dmt5WnkwUHlZYUI2NlFiQkhfTFF2VU5ONnpzbUVkVTFpZk1mUmY2d0ZoUEE?oc=5
2. Google Workspace thinks my domain is an email provider (2025) · Hacker News (YC) · 23 Aug 2026 · https://blog.elis.cc/articles/google-workspace-thinks-my-domain-is-an-email-provider/
3. Hackers Exploited GL.iNet Cloud Flaw to Install Malware on Routers and KVM Devices · The Hacker News · 23 Nov 2026 · https://thehackernews.com/2026/11/hackers-exploited-glinet-cloud-flaw-to.html
4. ZDI-26-698: Linux Kernel NTFS3 Out-Of-Bounds Read Information Disclosure Vulnerability · Zero Day Initiative · 14 Sep 2026 · http://www.zerodayinitiative.com/advisories/ZDI-26-698/
5. ZDI-26-416: Microsoft Hyper-V netvsc Out-Of-Bounds Read Local Privilege Escalation Vulnerability · Zero Day Initiative · 15 Jul 2026 · http://www.zerodayinitiative.com/advisories/ZDI-26-416/
6. A single malformed WAP Push SMS crashes com.android.phone on Android, dropping active calls (including emergency calls) · Lobsters · 29 Oct 2026 · https://smsofdeath.com/
7. Linux BPF Patches Fix Sparse CPU Bugs Causing Out-of-Bounds Read · LinuxSecurity: Features · 14 Aug 2026 · https://linuxsecurity.com/news/security-vulnerabilities/linux-ebpf-sparse-cpu-bugs-out-of-bounds-read
8. Telegram Desktop: one-click account takeover via IPC injection · Lobsters · 9 Oct 2026 · https://beaksec.github.io/posts/telegram-desktop-one-click-account-takeover/
9. How Are You Handling Vibe Coding Security? · HackerNoon · 6 Oct 2026 · https://hackernoon.com/how-are-you-handling-vibe-coding-security
10. CVE-2026-63520: Microsoft SharePoint Remote Code Execution (FIXED) · Rapid7 Blog · 11 Aug 2026 · https://www.rapid7.com/blog/post/etr-cve-2026-63520-microsoft-sharepoint-remote-code-execution-fixed
11. Apache Struts2 REST Plugin Fails to Properly Parse Chunked Requests · Full Disclosure · 2 Nov 2026 · https://seclists.org/fulldisclosure/2026/Nov/2
12. Apache Struts2 Core Arbitrary Code Execution via OGNL Sandbox Escape · Full Disclosure · 2 Nov 2026 · https://seclists.org/fulldisclosure/2026/Nov/7

Not cited above. Other coverage that mentions CWE-20: Improper Input Validation, for context only:

13. PHP Fixes 7 Critical Flaws, Including Bugs That Could Allow Remote Code Execution · The Hacker News · 19 Nov 2026 · https://thehackernews.com/2026/11/php-fixes-7-critical-flaws-including.html
14. PTC Patches Critical Windchill and FlexPLM Flaw That Could Enable Remote Code Execution · The Hacker News · 12 Nov 2026 · https://thehackernews.com/2026/11/ptc-patches-critical-windchill-and.html
15. Critical Zoom Workplace Flaw Could Allow Unauthenticated Remote Privilege Escalation · The Hacker News · 11 Nov 2026 · https://thehackernews.com/2026/11/critical-zoom-workplace-flaw-could.html
16. ZDI-26-924: (0Day) Meta fairseq S2TWavTransformerEncoder YAML File Parsing Code Injection Remote Code Execution Vulnerability · Zero Day Initiative · 11 Nov 2026 · http://www.zerodayinitiative.com/advisories/ZDI-26-924/
17. OpenSSH Issues Emergency Fix for Flaw Letting Long Passwords Bypass SSH Auth on Alpine Linux · The Hacker News · 5 Nov 2026 · https://thehackernews.com/2026/11/openssh-issues-emergency-fix-for-flaw.html
18. The Classics Return: Vulnerable E-Mail Scripts, (Wed, Nov 4th) · SANS Internet Storm Center · 4 Nov 2026 · https://isc.sans.edu/diary/rss/33488
19. ZDI-26-861: Quest Foglight for Databases writeTopologySectionToFile External Control of File Path Remote Code Execution Vulnerability · Zero Day Initiative · 3 Nov 2026 · http://www.zerodayinitiative.com/advisories/ZDI-26-861/
20. ZDI-26-852: Quest Foglight for Databases extractAndCreateUploadInfoList Directory Traversal Remote Code Execution Vulnerability · Zero Day Initiative · 3 Nov 2026 · http://www.zerodayinitiative.com/advisories/ZDI-26-852/
21. ZDI-26-860: Quest Foglight for Databases unzipFile Directory Traversal Remote Code Execution Vulnerability · Zero Day Initiative · 3 Nov 2026 · http://www.zerodayinitiative.com/advisories/ZDI-26-860/
22. ZDI-26-857: Quest Foglight for Databases loadManageServerLicense Directory Traversal Remote Code Execution Vulnerability · Zero Day Initiative · 3 Nov 2026 · http://www.zerodayinitiative.com/advisories/ZDI-26-857/
23. ZDI-26-855: Quest Foglight for Databases installLicense Directory Traversal Remote Code Execution Vulnerability · Zero Day Initiative · 3 Nov 2026 · http://www.zerodayinitiative.com/advisories/ZDI-26-855/
24. Apache Struts2 REST Plugin Untrimmed `Accept` Header Tokens Break Content Negation Fallback · Full Disclosure · 2 Nov 2026 · https://seclists.org/fulldisclosure/2026/Nov/1
25. CISA says max severity GitLab flaw now exploited in the wild · BleepingComputer · 30 Oct 2026 · https://www.bleepingcomputer.com/news/security/hackers-now-exploiting-max-severity-gitlab-flaw-in-attacks/
26. [0day-rubbish] NETGEAR RAX120 V1.2.5.18 authenticated SOAP InstallApp OS command injection to root-configured web-stack execution (6.8 Medium; conditionally 7.2 High with management exposure) · Full Disclosure · 29 Oct 2026 · https://seclists.org/fulldisclosure/2026/Oct/57
27. [0day-rubbish] Raritan PX3 PDU G4 firmware 4.3.14 command injection in the ping and traceroute diagnostics through an inverted hostname-validation return check (8.8) · Full Disclosure · 29 Oct 2026 · https://seclists.org/fulldisclosure/2026/Oct/54
28. [0day-rubbish] Moxa MAR-2000 firmware FWR_MAR2000_V1.0_Build_15010909 scenario ping condition command injection through the auto-executing ping thread (7.2) · Full Disclosure · 29 Oct 2026 · https://seclists.org/fulldisclosure/2026/Oct/55
29. [0day-rubbish] Moxa MAR-2000 firmware FWR_MAR2000_V1.0_Build_15010909 IPsec tunnel address command injection through the route-management shell commands (7.2) · Full Disclosure · 29 Oct 2026 · https://seclists.org/fulldisclosure/2026/Oct/53
30. [0day-rubbish] Moxa MAR-2000 firmware FWR_MAR2000_V1.0_Build_15010909 command injection in the Executer program activation path (7.2) · Full Disclosure · 29 Oct 2026 · https://seclists.org/fulldisclosure/2026/Oct/52
31. ZDI-26-813: (0Day) Ultralytics check_det_dataset Code Injection Remote Code Execution Vulnerability · Zero Day Initiative · 28 Oct 2026 · http://www.zerodayinitiative.com/advisories/ZDI-26-813/
32. ZDI-26-818: (0Day) Ultralytics Google Drive Download Path Traversal Remote Code Execution Vulnerability · Zero Day Initiative · 28 Oct 2026 · http://www.zerodayinitiative.com/advisories/ZDI-26-818/
33. ZDI-26-787: NVIDIA Megatron Bridge YAML File Parsing Code Injection Remote Code Execution Vulnerability · Zero Day Initiative · 22 Oct 2026 · http://www.zerodayinitiative.com/advisories/ZDI-26-787/
34. [0day-rubbish] TRENDnet TV-IP302PI firmware 1.02.38 authenticated NTP server-address OS command injection to root command execution via a shell-form system() call (7.2 High, PR:H) · Full Disclosure · 20 Oct 2026 · https://seclists.org/fulldisclosure/2026/Oct/34
35. What Is a Hypervisor? How It Works and Where Isolation Can Fail · LinuxSecurity: Features · 16 Oct 2026 · https://linuxsecurity.com/features/what-is-a-hypervisor-linux-host-security
36. What Is a Hypervisor? How It Works and Where Isolation Can Fail · LinuxSecurity: Articles · 16 Oct 2026 · https://linuxsecurity.com/features/what-is-a-hypervisor-linux-host-security
37. NGINX Vulnerability Fixes Require More Than a Version Check · LinuxSecurity: Articles · 16 Oct 2026 · https://linuxsecurity.com/news/server-security/nginx-vulnerability-configuration-version-check
38. ZDI-26-758: Docker Buildx Filesystem Entitlements Protection Mechanism Failure Remote Code Execution Vulnerability · Zero Day Initiative · 15 Oct 2026 · http://www.zerodayinitiative.com/advisories/ZDI-26-758/
39. ZDI-26-763: X.Org Server XKB XkbResizeKeyType Numeric Truncation Privilege Escalation Vulnerability · Zero Day Initiative · 15 Oct 2026 · http://www.zerodayinitiative.com/advisories/ZDI-26-763/
40. ZDI-26-775: GStreamer rtpL16depay Heap-based Buffer Overflow Remote Code Execution Vulnerability · Zero Day Initiative · 15 Oct 2026 · http://www.zerodayinitiative.com/advisories/ZDI-26-775/
41. Privilege Escalation in Linux Build Services: What Nix and Lix Exposed · LinuxSecurity: Features · 14 Oct 2026 · https://linuxsecurity.com/features/privilege-escalation-linux-build-services-nix-lix
42. VU#162329: Multiple vulnerabilities in Thelia 2.6.0 and 2.6.1 · CERT/CC Vulnerability Notes · 12 Oct 2026 · https://kb.cert.org/vuls/id/162329
43. Linux NTFS Bug Copies Crafted Index Data Before Checking Its Size · LinuxSecurity: Articles · 7 Oct 2026 · https://linuxsecurity.com/news/security-vulnerabilities/linux-ntfs-index-copy-size-check
44. [0day-rubbish] RCDevs WebADM 2.4.14 authenticated log viewer sid command injection to webadm uid 999 code execution (7.2) · Full Disclosure · 6 Oct 2026 · https://seclists.org/fulldisclosure/2026/Oct/7
45. [0day-rubbish] IPConfigure Orchid VMS 26.3.0 authenticated DNF repository GPG-key property command injection to root (7.2) · Full Disclosure · 6 Oct 2026 · https://seclists.org/fulldisclosure/2026/Oct/5
46. [0day-rubbish] Circutor LineEds 24.11.14-r0 unauthenticated pwrstudio events.xml shellExecute command injection (9.8) · Full Disclosure · 6 Oct 2026 · https://seclists.org/fulldisclosure/2026/Oct/4
47. Apache Thrift 0.25.0 Adds Memory Limits for Network Messages · LinuxSecurity: Articles · 6 Oct 2026 · https://linuxsecurity.com/news/security-projects/apache-thrift-0250-message-memory-limits
48. Citrix NetScaler Post-Exploitation Payload Creates Superuser, Maps Web Shell to CSS-Like URLs · The Hacker News · 1 Oct 2026 · https://thehackernews.com/2026/10/citrix-netscaler-post-exploitation.html
49. Getting root on OnePlus 15 from an untrusted app · Lobsters · 29 Sep 2026 · https://blog.nns.ee/2026/09/24/oneplus-root/
50. ⚡ Weekly Recap: $387M Crypto Hack, Citrix Exploits, AI Agents Go Off-Script, and More Threats · The Hacker News · 28 Sep 2026 · https://thehackernews.com/2026/09/weekly-recap-387m-crypto-hack-citrix.html

---
Snapshot of https://morningstarsecurity.com/wiki/cwe-20 taken 25 Nov 2026 01:06 UTC. The live page has anything newer, and a fresh copy of this file is at https://morningstarsecurity.com/md/wiki/cwe-20
