CWE-120

GPTKB entity

Statements (13)
Predicate Object
gptkbp:instance_of gptkb:Common_Weakness_Enumeration
gptkbp:bfsLayer 6
gptkbp:bfsParent gptkb:CWE-74
gptkbp:category Buffer Errors
gptkbp:difficulty gptkb:High
gptkbp:example Using strcpy() without checking the length of the destination buffer.
https://www.w3.org/2000/01/rdf-schema#label CWE-120
gptkbp:impact Buffer overflow
gptkbp:is_described_as The software copies data from one buffer to another without checking the size of the destination buffer.
gptkbp:is_protected_by Use safe functions like strlcpy() or check buffer sizes before copying.
gptkbp:name Buffer Copy without Size Checking
gptkbp:related_to gptkb:CWE-119
gptkb:CWE-787