{"id":"CVE-2024-49766","aliases":["CVE-2024-49766","GHSA-f9vj-2wh5-fj8j","PYSEC-2026-2045"],"related":[],"kind":"vulnerability","state":"published","title":"Werkzeug safe_join not safe on Windows","summary":"Werkzeug is a Web Server Gateway Interface web application library. On Python < 3.11 on Windows, os.path.isabs() does not catch UNC paths like //server/share. Werkzeug's safe_join() relies on this check, and so can produce a path that is not safe, potentially allowing unintended access to data. Applications using Python >= 3.11, or not using Windows, are not vulnerable. Werkzeug version 3.0.6 contains a patch.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Werkzeug is a Web Server Gateway Interface web application library. On Python < 3.11 on Windows, os.path.isabs() does not catch UNC paths like //server/share. Werkzeug's safe_join() relies on this check, and so can produce a path that is not safe, potentially allowing unintended access to data. Applications using Python >= 3.11, or not using Windows, are not vulnerable. Werkzeug version 3.0.6 contains a patch.","source":"cvelist"},{"lang":"en","text":"On Python < 3.11 on Windows, `os.path.isabs()` does not catch UNC paths like `//server/share`. Werkzeug's `safe_join()` relies on this check, and so can produce a path that is not safe, potentially allowing unintended access to data. Applications using Python >= 3.11, or not using Windows, are not vulnerable.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Werkzeug es una librería de aplicaciones web de interfaz de puerta de enlace de servidor web. En Python anterior a la 3.11 en Windows, os.path.isabs() no detecta rutas UNC como //server/share. safe_join() de Werkzeug depende de esta comprobación y, por lo tanto, puede generar una ruta que no sea segura, lo que potencialmente permite un acceso no deseado a los datos. Las aplicaciones que usan Python anterior a la 3.11 o que no usan Windows no son vulnerables. La versión 3.0.6 de Werkzeug contiene un parche.","source":"nvd"}],"published":"2024-10-25T19:22:36.380Z","modified":"2026-09-10T03:50:19.894Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N","score":6.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N","score":6.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N","rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","score":5.3,"rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"version":"< 3.0.6","status":"affected"}],"vendor":"pallets","product":"werkzeug","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"3.0.6"}],"ecosystem":"PyPI","package":"werkzeug","purl":"pkg:pypi/werkzeug","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"3.0.6"}],"vendor":"palletsprojects","product":"werkzeug","cpe":"cpe:2.3:a:palletsprojects:werkzeug:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"3.0.6"}],"ecosystem":"PyPI","package":"werkzeug","purl":"pkg:pypi/werkzeug","source":"pysec"}],"references":[{"url":"https://github.com/pallets/werkzeug/security/advisories/GHSA-f9vj-2wh5-fj8j","tags":["vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/pallets/werkzeug/commit/2767bcb10a7dd1c297d812cc5e6d11a474c1f092","tags":["fix","patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/pallets/werkzeug/releases/tag/3.0.6","tags":["release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://security.netapp.com/advisory/ntap-20250131-0005/","tags":["third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-49766","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/pallets/werkzeug","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://security.netapp.com/advisory/ntap-20250131-0005","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/werkzeug","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-f9vj-2wh5-fj8j","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-10-25T20:08:46.055Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-49766","url":"https://www.cve.org/CVERecord?id=CVE-2024-49766","licence":"CVE Terms of Use","modified":"2025-01-31T15:02:48.308Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-f9vj-2wh5-fj8j","url":"https://github.com/advisories/GHSA-f9vj-2wh5-fj8j","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:19.894Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-49766","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-49766","licence":"Public domain","modified":"2026-06-17T08:00:24.517Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-2045","url":"https://osv.dev/vulnerability/PYSEC-2026-2045","licence":"CC-BY-4.0","modified":"2026-07-07T17:47:56.415Z"}],"updatedAt":"2026-11-25T22:58:47.348Z","epss":{"score":0.00776,"percentile":0.57006,"date":"2026-12-01T12:00:22.000Z"}}