PT-2025-48363 · Werkzeug · Werkzeug

Published

2025-11-29

·

Updated

2026-05-20

·

CVE-2025-66221

CVSS v4.0

6.3

Medium

VectorAV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
Name of the Vulnerable Software and Affected Versions Werkzeug versions prior to 3.1.4
Description The safe join function in Werkzeug versions prior to 3.1.4 improperly handles path segments containing Windows device names. On Windows systems, special device names like CON and AUX are present in every directory. The send from directory function utilizes safe join to serve files from user-specified paths. When a request path includes a Windows device name, file opening succeeds, but reading the file will cause the application to hang indefinitely. This occurs because the operating system attempts to access a device rather than a regular file.
Recommendations Update to Werkzeug version 3.1.4 or later.

Exploit

Fix

Weakness Enumeration

Related Identifiers

CVE-2025-66221
ECHO-7D05-D296-CA8F
GHSA-HGF8-39GV-G3F2
OPENSUSE-SU-2025:15848-1

Affected Products

Werkzeug