Export
The link always opens the latest version of this page.
Ask an AI about it
Open in ChatGPTA new chat that reads this entry from the site Open in ClaudeThe same, in ClaudeShare the link instead of a file, and they will always see the latest version.
Files are a snapshot of today. The live page has anything newer.
CWE-120
Buffer Copy without Checking Size of Input ('classic buffer overflow')
A weakness in which a program copies data into a buffer without verifying that the source data fits within the buffer's allocated size. This typically occurs when using unsafe functions like strcpy(), strcat(), or memcpy() without bounds checking.
Consequences
CWE-120 can lead to arbitrary code execution 1, including execution with elevated privileges 2. In local attack scenarios, it may enable privilege escalation and arbitrary code execution in the root context 3.
Related Weaknesses
This is a specific instance of CWE-119 (improper restriction of operations within the bounds of a memory buffer) and relates to CWE-121 (stack-based buffer overflow) and CWE-122 (heap-based buffer overflow).
In the news 5
- ZDI-26-455: GIMP TIF File Parsing Heap-based Buffer Overflow Remote Code Execution Vulnerability · Zero Day Initiative
- ZDI-26-764: X.Org Server XFixes Pointer Barrier Heap-based Buffer Overflow Privilege Escalation Vulnerability · Zero Day Initiative
- ZDI-26-767: X.Org Server Glamor CopyArea Heap-based Buffer Overflow Privilege Escalation Vulnerability · Zero Day Initiative
- ZDI-26-765: X.Org Server XKB Heap-based Buffer Overflow Privilege Escalation Vulnerability · Zero Day Initiative
- ZDI-26-903: X.Org Server Font Alias Resolution Heap-based Buffer Overflow Privilege Escalation Vulnerability · Zero Day Initiative
Sign in for the full story cards: summaries, tags and starring.