Vulnerabilities

CWE-67: Improper Handling of Windows Device Names

Weakness type from the CWE catalogue (version 4.21)

What the weakness means

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.

Definition as published by MITRE, in English.

5 vulnerabilities in the service point to this weakness

  1. CVE-2024-51745 Critical 10.0

    Wasmtime is a fast and secure runtime for WebAssembly. Wasmtime's filesystem sandbox implementation on Windows blocks access to special device filenames such as "COM1", "COM2", "LPT0", "LPT1", and so…

  2. CVE-2026-17545 High 7.5

    On Windows, PHP's filesystem and stream APIs do not reject reserved device names such as CON, PRN, AUX, NUL, COM1 to COM9, LPT1 to LPT9, CONIN$ and CONOUT$ when they appear as a component of a path. …

  3. CVE-2026-27199 Medium 5.3

    Werkzeug is a comprehensive WSGI web application library. Versions 3.1.5 and below, the safe_join function allows Windows device names as filenames if preceded by other path segments. This was previo…

  4. CVE-2026-21860 Medium 5.3

    Werkzeug is a comprehensive WSGI web application library. Prior to version 3.1.5, Werkzeug's safe_join function allows path segments with Windows device names that have file extensions or trailing sp…

  5. CVE-2025-66221 Medium 5.3

    Werkzeug is a comprehensive WSGI web application library. Prior to version 3.1.4, Werkzeug's safe_join function allows path segments with Windows device names. On Windows, there are special device na…