UBUNTU-CVE-2025-66221 (CVE-2025-66221)

Vulnerability from osv_ubuntu – Published: 2025-11-29 03:16 – Updated: 2025-12-08 05:18 – Source website
Withdrawn 2025-12-11 VLAI
Details

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": [
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "python-werkzeug",
            "binary_version": "0.10.4+dfsg1-1ubuntu1.2+esm2"
          },
          {
            "binary_name": "python3-werkzeug",
            "binary_version": "0.10.4+dfsg1-1ubuntu1.2+esm2"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:Pro:16.04:LTS",
        "name": "python-werkzeug",
        "purl": "pkg:deb/ubuntu/python-werkzeug@0.10.4+dfsg1-1ubuntu1.2+esm2?arch=source\u0026distro=esm-infra/xenial"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "0.10.4+dfsg1-1ubuntu1",
        "0.10.4+dfsg1-1ubuntu1.1",
        "0.10.4+dfsg1-1ubuntu1.2",
        "0.10.4+dfsg1-1ubuntu1.2+esm1",
        "0.10.4+dfsg1-1ubuntu1.2+esm2"
      ]
    },
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "python-werkzeug",
            "binary_version": "0.14.1+dfsg1-1ubuntu0.2+esm1"
          },
          {
            "binary_name": "python3-werkzeug",
            "binary_version": "0.14.1+dfsg1-1ubuntu0.2+esm1"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:Pro:18.04:LTS",
        "name": "python-werkzeug",
        "purl": "pkg:deb/ubuntu/python-werkzeug@0.14.1+dfsg1-1ubuntu0.2+esm1?arch=source\u0026distro=esm-infra/bionic"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "0.12.2+dfsg1-2",
        "0.13+dfsg1-1",
        "0.14.1+dfsg1-1",
        "0.14.1+dfsg1-1ubuntu0.1",
        "0.14.1+dfsg1-1ubuntu0.2",
        "0.14.1+dfsg1-1ubuntu0.2+esm1"
      ]
    },
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "python3-werkzeug",
            "binary_version": "0.16.1+dfsg1-2ubuntu0.2"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:20.04:LTS",
        "name": "python-werkzeug",
        "purl": "pkg:deb/ubuntu/python-werkzeug@0.16.1+dfsg1-2ubuntu0.2?arch=source\u0026distro=focal"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "0.14.1+dfsg1-4",
        "0.15.6+dfsg1-1",
        "0.16.0+dfsg1-1",
        "0.16.1+dfsg1-1ubuntu1",
        "0.16.1+dfsg1-2",
        "0.16.1+dfsg1-2ubuntu0.1",
        "0.16.1+dfsg1-2ubuntu0.2"
      ]
    },
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "python3-werkzeug",
            "binary_version": "2.0.2+dfsg1-1ubuntu0.22.04.3"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:22.04:LTS",
        "name": "python-werkzeug",
        "purl": "pkg:deb/ubuntu/python-werkzeug@2.0.2+dfsg1-1ubuntu0.22.04.3?arch=source\u0026distro=jammy"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "1.0.1+dfsg1-2",
        "2.0.2+dfsg1-1",
        "2.0.2+dfsg1-1ubuntu0.22.04.1",
        "2.0.2+dfsg1-1ubuntu0.22.04.2",
        "2.0.2+dfsg1-1ubuntu0.22.04.3"
      ]
    },
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "python3-werkzeug",
            "binary_version": "3.0.1-3ubuntu0.2"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:24.04:LTS",
        "name": "python-werkzeug",
        "purl": "pkg:deb/ubuntu/python-werkzeug@3.0.1-3ubuntu0.2?arch=source\u0026distro=noble"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "2.2.2-3",
        "3.0.1-1",
        "3.0.1-2",
        "3.0.1-3",
        "3.0.1-3ubuntu0.1",
        "3.0.1-3ubuntu0.2"
      ]
    },
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "python3-werkzeug",
            "binary_version": "3.1.3-2"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:25.10",
        "name": "python-werkzeug",
        "purl": "pkg:deb/ubuntu/python-werkzeug@3.1.3-2?arch=source\u0026distro=questing"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "3.1.3-2"
      ]
    },
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "python3-werkzeug",
            "binary_version": "3.1.3-2"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:25.04",
        "name": "python-werkzeug",
        "purl": "pkg:deb/ubuntu/python-werkzeug@3.1.3-2?arch=source\u0026distro=plucky"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "3.0.3-1",
        "3.0.4-1ubuntu1",
        "3.1.3-2"
      ]
    }
  ],
  "aliases": [],
  "details": "Werkzeug is a comprehensive WSGI web application library. Prior to version 3.1.4, Werkzeug\u0027s 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.",
  "id": "UBUNTU-CVE-2025-66221",
  "modified": "2025-12-08T05:18:09Z",
  "published": "2025-11-29T03:16:00Z",
  "references": [
    {
      "type": "REPORT",
      "url": "https://ubuntu.com/security/CVE-2025-66221"
    },
    {
      "type": "REPORT",
      "url": "https://www.cve.org/CVERecord?id=CVE-2025-66221"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/pallets/werkzeug/security/advisories/GHSA-hgf8-39gv-g3f2"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/pallets/werkzeug/commit/4b833376a45c323a189cd11d2362bcffdb1c0c13"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/pallets/werkzeug/commit/4b833376a45c323a189cd11d2362bcffdb1c0c13"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/pallets/werkzeug/releases/tag/3.1.4"
    }
  ],
  "related": [],
  "schema_version": "1.7.0",
  "severity": [
    {
      "score": "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",
      "type": "CVSS_V4"
    },
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L",
      "type": "CVSS_V3"
    },
    {
      "score": "medium",
      "type": "Ubuntu"
    }
  ],
  "upstream": [
    "CVE-2025-66221"
  ],
  "withdrawn": "2025-12-11T05:36:09Z"
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
Events included in the timeline

Loading timeline…


    Loading…

    Loading…

    Loading…

    Related by attack behaviour

    Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.