CWE-20: Improper Input Validation, page 187
Filter
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.
What the weakness is: CWE-20 at MITRE. OWASP Top 10: A05:2025 Injection
Related attack patterns (CAPEC): 51
- CAPEC-3 Using Leading 'Ghost' Character Sequences to Bypass Input Filters Likelihood: Medium · Severity: Medium
- CAPEC-7 Blind SQL Injection Likelihood: High · Severity: High
- CAPEC-8 Buffer Overflow in an API Call Likelihood: High · Severity: High
- CAPEC-9 Buffer Overflow in Local Command-Line Utilities Likelihood: High · Severity: High
- CAPEC-10 Buffer Overflow via Environment Variables Likelihood: High · Severity: High
- CAPEC-13 Subverting Environment Variable Values Likelihood: High · Severity: Very High
- CAPEC-14 Client-side Injection-induced Buffer Overflow Likelihood: Medium · Severity: High
- CAPEC-22 Exploiting Trust in Client Likelihood: High · Severity: High
- CAPEC-23 File Content Injection Likelihood: High · Severity: Very High
- CAPEC-24 Filter Failure through Buffer Overflow Likelihood: High · Severity: High
- CAPEC-28 Fuzzing Likelihood: High · Severity: Medium
- CAPEC-31 Accessing/Intercepting/Modifying HTTP Cookies Likelihood: High · Severity: High
- CAPEC-42 MIME Conversion Likelihood: High · Severity: High
- CAPEC-43 Exploiting Multiple Input Interpretation Layers Likelihood: Medium · Severity: High
- CAPEC-45 Buffer Overflow via Symbolic Links Likelihood: High · Severity: High
- CAPEC-46 Overflow Variables and Tags Likelihood: High · Severity: High
- CAPEC-47 Buffer Overflow via Parameter Expansion Likelihood: Medium · Severity: High
- CAPEC-52 Embedding NULL Bytes Likelihood: High · Severity: High
- CAPEC-53 Postfix, Null Terminate, and Backslash Likelihood: High · Severity: High
- CAPEC-63 Cross-Site Scripting (XSS) Likelihood: High · Severity: Very High
- CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic Likelihood: High · Severity: High
- CAPEC-67 String Format Overflow in syslog() Likelihood: High · Severity: Very High
- CAPEC-71 Using Unicode Encoding to Bypass Validation Logic Likelihood: Medium · Severity: High
- CAPEC-72 URL Encoding Likelihood: High · Severity: High
- CAPEC-73 User-Controlled Filename Likelihood: High · Severity: High
- CAPEC-78 Using Escaped Slashes in Alternate Encoding Likelihood: High · Severity: High
- CAPEC-79 Using Slashes in Alternate Encoding Likelihood: High · Severity: High
- CAPEC-80 Using UTF-8 Encoding to Bypass Validation Logic Likelihood: High · Severity: High
- CAPEC-81 Web Server Logs Tampering Likelihood: Medium · Severity: High
- CAPEC-83 XPath Injection Likelihood: High · Severity: High
- CAPEC-85 AJAX Footprinting Likelihood: High · Severity: Low
- CAPEC-88 OS Command Injection Likelihood: High · Severity: High
- CAPEC-101 Server Side Include (SSI) Injection Likelihood: High · Severity: High
- CAPEC-104 Cross Zone Scripting Likelihood: Medium · Severity: High
- CAPEC-108 Command Line Execution through SQL Injection Likelihood: Low · Severity: Very High
- CAPEC-109 Object Relational Mapping Injection Likelihood: Low · Severity: High
- CAPEC-110 SQL Injection through SOAP Parameter Tampering Likelihood: High · Severity: Very High
- CAPEC-120 Double Encoding Likelihood: Low · Severity: Medium
- CAPEC-135 Format String Injection Likelihood: High · Severity: High
- CAPEC-136 LDAP Injection Likelihood: High · Severity: High
- CAPEC-153 Input Data Manipulation Severity: Medium
- CAPEC-182 Flash Injection Likelihood: High · Severity: Medium
- CAPEC-209 XSS Using MIME Type Mismatch Severity: Medium
- CAPEC-230 Serialized Data with Nested Payloads Likelihood: Medium · Severity: High
- CAPEC-231 Oversized Serialized Data Payloads Likelihood: Medium · Severity: High
- CAPEC-250 XML Injection Likelihood: High
- CAPEC-261 Fuzzing for garnering other adjacent user/sensitive data Severity: Medium
- CAPEC-267 Leverage Alternate Encoding Likelihood: High · Severity: High
- CAPEC-473 Signature Spoof
- CAPEC-588 DOM-Based XSS Likelihood: High · Severity: Very High
- CAPEC-664 Server Side Request Forgery Likelihood: High · Severity: High
The attack patterns MITRE's CAPEC relates to CWE-20, as MITRE names them. Credits.
Ask an AI about CWE-20
Show the prompt
Explain CWE-20: Improper Input Validation and how to prevent and detect it in code. Use https://cwe.mitre.org/data/definitions/20.html and https://cve.bz/cve/cwe/20?via=ask-ai-copy for recent CVEs with this weakness. Cite the sources.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this weakness's id and public links.
- 7.5CVE-2015-1379EPSS 3.9%
The signal handler implementations in socat before 1.7.3.0 and 2.0.0-b8 allow remote attackers to cause a denial of service (process freeze or crash).
- 8.8CVE-2014-3498EPSS 2.6%
The user module in ansible before 1.6.6 allows remote authenticated users to execute arbitrary commands.
- 7.5CVE-2017-9022EPSS 1.7%
The gmp plugin in strongSwan before 5.5.3 does not properly validate RSA public keys before calling mpz_powm_sec, which allows remote peers to cause a denial of service (floating point exception and process crash) via a crafted certificate.
- 7.8CVE-2017-6638EPSS 0.4%
A vulnerability in how DLL files are loaded with Cisco AnyConnect Secure Mobility Client for Windows could allow an authenticated, local attacker to install and run an executable file with privileges equivalent to the Microsoft Windows SYS…
- 6.5CVE-2015-8538EPSS 1.2%
dwarf_leb.c in libdwarf allows attackers to cause a denial of service (SIGSEGV).
- 7.5CVE-2015-5175EPSS 11%
Application plugins in Apache CXF Fediz before 1.1.3 and 1.2.x before 1.2.1 allow remote attackers to cause a denial of service.
- 8.8CVE-2016-9977EPSS 1.8%
IBM Maximo Asset Management 7.1, 7.5, and 7.6 could allow a remote attacker to hijack a user's session, caused by the failure to invalidate an existing session identifier. An attacker could exploit this vulnerability to gain access to anot…
- 9.8CVE-2016-6087EPSS 1.9%
IBM Domino 8.5 and 9.0 could allow an attacker to steal credentials using multiple sessions and large amounts of data using Domino TLS Key Exchange validation. IBM X-Force ID: 117918.
- 7.5CVE-2017-7564EPSS 1.0%
In ARM Trusted Firmware through 1.3, the secure self-hosted invasive debug interface allows normal world attackers to cause a denial of service (secure world panic) via vectors involving debug exceptions and debug registers.
- 6.5CVE-2015-3830EPSS 0.5%
The stock Android browser address bar in all Android operating systems suffers from Address Bar Spoofing, which allows remote attackers to trick a victim by displaying a malicious page for legitimate domain names.
- 8.2CVE-2017-1000368EPSS 0.6%
Todd Miller's sudo version 1.8.20p1 and earlier is vulnerable to an input validation (embedded newlines) in the get_process_ttyname() function resulting in information disclosure and command execution.
- 7.5CVE-2017-7669EPSS 1.8%
In Apache Hadoop 2.8.0, 3.0.0-alpha1, and 3.0.0-alpha2, the LinuxContainerExecutor runs docker commands as root with insufficient input validation. When the docker feature is enabled, authenticated users can run commands as root.
- 7.5CVE-2017-9354EPSS 2.8%
In Wireshark 2.2.0 to 2.2.6 and 2.0.0 to 2.0.12, the RGMP dissector could crash. This was addressed in epan/dissectors/packet-rgmp.c by validating an IPv4 address.
- 7.5CVE-2017-9353ExploitEPSS 14%
In Wireshark 2.2.0 to 2.2.6, the IPv6 dissector could crash. This was addressed in epan/dissectors/packet-ipv6.c by validating an IPv6 address.
- 7.5CVE-2017-9350EPSS 3.4%
In Wireshark 2.2.0 to 2.2.6 and 2.0.0 to 2.0.12, the openSAFETY dissector could crash or exhaust system memory. This was addressed in epan/dissectors/packet-opensafety.c by checking for a negative length.
- 7.5CVE-2017-9334EPSS 1.5%
An incorrect "pair?" check in the Scheme "length" procedure results in an unsafe pointer dereference in all CHICKEN Scheme versions prior to 4.13, which allows an attacker to cause a denial of service by passing an improper list to an appl…
- 5.5CVE-2017-4897EPSS 1.1%
VMware Horizon DaaS before 7.0.0 contains a vulnerability that exists due to insufficient validation of data. An attacker may exploit this issue by tricking DaaS client users into connecting to a malicious server and sharing all their driv…
- 6.1CVE-2017-9303EPSS 1.0%
Laravel 5.4.x before 5.4.22 does not properly constrain the host portion of a password-reset URL, which makes it easier for remote attackers to conduct phishing attacks by specifying an attacker-controlled host.
- 6.5CVE-2017-9263EPSS 1.0%
In Open vSwitch (OvS) 2.7.0, while parsing an OpenFlow role status message, there is a call to the abort() function for undefined role status reasons in the function `ofp_print_role_status_message` in `lib/ofp-print.c` that may be leverage…
- 5.5CVE-2017-9242EPSS 0.4%
The __ip6_append_data function in net/ipv6/ip6_output.c in the Linux kernel through 4.11.3 is too late in checking whether an overwrite of an skb data structure may occur, which allows local users to cause a denial of service (system crash…
- 7.2CVE-2017-3134EPSS 1.5%
An escalation of privilege vulnerability in Fortinet FortiWLC-SD versions 8.2.4 and below allows attacker to gain root access via the CLI command 'copy running-config'.
- 9.8CVE-2017-9034EPSS 6.0%
Trend Micro ServerProtect for Linux 3.0 before CP 1531 allows attackers to write to arbitrary files and consequently execute arbitrary code with root privileges by leveraging failure to validate software updates.
- 6.5CVE-2016-2165EPSS 0.9%
The Loggregator Traffic Controller endpoints in cf-release v231 and lower, Pivotal Elastic Runtime versions prior to 1.5.19 AND 1.6.x versions prior to 1.6.20 are not cleansing request URL paths when they are invalid and are returning them…
- 7.3CVE-2017-0373EPSS 1.8%
The gen_class_pod implementation in lib/Config/Model/Utils/GenClassPod.pm in Config-Model (aka libconfig-model-perl) before 2.102 has a dangerous "use lib" line, which allows remote attackers to have an unspecified impact via a crafted Deb…
- 9.8CVE-2017-9188EPSS 2.5%
libautotrace.a in AutoTrace 0.31.1 has a "left shift ... cannot be represented in type int" issue in input-bmp.c:516:63.
- 9.8CVE-2016-5178EPSS 1.9%
Multiple unspecified vulnerabilities in Google Chrome before 53.0.2785.143 allow remote attackers to cause a denial of service or possibly have other impact via unknown vectors.
- 7.5CVE-2015-5401EPSS 2.3%
Teradata Gateway before 15.00.03.02-1 and 15.10.x before 15.10.00.01-1 and TD Express before 15.00.02.08_Sles10 and 15.00.02.08_Sles11 allow remote attackers to cause a denial of service (database crash) via a malformed CONFIG REQUEST mess…
- 6.5CVE-2017-9144EPSS 2.1%
In ImageMagick 7.0.5-5, a crafted RLE image can trigger a crash because of incorrect EOF handling in coders/rle.c.
- 6.5CVE-2017-9142EPSS 2.2%
In ImageMagick 7.0.5-7 Q16, a crafted file could trigger an assertion failure in the WriteBlob function in MagickCore/blob.c because of missing checks in the ReadOneJNGImage function in coders/png.c.
- 6.5CVE-2017-9141EPSS 2.2%
In ImageMagick 7.0.5-7 Q16, a crafted file could trigger an assertion failure in the ResetImageProfileIterator function in MagickCore/profile.c because of missing checks in the ReadDDSImage function in coders/dds.c.
- 5.5CVE-2017-2540EPSS 1.0%
An issue was discovered in certain Apple products. macOS before 10.12.5 is affected. The issue involves the "WindowServer" component. It allows attackers to bypass intended memory-read restrictions via a crafted app.
- 7.8CVE-2017-2535EPSS 0.8%
An issue was discovered in certain Apple products. macOS before 10.12.5 is affected. The issue involves the "Security" component. It allows attackers to conduct sandbox-escape attacks or cause a denial of service (resource consumption) via…
- 6.5CVE-2017-2511EPSS 0.8%
An issue was discovered in certain Apple products. Safari before 10.1.1 is affected. The issue involves the "Safari" component. It allows remote attackers to spoof the address bar via a crafted web site.
- 4.7CVE-2017-2500EPSS 0.7%
An issue was discovered in certain Apple products. Safari before 10.1.1 is affected. The issue involves the "Safari" component. It allows remote attackers to spoof the address bar via a crafted web site.
- 6.5CVE-2017-2495EPSS 0.9%
An issue was discovered in certain Apple products. iOS before 10.3.2 is affected. Safari before 10.1.1 is affected. The issue involves the "Safari" component. It allows remote attackers to cause a denial of service (application crash) via …
- 7.8CVE-2017-6650EPSS 0.9%
A vulnerability in the Telnet CLI command of Cisco NX-OS System Software 7.1 through 7.3 running on Cisco Nexus Series Switches could allow an authenticated, local attacker to perform a command injection attack. The vulnerability is due to…
- 7.8CVE-2017-6649EPSS 0.9%
A vulnerability in the CLI of Cisco NX-OS System Software 7.1 through 7.3 running on Cisco Nexus Series Switches could allow an authenticated, local attacker to perform a command injection attack. The vulnerability is due to insufficient i…
- 6.5CVE-2017-6637EPSS 7.8%
A vulnerability in the web interface of Cisco Prime Collaboration Provisioning Software (prior to Release 11.1) could allow an authenticated, remote attacker to delete any file from an affected system. The vulnerability exists because the …
- 7.5CVE-2017-9131EPSS 2.6%
An issue was discovered on Mimosa Client Radios before 2.2.3 and Mimosa Backhaul Radios before 2.2.3. By connecting to the Mosquitto broker on an access point and one of its clients, an attacker can gather enough information to craft a com…
- 7.3CVE-2017-9046EPSS 0.6%
winpm-32.exe in Pegasus Mail (aka Pmail) v4.72 build 572 allows code execution via a crafted ssgp.dll file that must be installed locally. For example, if ssgp.dll is on the desktop and executes arbitrary code in the DllMain function, then…
- 7.5CVE-2017-9091EPSS 1.3%
/admin/loginc.php in Allen Disk 1.6 doesn't check if isset($_SESSION['captcha']['code']) == 1, which leads to CAPTCHA bypass by emptying $_POST['captcha'].
- 7.5CVE-2017-9090EPSS 1.3%
reg.php in Allen Disk 1.6 doesn't check if isset($_SESSION['captcha']['code'])==1, which makes it possible to bypass the CAPTCHA via an empty $_POST['captcha'].
- 7.5CVE-2017-6652EPSS 3.6%
A vulnerability in the web framework of the Cisco TelePresence IX5000 Series could allow an unauthenticated, remote attacker to access arbitrary files on an affected device. The vulnerability is due to insufficient input validation. An att…
- 7.5CVE-2017-9065EPSS 4.1%
In WordPress before 4.7.5, there is a lack of capability checks for post meta data in the XML-RPC API.
- 7.8CVE-2017-9043EPSS 2.1%
readelf.c in GNU Binutils 2017-04-12 has a "shift exponent too large for type unsigned long" issue, which might allow remote attackers to cause a denial of service (application crash) or possibly have unspecified other impact via a crafted…
- 7.8CVE-2017-8849ExploitEPSS 1.9%
smb4k before 2.0.1 allows local users to gain root privileges by leveraging failure to verify arguments to the mount helper DBUS service.
- 9.8CVE-2017-5215EPSS 3.6%
The Codextrous B2J Contact (aka b2j_contact) extension before 2.1.13 for Joomla! allows a rename attack that bypasses a "safe file extension" protection mechanism, leading to remote code execution.
- 7.5CVE-2017-3873EPSS 0.7%
A vulnerability in the Plug-and-Play (PnP) subsystem of the Cisco Aironet 1800, 2800, and 3800 Series Access Points running a Lightweight Access Point (AP) or Mobility Express image could allow an unauthenticated, adjacent attacker to exec…
- 7.5CVE-2017-3825EPSS 3.0%
A vulnerability in the ICMP ingress packet processing of Cisco TelePresence Collaboration Endpoint (CE) Software could allow an unauthenticated, remote attacker to cause the TelePresence endpoint to reload unexpectedly, resulting in a deni…
- 7.8CVE-2014-9933EPSS 0.6%
Due to missing input validation in all Android releases from CAF using the Linux kernel, HLOS can write to fuses for which it should not have access.