---
title: "CWE-67: Improper Handling of Windows Device Names"
url: https://radicalnotion.ai/cwe/cwe-67
type: cwe
description: "The product constructs pathnames from user input, but it does not handle or incorrectly handles a pathname containing a Windows device name such as AUX or CON. This typically leads to denial of service or an information exposure when the application attempts to process the pathname as a regular file."
updated: 2026-11-10
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CWE-67: Improper Handling of Windows Device Names

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

## Description

The product constructs pathnames from user input, but it does not handle or incorrectly handles a pathname containing a Windows device name such as AUX or CON. This typically leads to denial of service or an information exposure when the application attempts to process the pathname as a regular file.

## Background

Historically, there was a bug in the Windows operating system that caused a blue screen of death. Even after that issue was fixed DOS device names continue to be a factor.

## Modes of introduction

| Phase | Note |
| --- | --- |
| Implementation | - |
| Operation | - |

## Applicable platforms

**Operating systems:** Windows (Undetermined)

## Common consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Availability, Confidentiality, Other | DoS: Crash, Exit, or Restart, Read Application Data, Other | Not properly handling virtual filenames (e.g. AUX, CON, PRN, COM1, LPT1) can result in different types of vulnerabilities. In some cases an attacker can request a device via injection of a virtual filename in a URL, which may cause an error that leads to a denial of service or an error page that reveals sensitive information. A product that allows device names to bypass filtering runs the risk of an attacker injecting malicious code in a file with the name of a device. |

## Potential mitigations

### Implementation

Be familiar with the device names in the operating system where your system is deployed. Check input for these device names.

## Observed examples

| CVE | Description |
| --- | --- |
| CVE-2002-0106 | Server allows remote attackers to cause a denial of service via a series of requests to .JSP files that contain an MS-DOS device name. |
| CVE-2002-0200 | Server allows remote attackers to cause a denial of service via an HTTP request for an MS-DOS device name. |
| CVE-2002-1052 | Product allows remote attackers to use MS-DOS device names in HTTP requests to cause a denial of service or obtain the physical path of the server. |
| CVE-2001-0493 | Server allows remote attackers to cause a denial of service via a URL that contains an MS-DOS device name. |
| CVE-2001-0558 | Server allows a remote attacker to create a denial of service via a URL request which includes a MS-DOS device name. |
| CVE-2000-0168 | Microsoft Windows 9x operating systems allow an attacker to cause a denial of service via a pathname that includes file device names, aka the "DOS Device in Path Name" vulnerability. |
| CVE-2001-0492 | Server allows remote attackers to determine the physical path of the server via a URL containing MS-DOS device names. |
| CVE-2004-0552 | Product does not properly handle files whose names contain reserved MS-DOS device names, which can allow malicious code to bypass detection when it is installed, copied, or executed. |
| CVE-2005-2195 | Server allows remote attackers to cause a denial of service (application crash) via a URL with a filename containing a .cgi extension and an MS-DOS device name. |

## Real CVEs with this weakness

| CVE | Title | Severity | CVSS | EPSS | CISA KEV | Published |
| --- | --- | --- | --- | --- | --- | --- |
| CVE-2026-17545 | PHP on Windows: Reserved Device Names Are Not Rejected Before File/Stream I/O which can cause DoS | medium | 6.9 | - | No | 2026-09-25 |
| CVE-2026-102598 | Werkzeug safe\_join() allows Windows special device names | medium | 6.3 | - | No | 2026-09-29 |
| CVE-2026-27199 | Werkzeug safe\_join() allows Windows special device names | medium | 6.3 | - | No | 2026-02-21 |
| CVE-2026-21860 | Werkzeug safe\_join() allows Windows special device names with compound extensions | medium | 6.3 | - | No | 2026-01-08 |
| CVE-2025-66221 | Werkzeug safe\_join() allows Windows special device names | medium | 6.3 | - | No | 2025-11-29 |
| CVE-2024-35197 | gix refs and paths with reserved Windows device names access the devices | medium | 5.1 | - | No | 2024-05-23 |
| CVE-2024-51745 | Wasmtime doesn't fully sandbox all the Windows device filenames | low | 2.3 | - | No | 2024-11-05 |

## Related weaknesses

| Relationship | CWE | Name |
| --- | --- | --- |
| Parent | [CWE-66](https://radicalnotion.ai/cwe/cwe-66) | Improper Handling of File Names that Identify Virtual Resources |

## Taxonomy mappings

| Taxonomy | Entry | Id | Fit |
| --- | --- | --- | --- |
| PLOVER | Windows MS-DOS device names | - | - |
| CERT C Secure Coding | Do not perform operations on devices that are only appropriate for files | FIO32-C | CWE More Specific |
| The CERT Oracle Secure Coding Standard for Java (2011) | Do not operate on files in shared directories | FIO00-J | - |
| Software Fault Patterns | Path Traversal | SFP16 | - |

## Frequently asked questions

### What is CWE-67?

The product constructs pathnames from user input, but it does not handle or incorrectly handles a pathname containing a Windows device name such as AUX or CON. This typically leads to denial of service or an information exposure when the application attempts to process the pathname as a regular file.

### What CVEs are caused by CWE-67?

7 recorded CVEs are attributed to CWE-67, including CVE-2026-17545, CVE-2026-102598 and CVE-2026-27199.

### How do you prevent CWE-67?

Be familiar with the device names in the operating system where your system is deployed. Check input for these device names.

### What are the consequences of CWE-67?

Exploiting CWE-67 can lead to: DoS: Crash, Exit, or Restart, Read Application Data, Other.

### Is CWE-67 actively exploited?

7 recorded CVEs are caused by CWE-67; none are currently in CISA's KEV catalog of actively exploited flaws.

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

---

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