> CVE-2025-66221 [MEDIUM]

« BACK_TO_HOME
PUBLISHED
2025-11-29 03:16
MODIFIED
2025-11-29 03:16
CVSS_SCORE V3
6.3
EPSS (Prob. Exploit)
0.55%
Top 53.9%
DATA SOURCES:
NVD 🔗 2025-11-29 CVE PROJECT 🔗 2026-01-19 CWE MITRE 🔗 2026-11-01 FIRST EPSS 🔗 2026-11-08 GITHUB 🔗 2026-11-04 OSV 🔗 2026-11-08 MSRC 🔗 2026-10-01

> DESCRIPTION

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 names such as CON, AUX, etc that are implicitly present and readable in every directory. send_from_directory uses safe_join to safely serve files at user-specified paths under a directory. If the application is running on Windows, and the requested path ends with a special device name, the file will be opened successfully, but reading will hang indefinitely. This issue has been patched in version 3.1.4.

> AFFECTED_PRODUCTS

ℹ️ Aucun produit affecté n'a encore été publié par NVD pour cette CVE.

> CVSS V3 METRICS

CVSS_VECTOR
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

> MÉTRIQUES CVSS DÉTAILLÉES

CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Métrique Valeur Interprétation
AV (Vecteur d'Attaque)
Attack Vector
Network (N)
Exploit possible à distance via réseau (HTTP, API, etc.)
AC (Complexité d'Attaque)
Attack Complexity
Low (L)
Peu de conditions requises pour exploiter
PR (Privilèges Requis)
Privileges Required
None (N)
Aucune authentification requise
UI (Interaction Utilisateur)
User Interaction
None (N)
Aucune interaction utilisateur nécessaire
S (Périmètre)
Scope
Unchanged (U)
Impact reste dans le périmètre du composant compromis
C (Impact Confidentialité)
Confidentiality Impact
None (N)
Aucune divulgation d'informations
I (Impact Intégrité)
Integrity Impact
None (N)
Aucune modification de données possible
A (Impact Disponibilité)
Availability Impact
Low (L)
Interruption partielle du service possible

> RÉSUMÉ DES IMPACTS

Confidentialité
None
Aucune divulgation d'informations
Intégrité
None
Aucune modification de données possible
Disponibilité
Low
Interruption partielle du service possible

> WEAKNESSES

CWE-67

> CWE DETAILED DESCRIPTIONS

CWE-67: Improper Handling of Windows Device Names - 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.

> GITHUB SECURITY ADVISORY

GHSA-hgf8-39gv-g3f2 MODERATE

Werkzeug safe_join() allows Windows special device names

AFFECTED PACKAGES:
PIP / werkzeug
< 3.1.4
Fixed in: 3.1.4

> OSV (GOOGLE OPEN SOURCE VULNERABILITIES)

Werkzeug safe_join() allows Windows special device names

AFFECTED PACKAGES:
Unknown / Unknown
28 versions affected
ALIASES:
GHSA-hgf8-39gv-g3f2, PYSEC-2026-2046

> HISTORIQUE DES MODIFICATIONS

Première apparition
29/11/2025 03:16
Source: NVD
📊 ENRICHISSEMENT 19/01/2026 17:37
CVEPROJECT
Champ modifié: CVE Project
Ancienne valeur:
Non
Nouvelle valeur:
Oui
📊 ENRICHISSEMENT 01/12/2025 06:01
CWE
Champ modifié: Description CWE
Ancienne valeur:
N/A
Nouvelle valeur:
CWE-67: Improper Handling of Windows Device Names - The product constructs pathnames from user input, but it does not handle or incorrectly handles a pathname containing a Windows device name such as ...
Total des modifications: 2 Dernière mise à jour: 9 months ago

> REFERENCES

https://github.com/pallets/werkzeug/commit/4b833376a45c323a189cd11d2362bcffdb1c0...
https://github.com/pallets/werkzeug/releases/tag/3.1.4
https://github.com/pallets/werkzeug/security/advisories/GHSA-hgf8-39gv-g3f2
« BACK_TO_HOME