nday
CVE-2024-34069 GHSA-2g68-c3qc-8985

Werkzeug's improper usage of a pathname and improper CSRF protection results in the remote command execution

pallets / werkzeug

Patch on record 926 days after disclosure. Patched: fixed in Werkzeug 3.0.3. Listed by 1 of 4 PoC sources: metasploit. Not in CISA KEV.

tags weakness typeCSRF accessnetworkno authentication required exploitationMetasploit ecosystemPyPI
why these tags

nday derives these tags by fixed rules from the facts below; NVD, the CNA and other sources do not assign them. Vocabulary and rules: ~/tags.

CSRF
CWE-352, stated by the CNA GitHub_M, NVD, republishing [email protected], and GitHub advisory GHSA-2g68-c3qc-8985
network
AV:N in CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H (CVSS 3.1) from the CNA GitHub_M
no authentication required
PR:N in CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H (CVSS 3.1) from the CNA GitHub_M
Metasploit
Metasploit modules exploit/multi/http/werkzeug_debug_rce
PyPI
GHSA-2g68-c3qc-8985: pip packages Werkzeug
stage
POC
disclosed
disclosure → patch
T+926d
cvss
7.5 HIGH v3.1

Lifecycle

x axis UTC; dot = exact minute, wide bar = date only, hollow = unknown or inferred.
time unknown
DISdisclosed
2024-05-06T14:44Z
PATpatch
2026-11-18T01:03Z
ANAanalysis
no record yet
POCPoC
metasploit
ITWexploited
no record yet
KEVKEV
no record yet

Summary

Werkzeug is a comprehensive WSGI web application library. The debugger in affected versions of Werkzeug can allow an attacker to execute code on a developer's machine under some circumstances. This requires the attacker to get the developer to interact with a domain and subdomain they control, and enter the debugger PIN, but if they are successful it allows access to the debugger even if it is only running on localhost. This also requires the attacker to guess a URL in the developer's application that will trigger the debugger. This vulnerability is fixed in 3.0.3.

Original text of the CVE record (cvelist), shown as published.

Exploit conditions

What an attack needs, read from the CVSS vector.
Attack vector AV:N
Network: the attacker only needs to reach it over the network
Attack complexity AC:H
High: success depends on conditions outside the attacker's control, such as gathering details of the target or winning a race
Privileges required PR:N
None: no account or authorization needed
User interaction UI:R
Required: a user must do something, such as open a file or click a link

CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H

CVSS 3.1 vector from the CVE record, scored by the CNA GitHub_M.

Event log

+DISdisclosed

CVE record published by GitHub_M. CVSS 7.5, high.

src cvelist · nday , bulk import · raw
{
  "id": 59932,
  "type": "disclosed",
  "source": "cvelist",
  "url": "https://www.cve.org/CVERecord?id=CVE-2024-34069",
  "occurred_at": "2024-05-06T14:44:38.78Z",
  "observed_at": "2026-11-12T17:00:49.411818Z",
  "is_backfill": true,
  "dedupe_key": "",
  "detail": {
    "cvss": {
      "source": "cna",
      "vector": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H",
      "version": "3.1",
      "base_score": 7.5,
      "base_severity": "HIGH"
    },
    "ssvc": {
      "timestamp": "2024-06-12T19:54:35.623303Z",
      "automatable": "no",
      "exploitation": "none",
      "technical_impact": "total"
    },
    "state": "PUBLISHED",
    "date_published": "2024-05-06T14:44:38.780Z",
    "assigner_short_name": "GitHub_M"
  }
}
no source time; observed live by nday
+PATpatch released

The advisory gives fixed version Werkzeug 3.0.3. Fix commits are linked. Advisory published ; the patch's own release time is not recorded.

