CWE-270: Privilege Context Switching Error
24 CVEs have CWE-270 as their primary weakness. 1 of them are in the CISA KEV catalog. The highest EPSS score among them is 63.587%.
The product does not properly manage privileges while it is switching between different contexts that have different privileges or spheres of control.
Child of CWE-269: Improper Privilege Management
Mitigations
- Architecture and Design Operation: Very carefully manage the setting, management, and handling of privileges. Explicitly manage trust zones in the software.
- Architecture and Design Operation: Run your code using the lowest privileges that are required to accomplish the necessary tasks [REF-76]. If possible, create isolated accounts with limited privileges that are only used for a single task. That way, a successful attack will not immediately give the attacker access to the rest of the software or its environment. For example, database applications rarely need to run as the database administrator, especially in day-to-day operations.
- Architecture and Design: Consider following the principle of separation of privilege. Require multiple conditions to be met before permitting access to a system resource.
Observed examples
- CVE-2002-1688: Web browser cross domain problem when user hits back button.
- CVE-2003-1026: Web browser cross domain problem when user hits back button.
- CVE-2002-1770: Cross-domain issue - third party product passes code to web browser, which executes it in unsafe zone.
- CVE-2005-2263: Run callback in different security context after it has been changed from untrusted to trusted. * note that context switch before actions are completed is one type of problem that happens frequently, espec. in browsers.
Top released CVEs
KEV first, then the highest EPSS score, the highest CVSS score and the newest.
| CVE | Published | Severity | CVSS | EPSS | Description |
|---|---|---|---|---|---|
| CVE-2021-3493 | 2021-04-17 | HIGH | 8.8 | 49.166% | The overlayfs implementation in the linux kernel did not properly validate with respect to user namespaces the setting of file capabilities on files in an… |
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cwe_lookup/CWE-270'curl 'https://api.contrastcyber.com/cve_search?cwe_id=CWE-270'
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).