CWE-416: Use After Free
9656 CVEs have CWE-416 as their primary weakness. 103 of them are in the CISA KEV catalog. The highest EPSS score among them is 99.999%.
The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory belongs to the code that operates on the new pointer.
Child of CWE-825: Expired Pointer Dereference
Mitigations
- Architecture and Design: Choose a language that provides automatic memory management.
- Implementation: When freeing pointers, be sure to set them to NULL once they are freed. However, the utilization of multiple or complex data structures may lower the usefulness of this strategy.
Observed examples
- CVE-2023-38160: TCP/IP code for an OS has a use-after-free that can leak heap memory contents
- CVE-2023-5447: Chain: missing lock check (CWE-414) leads to Use-After-Free (CWE-416)
- CVE-2022-20141: Chain: an operating system kernel has insufficient resource locking (CWE-413) leading to a use after free (CWE-416).
- CVE-2022-2621: Chain: two threads in a web browser use the same resource (CWE-366), but one of those threads can destroy the resource before the other has completed (CWE-416).
- CVE-2021-0920: Chain: mobile platform race condition (CWE-362) leading to use-after-free (CWE-416), as exploited in the wild per CISA KEV.
- CVE-2020-6819: Chain: race condition (CWE-362) leads to use-after-free (CWE-416), as exploited in the wild per CISA KEV.
- CVE-2010-4168: Use-after-free triggered by closing a connection while data is still being transmitted.
- CVE-2010-2941: Improper allocation for invalid data leads to use-after-free.
- CVE-2010-2547: certificate with a large number of Subject Alternate Names not properly handled in realloc, leading to use-after-free
- CVE-2010-1772: Timers are not disabled when a related object is deleted
- CVE-2010-1437: Access to a dead object that is being cleaned up
- CVE-2010-1208: object is deleted even with a non-zero reference count, and later accessed
- CVE-2010-0629: use-after-free involving request containing an invalid version number
- CVE-2010-0378: unload of an object that is currently being accessed by other functionality
- CVE-2010-0302: incorrectly tracking a reference count leads to use-after-free
- CVE-2010-0249: use-after-free related to use of uninitialized memory
- CVE-2010-0050: HTML document with incorrectly-nested tags
- CVE-2009-3658: Use after free in ActiveX object by providing a malformed argument to a method
- CVE-2009-3616: use-after-free by disconnecting during data transfer, or a message containing incorrect data types
- CVE-2009-3553: disconnect during a large data transfer causes incorrect reference count, leading to use-after-free
- CVE-2009-2416: use-after-free found by fuzzing
- CVE-2009-1837: Chain: race condition (CWE-362) from improper handling of a page transition in web client while an applet is loading (CWE-368) leads to use after free (CWE-416)
- CVE-2009-0749: realloc generates new buffer and pointer, but previous pointer is still retained, leading to use after free
- CVE-2010-3328: Use-after-free in web browser, probably resultant from not initializing memory.
- CVE-2008-5038: use-after-free when one thread accessed memory that was freed by another thread
- CVE-2008-0077: assignment of malformed values to certain properties triggers use after free
- CVE-2006-4434: mail server does not properly handle a long header.
- CVE-2010-2753: Chain: integer overflow leads to use-after-free
- CVE-2006-4997: freed pointer dereference
- CVE-2003-0813: Chain: A multi-threaded race condition (CWE-367) allows attackers to cause two threads to process the same RPC request, which causes a use-after-free (CWE-416) in one thread
Top released CVEs
KEV first, then the highest EPSS score, the highest CVSS score and the newest.
| CVE | Published | Severity | CVSS | EPSS | Description |
|---|---|---|---|---|---|
| CVE-2026-109618 | 2026-10-21 | CRITICAL | 9.8 | 99.999% | PHP uses longjmp() for out-of-memory (OOM) errors to exit the current context and abort handling of the request. Some contexts may not properly account for… |
| CVE-2019-0708 | 2019-05-16 | CRITICAL | 9.8 | 99.999% | A remote code execution vulnerability exists in Remote Desktop Services formerly known as Terminal Services when an unauthenticated attacker connects to the… |
| CVE-2026-109619 | 2026-10-21 | HIGH | 8.1 | 99.999% | PHP has various global state that temporarily points into request memory. In some scenarios, global state may not be correctly reset, or may be repopulated… |
| CVE-2021-31166 | 2021-05-11 | CRITICAL | 9.8 | 99.867% | HTTP Protocol Stack Remote Code Execution Vulnerability |
| CVE-2015-5119 | 2015-07-08 | CRITICAL | 9.8 | 98.618% | Use-after-free vulnerability in the ByteArray class in the ActionScript 3 (AS3) implementation in Adobe Flash Player 13.x through 13.0.0.296 and 14.x through… |
| CVE-2010-3962 | 2010-11-05 | HIGH | 8.1 | 96.831% | Use-after-free vulnerability in Microsoft Internet Explorer 6, 7, and 8 allows remote attackers to execute arbitrary code via vectors related to Cascading… |
| CVE-2015-0313 | 2015-02-02 | CRITICAL | 9.8 | 95.341% | Use-after-free vulnerability in Adobe Flash Player before 13.0.0.269 and 14.x through 16.x before 16.0.0.305 on Windows and OS X and before 11.2.202.442 on… |
| CVE-2010-0249 | 2010-01-15 | HIGH | 8.8 | 91.939% | Use-after-free vulnerability in Microsoft Internet Explorer 6, 6 SP1, 7, and 8 on Windows 2000 SP4; Windows XP SP2 and SP3; Windows Server 2003 SP2; Windows… |
| CVE-2018-4878 | 2018-02-06 | HIGH | 7.8 | 90.280% | A use-after-free vulnerability was discovered in Adobe Flash Player before 28.0.0.161. This vulnerability occurs due to a dangling pointer in the Primetime SDK… |
| CVE-2018-15982 | 2019-01-18 | HIGH | 7.8 | 89.581% | Flash Player versions 31.0.0.153 and earlier, and 31.0.0.108 and earlier have a use after free vulnerability. Successful exploitation could lead to arbitrary… |
| CVE-2013-3893 | 2013-09-18 | HIGH | 8.8 | 87.639% | Use-after-free vulnerability in the SetMouseCapture implementation in mshtml.dll in Microsoft Internet Explorer 6 through 11 allows remote attackers to execute… |
| CVE-2016-9079 | 2018-06-11 | HIGH | 7.5 | 87.357% | A use-after-free vulnerability in SVG Animation has been discovered. An exploit built on this vulnerability has been discovered in the wild targeting Firefox… |
| CVE-2015-5122 | 2015-07-14 | CRITICAL | 9.8 | 87.033% | Use-after-free vulnerability in the DisplayObject class in the ActionScript 3 (AS3) implementation in Adobe Flash Player 13.x through 13.0.0.302 on Windows and… |
| CVE-2020-0674 | 2020-02-11 | HIGH | 7.5 | 86.863% | A remote code execution vulnerability exists in the way that the scripting engine handles objects in memory in Internet Explorer, aka 'Scripting Engine Memory… |
| CVE-2014-0322 | 2014-02-14 | HIGH | 8.8 | 85.122% | Use-after-free vulnerability in Microsoft Internet Explorer 9 and 10 allows remote attackers to execute arbitrary code via vectors involving crafted JavaScript… |
| CVE-2020-3992 | 2020-10-20 | CRITICAL | 9.8 | 83.015% | OpenSLP as used in VMware ESXi (7.0 before ESXi_7.0.1-0.0.16850804, 6.7 before ESXi670-202010401-SG, 6.5 before ESXi650-202010401-SG) has a use-after-free… |
| CVE-2014-1776 | 2014-04-27 | CRITICAL | 9.8 | 82.682% | Use-after-free vulnerability in Microsoft Internet Explorer 6 through 11 allows remote attackers to execute arbitrary code or cause a denial of service (memory… |
| CVE-2021-40449 | 2021-10-13 | HIGH | 7.8 | 81.936% | Win32k Elevation of Privilege Vulnerability |
| CVE-2009-4324 | 2009-12-15 | HIGH | 7.8 | 81.880% | Use-after-free vulnerability in the Doc.media.newPlayer method in Multimedia.api in Adobe Reader and Acrobat 9.x before 9.3, and 8.x before 8.2 on Windows and… |
| CVE-2021-26411 | 2021-03-11 | HIGH | 8.8 | 81.667% | Internet Explorer Memory Corruption Vulnerability |
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cwe_lookup/CWE-416'curl 'https://api.contrastcyber.com/cve_search?cwe_id=CWE-416'
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).