UBUNTU-CVE-2025-66221

Source
https://ubuntu.com/security/CVE-2025-66221
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-66221.json
JSON Data
https://api.test.osv.dev/v1/vulns/UBUNTU-CVE-2025-66221
Upstream
Published
2025-11-29T03:16:00Z
Modified
2025-12-04T08:31:29.913601Z
Severity
  • 6.3 (Medium) CVSS_V4 - 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 CVSS Calculator
  • Ubuntu - medium
Summary
[none]
Details

Werkzeug is a comprehensive WSGI web application library. Prior to version 3.1.4, Werkzeug's safejoin 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. sendfromdirectory uses safejoin 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.

References

Affected packages

Ubuntu:20.04:LTS

python-werkzeug

Package

Name
python-werkzeug
Purl
pkg:deb/ubuntu/python-werkzeug@0.16.1+dfsg1-2ubuntu0.2?arch=source&distro=focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

0.*

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": "0.16.1+dfsg1-2ubuntu0.2"
        }
    ]
}

Ubuntu:22.04:LTS

python-werkzeug

Package

Name
python-werkzeug
Purl
pkg:deb/ubuntu/python-werkzeug@2.0.2+dfsg1-1ubuntu0.22.04.3?arch=source&distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*

1.0.1+dfsg1-2

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": "2.0.2+dfsg1-1ubuntu0.22.04.3"
        }
    ]
}

Ubuntu:24.04:LTS

python-werkzeug

Package

Name
python-werkzeug
Purl
pkg:deb/ubuntu/python-werkzeug@3.0.1-3ubuntu0.2?arch=source&distro=noble

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

2.*

2.2.2-3

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.0.1-3ubuntu0.2"
        }
    ]
}

Ubuntu:25.04

python-werkzeug

Package

Name
python-werkzeug
Purl
pkg:deb/ubuntu/python-werkzeug@3.1.3-2?arch=source&distro=plucky

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

3.*

3.0.3-1
3.0.4-1ubuntu1
3.1.3-2

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "python3-werkzeug",
            "binary_version": "3.1.3-2"
        }
    ]
}

Ubuntu:25.10

python-werkzeug

Package

Name
python-werkzeug
Purl
pkg:deb/ubuntu/python-werkzeug@3.1.3-2?arch=source&distro=questing

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

3.*

3.1.3-2

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "python3-werkzeug",
            "binary_version": "3.1.3-2"
        }
    ]
}

Ubuntu:Pro:16.04:LTS

python-werkzeug

Package

Name
python-werkzeug
Purl
pkg:deb/ubuntu/python-werkzeug@0.10.4+dfsg1-1ubuntu1.2+esm2?arch=source&distro=esm-infra/xenial

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

0.*

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.10.4+dfsg1-1ubuntu1.2+esm2"
        },
        {
            "binary_name": "python3-werkzeug",
            "binary_version": "0.10.4+dfsg1-1ubuntu1.2+esm2"
        }
    ]
}

Ubuntu:Pro:18.04:LTS

python-werkzeug

Package

Name
python-werkzeug
Purl
pkg:deb/ubuntu/python-werkzeug@0.14.1+dfsg1-1ubuntu0.2+esm1?arch=source&distro=esm-infra/bionic

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

0.*

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": "python-werkzeug",
            "binary_version": "0.14.1+dfsg1-1ubuntu0.2+esm1"
        },
        {
            "binary_name": "python3-werkzeug",
            "binary_version": "0.14.1+dfsg1-1ubuntu0.2+esm1"
        }
    ]
}