Programming
The C language's biggest problem: evidence of its insecurity
C is not a memory-safe language. You can write secure software in C, but flawless memory management is not a realistic expectation, no matter how skilled the programmers are or how many reviews the code receives. Formal verification can help in rare cases; the seL4 microkernel and the CompCert compiler are two examples. But those projects are exceptions, not the normal path for most software.
In practice, formal verification is difficult, expensive, and narrow in scope. It should be treated as a limited tool, not a general answer to C's memory-safety problem.
For readers who argue that memory-management vulnerabilities are rare or obsolete, this article looks at the numbers directly.
Analysis: Memory Management Vulnerabilities in CVEs (2015-2025)
Total data
I analyzed registered CVEs from 2015 through December 20, 2025, using data from CVEDetails.com and the NIST NVD.
CVEs analyzed: 107,173
Memory-management vulnerabilities
- Category: Overflow (buffer, stack). Total CVEs: 15,882
- Category: Memory Corruption (heap, use-after-free, out-of-bounds). Total CVEs: 20,777
- Total: 36,659
Percentage of memory-management vulnerabilities
36,659 ÷ 107,173 × 100 = 34.20%
Put simply, 34.20% of all software vulnerabilities registered between 2015 and 2025 were tied to memory-management errors, including buffer overflows, heap overflows, use-after-free bugs, and out-of-bounds reads or writes.
Distribution by year
The year-by-year breakdown fluctuates significantly:
| Year | Memory Vulnerabilities | Total CVEs | Percentage |
|---|---|---|---|
| 2015 | 1,436 | 3,758 | 38.22% |
| 2016 | 1,514 | 3,355 | 45.13% |
| 2017 | 4,011 | 10,458 | 38.35% |
| 2018 | 3,808 | 10,644 | 35.74% |
| 2019 | 3,209 | 9,081 | 35.35% |
| 2020 | 3,066 | 8,248 | 37.18% |
| 2021 | 4,184 | 10,414 | 40.18% |
| 2022 | 4,685 | 12,198 | 38.39% |
| 2023 | 3,741 | 12,568 | 29.76% |
| 2024 | 4,171 | 15,377 | 27.12% |
| 2025 | 2,834 | 11,478 | 24.68% |
Important context
The overall 34.20% figure changes sharply depending on the kind of software and the language used:
For compiled C/C++ code, the share rises to roughly 66–75%. Large organizations have reported the following:
- Microsoft: 70% of CVEs are related to memory management.
- Google: 70% of bugs in Chromium are memory-related; 90% on Android.
- Apple: 60–70% of vulnerabilities in iOS and macOS.
- Linux Kernel: 66% of vulnerabilities.
- Project Zero (Google): 75% of CVEs exploited in the wild were memory-related; 67% of zero-days in 2021.
For memory-safe languages such as Java, Python, and C#, the proportion is less than 5%.
Temporal trend
The data shows an important distinction. The absolute number of memory vulnerabilities remains high, but their relative share dropped from roughly 38–45% in 2015–2016 to 24–29% in 2024–2025. That does not mean memory bugs disappeared. It means other categories grew faster, especially XSS at 31.18% of the total.
2026 preliminary data
According to CVE Program Metrics [24], 15,176 CVE records were published in Q1 2026. Q2-Q4 were still marked as TBA at the time of writing.
That confirms that CVE publication volume remained high into 2026. However, this figure should not be mixed directly with the 2015-2025 table above, because that analysis uses a different aggregation and categorization method: CVEDetails plus NVD, with "Overflow" and "Memory Corruption" grouped together.
Conclusion
Of the 107,173 software vulnerabilities registered between 2015 and 2025, 36,659, or 34.20%, were related to memory-management errors. That global percentage hides the more serious reality: in the compiled software that dominates critical infrastructure, especially C and C++, roughly two out of three vulnerabilities are caused by memory-management errors. This is why CISA, the NSA, and other agencies keep calling for memory-safe languages where they are practical.
References
- [1] Types of Memory Safety Vulnerabilities & How to Address …
- [2] 99 of the most popular cybersecurity vulnerabilities & …
- [3] CVE Threat Database | Real-Time Security Insights
- [4] Microsoft: 70 percent of all security bugs are memory safety …
- [5] Global security agencies push for memory safe roadmaps …
- [6] NSA Releases Guidance on How to Protect Against …
- [7] The Case for Memory Safe Roadmaps
- [8] CISA, NSA repeat call for memory safe programming …
- [9] Why Safe Programming Matters and Why a Language Like …
- [10] NSA, CISA guidance push for adoption of memory safe …
- [11] Analysis of a VB Script Heap Overflow (CVE-2019-0666)
- [12] Eliminating Memory Safety Vulnerabilities at the Source
- [13] CVE-2023-0051 : Heap-based Buffer Overflow in GitHub …
- [14] CVE security vulnerability database. Security vulnerabilities …
- [15] The Long Road to Safe RAM Handling
- [16] Chrome Buffer Overflow Vulnerabilities
- [17] CVE (Common Vulnerabilities and Exposures)
- [18] CVE-2025-14174 Vulnerability: A New Memory Corruption …
- [19] Vulnerabilities Statistics 2025: CVE Surge & Exploit Speed
- [20] Discover CVE Statistics
- [21] 2025 Predictions for CVE Vulnerabilities Across the Web | Bitsight
- [22] Announcing the Release of "The Memory Safety Continuum"
- [23] A look Into The 1H-2025 Vulnerability Exploitation & Threat Activity
- [24] Metrics
- [25] Exploitation Statistics
- [26] Classifying Memory Bugs Using Bugs Framework Approach
- [27] Multiple vulnerabilities in Dell EMC Unity Family
- [28] Microsoft: 70 percent of all security bugs are memory safety …
- [29] CWE 119 Improper Restriction of Operations within the …
- [30] Defending Against Memory Corruption Attacks in C-Based …
- [31] OWASP Top 10 Prediction | 2025
- [32] LLM-CSEC: Empirical Evaluation of Security in C/C++ …
- [33] Memory Safety KEVs Are Increasing Across Industries
- [34] The biggest source of vulnerabilities in cryptographic libraries is memory safety bugs, not cryptography bugs
- [35] Top Cybersecurity Vulnerability Statistics
- [36] Vulnerability landscape analysis for Q4 2024
- [37] CVE 100K: By The Numbers
- [38] May 2024 Threat Tracking: Global CVE Disclosures …
- [39] 2023 Vulnerability Statistics Report
- [40] CWE Over Time - NVD
- [41] National Vulnerability Database - Wikipedia
- [42] A guide to security technologies in Red Hat Enterprise Linux
- [43] Vulnerabilities, Cybersecurity, and the Role of Law and …
- [44] What is the National Vulnerability Database (NVD)? - Fortinet
- [45] What is CI/CD security?
- [46] NVD stopped adding information on most CVEs since February
- [47] CWE Version 4.16 - Mitre
- [48] An Empirical Analysis of Vulnerabilities in Cryptographic …
- [49] Automated Exploitable Heap Layout Generation for …
- [50] QuickSafe: Targeted Hardening Against Memory Corruption
- [51] CWE-122: Heap-based Buffer Overflow
- [52] Microsoft: 70 percent of all security bugs are memory safety …
- [53] A risk estimation study of native code vulnerabilities in Android …
- [54] Getting to the Bottom of CVE-2018-0825 Heap Overflow …
- [55] Memory Safe Languages: Reducing Vulnerabilities in …
- [58] The Secret Life of CVEs
- [59] CWE Statistics for Autodesk as of 11/20/2025 - NVD CNA Status
- [61] arXiv:2107.04940v1 [cs.CR] 11 Jul 2021
- [62] Vulnerabilities By Types/Categories