CVE-2019-14322 Pallets Werkzeug vulnerable to Path Traversal

High 7.5 Published Updated

Attackers can bypass path restrictions in SharedDataMiddleware on Windows to read arbitrary files via crafted drive names.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2019-14322?

CVE-2019-14322 is a high-severity path traversal vulnerability in n/a, published on 28 Jul 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

In Pallets Werkzeug before 0.15.5, SharedDataMiddleware mishandles drive names (such as C:) in Windows pathnames.

Weakness: CWE-22

Which versions are affected by CVE-2019-14322?

3 open source packages ship an affected version, including werkzeug. It affects 1 product.

PackageAffectedFixed in
werkzeug PyPIAll versions0.15.5
werkzeug PyPIAll versions0.15.5
werkzeug PyPIAll versions0.15.5

Products include Palletsprojects Werkzeug.

How do I fix CVE-2019-14322?

Upgrade werkzeug to 0.15.5 or later.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2019-14322 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2019-14322 exists.

Public exploit code: 1 Exploit-DB entry, 1 Nuclei template and 3 proofs of concept on GitHub.

Sources

Also known as GHSA-j544-7q9p-6xp8, PYSEC-2026-1065.

Is CVE-2019-14322 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free