Skip to main content

CWE-179: Incorrect Behavior Order: Early Validation

BaseIncomplete

The product validates input before applying protection mechanisms that modify the input, which could allow an attacker to bypass the validation via dangerous inputs that only arise after the modification.

View on MITRE
Back to CWE Lookup

Extended Description

Product needs to validate data at the proper time, after data has been canonicalized and cleansed. Early validation is susceptible to various manipulations that result in dangerous inputs that are produced by canonicalization and cleansing.

Technical Details

Structure
Simple

Applicable To

Languages
Not Language-Specific
Platforms

Frequently Asked Questions

What is CWE-179: Incorrect Behavior Order: Early Validation?+

CWE-179: Incorrect Behavior Order: Early Validation is a Common Weakness Enumeration (CWE) entry maintained by MITRE. The product validates input before applying protection mechanisms that modify the input, which could allow an attacker to bypass the validation via dangerous inputs that only arise after the modification. Product needs to validate data at the proper time, after data has been canonicalized and cleansed. Early validation is susceptible to various manipulations that result in dangerous inputs that are produced by canonicalization and cleansing.

What are the security consequences of Incorrect Behavior Order: Early Validation?+

If exploited, CWE-179 (Incorrect Behavior Order: Early Validation) it can compromise Access Control and Integrity, leading to outcomes such as Bypass Protection Mechanism and Execute Unauthorized Code or Commands.

Which programming languages are affected by Incorrect Behavior Order: Early Validation?+

CWE-179 commonly affects Not Language-Specific. Note that weaknesses are often language-agnostic patterns, so secure coding practices apply broadly.

What are real-world examples of Incorrect Behavior Order: Early Validation?+

MITRE documents real CVEs mapped to CWE-179, including CVE-2002-0433, CVE-2003-0332, CVE-2002-0802, CVE-2000-0191 and CVE-2004-2363. You can look up the full details of each CVE, including CVSS scores and remediation guidance, on our CVE Lookup tool.

What is the difference between a CWE and a CVE?+

A CWE (Common Weakness Enumeration) like CWE-179 describes a category of software weakness — the underlying flaw type. A CVE (Common Vulnerabilities and Exposures) identifies a specific, real-world vulnerability in a particular product. In short, a CWE is the kind of mistake, and a CVE is an instance of that mistake being found in software.

Learn More