CVE Database›Document archive›CVE-2019-9948

CVE-2019-9948

python: Undocumented local_file protocol allows remote attackers to bypass protection mechanisms

Loading…

Severity

Moderate

Red Hat Product Security

7.4

CVSS 3.0

Review impact separately from score.

Published · March 23, 2019

Updated · October 8, 2026

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.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

If your application uses a blacklist to prevent "file://" schema from being used, consider using a whitelist approach to just allow the schemas you want or add "local_file://" schema to your blacklist.

CVSS / CWE

CVSS 3.0 · 7.4
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N

CWE-749 · Exposed Dangerous Method or Function