CWE-520: .NET Misconfiguration: Use of Impersonation
Allowing a .NET application to run at potentially escalated levels of access to the underlying operating and file systems can be dangerous and result in various forms of attacks.
Last updated
Overview
CWE-520 (.NET Misconfiguration: Use of Impersonation) is a variant-level software weakness catalogued by MITRE in the Common Weakness Enumeration (CWE). It describes a recurring type of mistake that can lead to exploitable security vulnerabilities.
Background
.NET server applications can optionally execute using the identity of the user authenticated to the client. The intention of this functionality is to bypass authentication and access control checks within the .NET application code. Authentication is done by the underlying web server (Microsoft Internet Information Service IIS), which passes the authenticated token, or unauthenticated anonymous token, to the .NET application. Using the token to impersonate the client, the application then relies on the settings within the NTFS directories and files to control access. Impersonation enables the application, on the server running the .NET application, to both execute code and access resources in the context of the authenticated and authorized user.
Real-world CVEs
5 recorded CVEs are caused by CWE-520 (.NET Misconfiguration: Use of Impersonation). The highest-severity and most recent are shown first. 4 new CWE-520 CVEs have been recorded so far in 2026.
- CVE-2019-25608
Iperius Backup 6.1.0 Privilege Escalation via Backup Job
High · CVSS 8.6 · EPSS 41th2026-03-22 - CVE-2026-13444
Langflow is affected by remote code execution, denial of service, path traversal, and exposed credentials due to multiple unauthenticated and insufficiently authorized API endpoints
High · CVSS 8.1 · EPSS 21th2026-07-30 - CVE-2026-2450High · CVSS 7.4 · EPSS 21th2026-04-14
- CVE-2026-13442
Langflow is affected by NET Misconfiguration: Use of Impersonation due to multiple unauthenticated and insufficiently authorized API endpoints
High · CVSS 7.1 · EPSS 15th2026-07-28 - CVE-2024-46943
OpenDaylight Authentication, Authorization and Accounting (AAA) peer impersonation vulnerability
Medium · CVSS 5.3 · EPSS 59th2024-09-15
Common consequences
What can happen when CWE-520 is exploited.
Gain Privileges or Assume Identity
Affects: Access Control
How it happens
When it is introduced
Typically introduced during these phases of the software lifecycle.
Applies to
Languages
Technologies
How to prevent it
Practical mitigations for CWE-520, grouped by where in the lifecycle they apply.
Run the application with limited privilege to the underlying operating and file system.
How to detect it
Automated Static Analysis
Automated static analysis, commonly referred to as Static Application Security Testing (SAST), can find some instances of this weakness by analyzing source code (or binary/compiled code) without having to execute it. Typically, this is done by building a model of data flow and control flow, then searching for potentially-vulnerable patterns that connect "sources" (origins of input) with "sinks" (destinations where the data interacts with external components, a lower layer such as the OS, etc.)
Frequently asked questions
Common questions about CWE-520.
- What is CWE-520?
- Allowing a.NET application to run at potentially escalated levels of access to the underlying operating and file systems can be dangerous and result in various forms of attacks.
- What CVEs are caused by CWE-520?
- 5 recorded CVEs are attributed to CWE-520, including CVE-2019-25608, CVE-2026-13444 and CVE-2026-2450.
- How do you prevent CWE-520?
- Run the application with limited privilege to the underlying operating and file system.
- How is CWE-520 detected?
- Automated Static Analysis: Automated static analysis, commonly referred to as Static Application Security Testing (SAST), can find some instances of this weakness by analyzing source code (or binary/compiled code) without having to execute it. Typically, this is done by building a model of data flow and control flow, then searching for potentially-vulnerable patterns that connect "sources" (origins of input) with "sinks" (destinations where the data interacts with external components, a lower layer such as the OS, etc.)
- What are the consequences of CWE-520?
- Exploiting CWE-520 can lead to: Gain Privileges or Assume Identity.
- Is CWE-520 actively exploited?
- 5 recorded CVEs are caused by CWE-520; none are currently in CISA's KEV catalog of actively exploited flaws.
References
- MITRE CWE definition (CWE-520) (opens in a new tab)
- CWE-520 vulnerabilities on NVD (opens in a new tab)
- Learn: What is a CWE?
Weakness data is sourced from the MITRE CWE catalog (v4.21). CVE associations are aggregated and kept current by RadicalNotion.AI.
Track CWE-520 CVEs
Get an alert when a new CWE-520 CVE affects your products, with AI-written analysis and remediation steps.