---
title: "CWE-520: .NET Misconfiguration: Use of Impersonation"
url: https://radicalnotion.ai/cwe/cwe-520
type: cwe
description: "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."
updated: 2026-11-10
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CWE-520: .NET Misconfiguration: Use of Impersonation

- **Abstraction:** Variant
- **Structure:** Simple
- **Status:** Incomplete
- **CVEs with this as primary weakness:** 5
- **Of those, in CISA KEV:** 0
- **New in 2026:** 4
- **CWE catalog version:** 4.21

## Description

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.

## 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.

## Modes of introduction

| Phase | Note |
| --- | --- |
| Architecture and Design | - |
| Implementation | - |
| Operation | - |

## Applicable platforms

**Languages:** ASP.NET (Undetermined), VB.NET (Undetermined)

**Technologies:** Web Based (Undetermined)

## Common consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Access Control | Gain Privileges or Assume Identity | - |

## Potential mitigations

### Operation

Run the application with limited privilege to the underlying operating and file system.

## Detection methods

### 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.)

## Real CVEs with this weakness

| CVE | Title | Severity | CVSS | EPSS | CISA KEV | Published |
| --- | --- | --- | --- | --- | --- | --- |
| CVE-2019-25608 | Iperius Backup 6.1.0 Privilege Escalation via Backup Job | high | 8.6 | - | No | 2026-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 | 8.1 | - | No | 2026-07-30 |
| CVE-2026-2450 | - | high | 7.4 | - | No | 2026-04-14 |
| CVE-2026-13442 | Langflow is affected by NET Misconfiguration: Use of Impersonation due to multiple unauthenticated and insufficiently authorized API endpoints | high | 7.1 | - | No | 2026-07-28 |
| CVE-2024-46943 | OpenDaylight Authentication, Authorization and Accounting (AAA) peer impersonation vulnerability | medium | 5.3 | - | No | 2024-09-15 |

## Related weaknesses

| Relationship | CWE | Name |
| --- | --- | --- |
| Parent | [CWE-266](https://radicalnotion.ai/cwe/cwe-266) | Incorrect Privilege Assignment |

## Frequently asked questions

### 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.

Primary source: [MITRE CWE](https://cwe.mitre.org/data/definitions/520.html)

---

Source: [RadicalNotion.AI](https://radicalnotion.ai/cwe/cwe-520). Licensed CC BY-NC 4.0; attribute RadicalNotion.AI and link the source page when you reuse this data.
