CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer
12340 CVEs have CWE-119 as their primary weakness. 51 of them are in the CISA KEV catalog. The highest EPSS score among them is 99.999%.
The product performs operations on a memory buffer, but it reads from or writes to a memory location outside the buffer's intended boundary.
Child of CWE-118: Incorrect Access of Indexable Resource
Mitigations
- Requirements: Use a language that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid. For example, many languages that perform their own memory management, such as Java and Perl, are not subject to buffer overflows. Other languages, such as Ada and C#, typically provide overflow protection, but the protection can be disabled by the programmer. Be wary that a language's interface to native code may still be subject to overflows, even if the language itself is theoretically safe.
- Architecture and Design: Use a vetted library or framework that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid. Examples include the Safe C String Library (SafeStr) by Messier and Viega [REF-57], and the Strsafe.h library from Microsoft [REF-56]. These libraries provide safer versions of overflow-prone string-handling functions.
- Operation Build and Compilation: Use automatic buffer overflow detection mechanisms that are offered by certain compilers or compiler extensions. Examples include: the Microsoft Visual Studio /GS flag, Fedora/Red Hat FORTIFY_SOURCE GCC flag, StackGuard, and ProPolice, which provide various mechanisms including canary-based detection and range/index checking. D3-SFCV (Stack Frame Canary Validation) from D3FEND [REF-1334] discusses canary-based detection in detail.
- Implementation: Consider adhering to the following rules when allocating and managing an application's memory: Double check that the buffer is as large as specified. When using functions that accept a number of bytes to copy, such as strncpy(), be aware that if the destination buffer size is equal to the source buffer size, it may not NULL-terminate the string. Check buffer boundaries if accessing the buffer in a loop and make sure there is no danger of writing past the allocated space. If necessary, truncate all input strings to a reasonable length before passing them to the copy and concatenation functions.
- Operation Build and Compilation: Run or compile the software using features or extensions that randomly arrange the positions of a program's executable and libraries in memory. Because this makes the addresses unpredictable, it can prevent an attacker from reliably jumping to exploitable code. Examples include Address Space Layout Randomization (ASLR) [REF-58] [REF-60] and Position-Independent Executables (PIE) [REF-64]. Imported modules may be similarly realigned if their default memory addresses conflict with other modules, in a process known as rebasing (for Windows) and prelinking (for Linux) [REF-1332] using randomly generated addresses. ASLR for libraries cannot be used in conjunction with prelink since it would require relocating the libraries at run-time, defeating the whole purpose of prelinking. For more information on these techniques see D3-SAOR (Segment Address Offset Randomization) from D3FEND [REF-1335].
- Operation: Use a CPU and operating system that offers Data Execution Protection (using hardware NX or XD bits) or the equivalent techniques that simulate this feature in software, such as PaX [REF-60] [REF-61]. These techniques ensure that any instruction executed is exclusively at a memory address that is part of the code segment. For more information on these techniques see D3-PSEP (Process Segment Execution Prevention) from D3FEND [REF-1336].
- Implementation: Replace unbounded copy functions with analogous functions that support length arguments, such as strcpy with strncpy. Create these if they are not available.
Observed examples
- CVE-2021-22991: Incorrect URI normalization in application traffic product leads to buffer overflow, as exploited in the wild per CISA KEV.
- CVE-2025-47153: Chain: build process for JavaScript runtime environment can have inconsistent sizes for off_t (CWE-1102), allowing out-of-bounds access / segmentation fault (CWE-119)
- CVE-2020-29557: Buffer overflow in Wi-Fi router web interface, as exploited in the wild per CISA KEV.
- CVE-2009-2550: Classic stack-based buffer overflow in media player using a long entry in a playlist
- CVE-2009-2403: Heap-based buffer overflow in media player using a long entry in a playlist
- CVE-2009-0689: large precision value in a format string triggers overflow
- CVE-2009-0690: negative offset value leads to out-of-bounds read
- CVE-2009-1532: malformed inputs cause accesses of uninitialized or previously-deleted objects, leading to memory corruption
- CVE-2009-1528: Chain: lack of synchronization leads to memory corruption
- CVE-2021-29529: Chain: machine-learning product can have a heap-based buffer overflow (CWE-122) when some integer-oriented bounds are calculated by using ceiling() and floor() on floating point values (CWE-1339)
- CVE-2009-0558: attacker-controlled array index leads to code execution
- CVE-2009-0269: Chain: -1 value from a function call was intended to indicate an error, but is used as an array index instead.
- CVE-2009-0566: Chain: incorrect calculations lead to incorrect pointer dereference and memory corruption
- CVE-2009-1350: product accepts crafted messages that lead to a dereference of an arbitrary pointer
- CVE-2009-0191: Chain: malformed input causes dereference of uninitialized memory
- CVE-2008-4113: OS kernel trusts userland-supplied length value, allowing reading of sensitive information
- CVE-2005-1513: Chain: integer overflow in securely-coded mail program leads to buffer overflow. In 2005, this was regarded as unrealistic to exploit, but in 2020, it was rediscovered to be easier to exploit due to evolutions of the technology.
- CVE-2003-0542: buffer overflow involving a regular expression with a large number of captures
- CVE-2017-1000121: Chain: unchecked message size metadata allows integer overflow (CWE-190) leading to buffer overflow (CWE-119).
Top released CVEs
KEV first, then the highest EPSS score, the highest CVSS score and the newest.
| CVE | Published | Severity | CVSS | EPSS | Description |
|---|---|---|---|---|---|
| CVE-2023-4966 | 2023-10-10 | CRITICAL | 9.4 | 99.999% | Sensitive information disclosure in NetScaler ADC and NetScaler Gateway when configured as a Gateway (VPN virtual server, ICA Proxy, CVPN, RDP Proxy) or AAA… |
| CVE-2017-11882 | 2017-11-15 | HIGH | 7.8 | 99.945% | Microsoft Office 2007 Service Pack 3, Microsoft Office 2010 Service Pack 2, Microsoft Office 2013 Service Pack 1, and Microsoft Office 2016 allow an attacker… |
| CVE-2020-0796 | 2020-03-12 | CRITICAL | 10.0 | 99.810% | A remote code execution vulnerability exists in the way that the Microsoft Server Message Block 3.1.1 (SMBv3) protocol handles certain requests, aka 'Windows… |
| CVE-2014-6332 | 2014-11-11 | HIGH | 8.8 | 94.918% | OleAut32.dll in OLE in Microsoft Windows Server 2003 SP2, Windows Vista SP2, Windows Server 2008 SP2 and R2 SP1, Windows 7 SP1, Windows 8, Windows 8.1, Windows… |
| CVE-2015-2426 | 2015-07-20 | HIGH | 8.8 | 86.576% | Buffer underflow in atmfd.dll in the Windows Adobe Type Manager Library in Microsoft Windows Vista SP2, Windows Server 2008 SP2 and R2 SP1, Windows 7 SP1… |
| CVE-2009-3459 | 2009-10-13 | HIGH | 8.8 | 86.531% | Heap-based buffer overflow in Adobe Reader and Acrobat 7.x before 7.1.4, 8.x before 8.1.7, and 9.x before 9.2 allows remote attackers to execute arbitrary code… |
| CVE-2010-3765 | 2010-10-27 | CRITICAL | 9.8 | 83.156% | Mozilla Firefox 3.5.x through 3.5.14 and 3.6.x through 3.6.11, Thunderbird 3.1.6 before 3.1.6 and 3.0.x before 3.0.10, and SeaMonkey 2.x before 2.0.10, when… |
| CVE-2017-11826 | 2017-10-13 | HIGH | 7.8 | 82.217% | Microsoft Office 2010, SharePoint Enterprise Server 2010, SharePoint Server 2010, Web Applications, Office Web Apps Server 2010 and 2013, Word Viewer, Word… |
| CVE-2008-0015 | 2009-07-07 | HIGH | 8.8 | 76.576% | Stack-based buffer overflow in the CComVariant::ReadFromStream function in the Active Template Library (ATL), as used in the MPEG2TuneRequest ActiveX control… |
| CVE-2026-88772 | 2026-09-27 | HIGH | 8.1 | 76.566% | Vulnerability in Citrix NetScaler ADC and Citrix NetScaler Gateway. This issue affects ADC: before 14.1-73.37, before 13.1-64.23, before 14.1-73.37 FIPS, and… |
| CVE-2017-6736 | 2017-07-17 | HIGH | 8.8 | 70.354% | The Simple Network Management Protocol (SNMP) subsystem of Cisco IOS and IOS XE Software contains multiple vulnerabilities that could allow an authenticated… |
| CVE-2013-1690 | 2013-06-26 | HIGH | 8.8 | 70.168% | Mozilla Firefox before 22.0, Firefox ESR 17.x before 17.0.7, Thunderbird before 17.0.7, and Thunderbird ESR 17.x before 17.0.7 do not properly handle… |
| CVE-2018-7445 | 2018-03-19 | CRITICAL | 9.8 | 65.828% | A buffer overflow was found in the MikroTik RouterOS SMB service when processing NetBIOS session request messages. Remote attackers with access to the service… |
| CVE-2021-22991 | 2021-03-31 | CRITICAL | 9.8 | 62.421% | On BIG-IP versions 16.0.x before 16.0.1.1, 15.1.x before 15.1.2.1, 14.1.x before 14.1.4, 13.1.x before 13.1.3.6, and 12.1.x before 12.1.5.3, undisclosed… |
| CVE-2017-11774 | 2017-10-13 | HIGH | 7.8 | 59.627% | Microsoft Outlook 2010 SP2, Outlook 2013 SP1 and RT SP1, and Outlook 2016 allow an attacker to execute arbitrary commands, due to how Microsoft Office handles… |
| CVE-2023-6549 | 2024-01-17 | HIGH | 8.2 | 57.633% | Improper Restriction of Operations within the Bounds of a Memory Buffer in NetScaler ADC and NetScaler Gateway allows Unauthenticated Denial of Service and… |
| CVE-2016-7193 | 2016-10-14 | HIGH | 7.8 | 57.582% | Microsoft Word 2007 SP2, Office 2010 SP2, Word 2013 SP1, Word 2013 RT SP1, Word 2016, Word for Mac 2011, Word 2016 for Mac, Office Compatibility Pack SP3, Word… |
| CVE-2017-0101 | 2017-03-17 | HIGH | 7.8 | 57.482% | The kernel-mode drivers in Transaction Manager in Microsoft Windows Vista SP2; Windows Server 2008 SP2 and R2; Windows 7 SP1; Windows 8.1, Windows Server 2012… |
| CVE-2020-29557 | 2021-01-29 | CRITICAL | 9.8 | 55.747% | An issue was discovered on D-Link DIR-825 R1 devices through 3.0.1 before 2020-11-20. A buffer overflow in the web interface allows attackers to achieve… |
| CVE-2011-1889 | 2011-06-16 | CRITICAL | 9.8 | 49.020% | The NSPLookupServiceNext function in the client in Microsoft Forefront Threat Management Gateway (TMG) 2010 allows remote attackers to execute arbitrary code… |
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cwe_lookup/CWE-119'curl 'https://api.contrastcyber.com/cve_search?cwe_id=CWE-119'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).