CWE-825: Expired Pointer Dereference
45 CVEs have CWE-825 as their primary weakness. 0 of them are in the CISA KEV catalog. The highest EPSS score among them is 60.050%.
The product dereferences a pointer that contains a location for memory that was previously valid, but is no longer valid.
Child of CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer
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-26463: Chain: IPSec VPN product uses the same variable for multiple purposes in the same function (CWE-1109), leading to incorrect access control (CWE-284) and expired pointer dereference (CWE-825)
- CVE-2008-5013: access of expired memory address leads to arbitrary code execution
- CVE-2010-3257: stale pointer issue leads to denial of service and possibly other consequences
- CVE-2008-0062: Chain: a message having an unknown message type may cause a reference to uninitialized memory resulting in a null pointer dereference (CWE-476) or dangling pointer (CWE-825), possibly crashing the system or causing heap corruption.
- CVE-2007-1211: read of value at an offset into a structure after the offset is no longer valid
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cwe_lookup/CWE-825'curl 'https://api.contrastcyber.com/cve_search?cwe_id=CWE-825'
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).