CWE-270: Privilege Context Switching Error, published in 2021
Filter
The product does not properly manage privileges while it is switching between different contexts that have different privileges or spheres of control.
What the weakness is: CWE-270 at MITRE. All weaknesses
Related attack patterns (CAPEC): 3
- CAPEC-17 Using Malicious Files Likelihood: High · Severity: Very High
- CAPEC-30 Hijacking a Privileged Thread of Execution Likelihood: Low · Severity: Very High
- CAPEC-35 Leverage Executable Code in Non-Executable Files Likelihood: High · Severity: Very High
The attack patterns MITRE's CAPEC relates to CWE-270, as MITRE names them. Credits.
Ask an AI about CWE-270
Show the prompt
Explain CWE-270: Privilege Context Switching Error and how to prevent and detect it in code. Use https://cwe.mitre.org/data/definitions/270.html and https://cve.bz/cve/cwe/270?via=ask-ai-copy for recent CVEs with this weakness. Cite the sources.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this weakness's id and public links.
By year: all 2026 2025 2024 2023 2022 2021
- 5.4CVE-2020-1719redhat wildflyEPSS 0.6%
A flaw was found in wildfly. The EJBContext principle is not popped back after invoking another EJB using a different Security Domain. The highest threat from this vulnerability is to data confidentiality and integrity. Versions before wil…
- 7.8CVE-2021-3493canonical ubuntu linuxKEVExploitEPSS 49%
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 underlying file system. Due to the combination of unprivileged user namespaces along…