CWE-1284β€”Improper Validation of Specified Quantity in Input

PUBLISHEDweakness record
released 2020-02-24 Β· last modified 2026-04-30

Metadata

CWE ID:
CWE-1284
Abstraction:
Base
Structure:
Simple
Status:
Incomplete
Release Date:
2020-02-24
Latest Modification Date:
2026-04-30

Weakness Name

Improper Validation of Specified Quantity in Input

Description

The product receives input that is expected to specify a quantity (such as size or length), but it does not validate or incorrectly validates that the quantity has the required properties.

Specified quantities include size, length, frequency, price, rate, number of operations, time, and others. Code may rely on specified quantities to allocate resources, perform calculations, control iteration, etc.

Common Consequences

Scope:
Other, Integrity, Availability
Impact:
Varies by Context, DoS: Resource Consumption (CPU), Modify Memory, Read Memory
Notes:
When the quantity is not properly validated, then attackers can specify malicious quantities to cause excessive resource allocation, trigger unexpected failures, enable buffer overflows, etc.

Related Weaknesses