CVE-2014-4650 Path traversal in n/a

Critical 9.8 Published Updated

Remote attackers can bypass path restrictions to read source code or execute arbitrary code via crafted URL-encoded path separators in Python's CGIHTTPServer.

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

What is CVE-2014-4650?

CVE-2014-4650 is a critical path traversal vulnerability in Python Python, published on 20 Feb 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

The CGIHTTPServer module in Python 2.7.5 and 3.3.4 does not properly handle URLs in which URL encoding is used for path separators, which allows remote attackers to read script source code or conduct directory traversal attacks and execute unintended code via a crafted character sequence, as demonstrated by a %2f separator.

Weakness: CWE-22

Which versions are affected by CVE-2014-4650?

It affects 3 products.

Products include Python Python, Redhat Enterprise Linux, Redhat Software Collections.

How do I fix CVE-2014-4650?

Upgrade to a fixed version.

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

Is CVE-2014-4650 being exploited?

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

Public exploit code: 1 Exploit-DB entry.

All Python Python vulnerabilities

Sources

Also known as DEBIAN-CVE-2014-4650, GHSA-33c8-ggqv-8g5p, UBUNTU-CVE-2014-4650.

Is CVE-2014-4650 in your software?

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

Check your SBOMs for free