CVE-2019-9948 Path traversal in n/a

Critical 9.1 Published Updated

Attackers can bypass file URI blacklists using the local_file scheme to read arbitrary local files via urllib.

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-9948?

CVE-2019-9948 is a critical path traversal vulnerability in Canonical Ubuntu Linux, published on 23 Mar 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

urllib in Python 2.x through 2.7.16 supports the local_file: scheme, which makes it easier for remote attackers to bypass protection mechanisms that blacklist file: URIs, as demonstrated by triggering a urllib.urlopen('local_file:///etc/passwd') call.

Weakness: CWE-22

Which versions are affected by CVE-2019-9948?

It affects 11 products.

Products include Canonical Ubuntu Linux, Debian Debian Linux, Fedoraproject Fedora, Opensuse Leap, Python Python, Redhat Enterprise Linux Desktop and 5 more.

How do I fix CVE-2019-9948?

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-2019-9948 being exploited?

There is no known exploitation of CVE-2019-9948 in the wild and no public exploit code.

All Canonical Ubuntu Linux vulnerabilities

Sources

Also known as ALPINE-CVE-2019-9948, CLSA-2026-1777393949, CLSA-2026-1777446306, DEBIAN-CVE-2019-9948, DLA-1852-1, GHSA-24p8-x4mp-cq86 and 3 more.

Is CVE-2019-9948 in your software?

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

Check your SBOMs for free