CWE-638: Not Using Complete Mediation
1 CVE has CWE-638 as its primary weakness. 0 of them are in the CISA KEV catalog. The highest EPSS score among them is 3.268%.
The product does not perform access checks on a resource every time the resource is accessed by an entity, which can create resultant weaknesses if that entity's rights or privileges change over time.
Child of CWE-657: Violation of Secure Design Principles
Mitigations
- Architecture and Design: Invalidate cached privileges, file handles or descriptors, or other access credentials whenever identities, processes, policies, roles, capabilities or permissions change. Perform complete authentication checks before accepting, caching and reusing data, dynamic content and code (scripts). Avoid caching access control decisions as much as possible.
- Architecture and Design: Identify all possible code paths that might access sensitive resources. If possible, create and use a single interface that performs the access checks, and develop code standards that require use of this interface.
Observed examples
- CVE-2007-0408: Server does not properly validate client certificates when reusing cached connections.
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cwe_lookup/CWE-638'curl 'https://api.contrastcyber.com/cve_search?cwe_id=CWE-638'
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).