src ghsa GHSA-2g68-c3qc-8985 · nday , observed live · raw
{
  "id": 478420,
  "type": "patch_released",
  "source": "ghsa",
  "url": "https://github.com/advisories/GHSA-2g68-c3qc-8985",
  "occurred_at": null,
  "observed_at": "2026-11-18T01:03:32.553114Z",
  "is_backfill": false,
  "dedupe_key": "GHSA-2g68-c3qc-8985",
  "detail": {
    "cvss": {
      "cvss_v3": {
        "score": 7.5,
        "vector_string": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H"
      },
      "cvss_v4": {
        "score": 0.0,
        "vector_string": null
      }
    },
    "cwes": [
      {
        "name": "Cross-Site Request Forgery",
        "cwe_id": "CWE-352"
      }
    ],
    "ghsa_id": "GHSA-2g68-c3qc-8985",
    "packages": [
      {
        "name": "Werkzeug",
        "ecosystem": "pip",
        "first_patched_version": "3.0.3",
        "vulnerable_version_range": "< 3.0.3"
      }
    ],
    "severity": "high",
    "references": [
      "https://github.com/pallets/werkzeug/security/advisories/GHSA-2g68-c3qc-8985",
      "https://github.com/pallets/werkzeug/commit/3386395b24c7371db11a5b8eaac0c91da5362692",
      "https://nvd.nist.gov/vuln/detail/CVE-2024-34069",
      "https://lists.fedoraproject.org/archives/list/[email protected]/message/H4SH32AM3CTPMAAEOIDAN7VU565LO4IR",
      "https://lists.fedoraproject.org/archives/list/[email protected]/message/HFERFN7PINV4MOGMGA3DPIXJPDCYOEJZ",
      "https://security.netapp.com/advisory/ntap-20240614-0004",
      "https://lists.debian.org/debian-lts-announce/2025/02/msg00026.html",
      "https://github.com/pallets/werkzeug/releases/tag/3.0.3",
      "https://github.com/pypa/advisory-database/tree/main/vulns/werkzeug/PYSEC-2026-2043.yaml",
      "https://pypi.org/project/werkzeug",
      "https://github.com/advisories/GHSA-2g68-c3qc-8985"
    ],
    "fix_commit_urls": [
      "https://github.com/pallets/werkzeug/commit/3386395b24c7371db11a5b8eaac0c91da5362692"
    ],
    "github_reviewed_at": "2024-05-06T14:21:27Z",
    "advisory_updated_at": "2026-11-18T00:16:57Z",
    "source_code_location": "https://github.com/pallets/werkzeug",
    "advisory_published_at": "2024-05-06T14:21:27Z"
  }
}
time unknownsource gave no time
+POCpublic PoC

Metasploit has module exploit/multi/http/werkzeug_debug_rce (Pallete Projects Werkzeug Debugger Remote Code Execution). The source gives no release time for the module.

src metasploit exploit/multi/http/werkzeug_debug_rce · nday , bulk import · raw
{
  "id": 51480,
  "type": "poc_published",
  "source": "metasploit",
  "url": "https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/werkzeug_debug_rce.rb",
  "occurred_at": null,
  "observed_at": "2026-11-12T15:24:51.477477Z",
  "is_backfill": true,
  "dedupe_key": "exploit/multi/http/werkzeug_debug_rce",
  "detail": {
    "url": "https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/werkzeug_debug_rce.rb",
    "kind": "msf_module",
    "path": "/modules/exploits/multi/http/werkzeug_debug_rce.rb",
    "rank": 400,
    "check": true,
    "title": "Pallete Projects Werkzeug Debugger Remote Code Execution",
    "cve_ids": [
      "CVE-2024-34069"
    ],
    "fullname": "exploit/multi/http/werkzeug_debug_rce",
    "rank_name": "good",
    "confidence": "curated",
    "module_type": "exploit",
    "module_last_modified": "2025-10-06 17:15:11 +0000",
    "vuln_disclosure_date": "2015-06-28"
  }
}

Report an error

report an error or omission

Something on this page wrong or missing? Tell the editors; if they accept it, this page's revision log says so publicly. Upstream data is not changed.

Researcher discussion

0 researchers mentioned this in the last 7 days

Posts on X by researchers on nday's list that mention this CVE, shown as posted. nday does not check them.

nday has not collected any post on X by listed researchers that mentions this CVE.

Discussion

0 comments

No comments yet.