python: Undocumented local_file protocol allows remote attackers to bypass protection mechanisms
Published Mar 23, 2019
9.1
CRITICALCVSS 3.1
EPSS 11.84%
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.
Affected products
No data.
Configuration 1
Configuration 3
- 8.0
- 9.0
Configuration 4
- 29
- 30
Configuration 5
- 12.04
- 14.04
- 16.04
- 18.04
- 19.04
Configuration 6
- 7.0
- 8.0
- 8.1
- 8.2
- 8.4
- 8.6
- 7.0
- 8.0
- 8.4
- 8.2
- 8.4
- 8.6
- 7.0
- 8.0
No data.
Red Hat Ansible Tower 3.4 for RHEL 7
ansible-tower-34/ansible-tower-memcached:1.4.15-28
Fixed · RHBA-2020:0547
Red Hat Ansible Tower 3.4 for RHEL 7
ansible-tower-35/ansible-tower-memcached:1.4.15-28
Fixed · RHBA-2020:0547
Red Hat Ansible Tower 3.4 for RHEL 7
ansible-tower-37/ansible-tower-memcached-rhel7:1.4.15-28
Fixed · RHBA-2020:0547
Red Hat Enterprise Linux 7
python-0:2.7.5-86.el7
Fixed · RHSA-2019:2030
Red Hat Enterprise Linux 7.4 Advanced Update Support
python-0:2.7.5-63.el7_4
Fixed · RHSA-2020:1346
Red Hat Enterprise Linux 7.4 Telco Extended Update Support
python-0:2.7.5-63.el7_4
Fixed · RHSA-2020:1346
Red Hat Enterprise Linux 7.4 Update Services for SAP Solutions
python-0:2.7.5-63.el7_4
Fixed · RHSA-2020:1346
Red Hat Enterprise Linux 7.5 Extended Update Support
python-0:2.7.5-74.el7_5
Fixed · RHSA-2020:1268
Red Hat Enterprise Linux 7.6 Extended Update Support
python-0:2.7.5-83.el7_6
Fixed · RHSA-2020:1462
Red Hat Enterprise Linux 8
python27:2.7-8010020190903182548.51c94b97
Fixed · RHSA-2019:3335
Red Hat Enterprise Linux 8
python3-0:3.6.8-15.1.el8
Fixed · RHSA-2019:3520
Red Hat Enterprise Linux 8
python3-0:3.6.8-15.1.el8
Fixed · RHSA-2019:3520
Red Hat Software Collections for Red Hat Enterprise Linux 6
python27-python-0:2.7.16-6.el6
Fixed · RHSA-2019:1700
Red Hat Software Collections for Red Hat Enterprise Linux 6
rh-python36-python-0:3.6.9-2.el6
Fixed · RHSA-2019:3725
Red Hat Software Collections for Red Hat Enterprise Linux 7
python27-python-0:2.7.16-6.el7
Fixed · RHSA-2019:1700
Red Hat Software Collections for Red Hat Enterprise Linux 7
rh-python36-python-0:3.6.9-2.el7
Fixed · RHSA-2019:3725
Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS
python27-python-0:2.7.16-6.el7
Fixed · RHSA-2019:1700
Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS
python27-python-0:2.7.16-6.el7
Fixed · RHSA-2019:1700
Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS
rh-python36-python-0:3.6.9-2.el7
Fixed · RHSA-2019:3725
Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUS
python27-python-0:2.7.16-6.el7
Fixed · RHSA-2019:1700
Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUS
rh-python36-python-0:3.6.9-2.el7
Fixed · RHSA-2019:3725
Red Hat Software Collections for Red Hat Enterprise Linux 7.7 EUS
rh-python36-python-0:3.6.9-2.el7
Fixed · RHSA-2019:3725
Red Hat Enterprise Linux 5
python
Will not fix
Red Hat Enterprise Linux 6
python
Will not fix
Red Hat Enterprise Linux 7
python3
Not affected
Red Hat Enterprise Linux 8
python36:3.6/python36
Not affected
Red Hat Software Collections
rh-python35-python
Will not fix
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Ansible Tower 3.4 for RHEL 7 | ansible-tower-34/ansible-tower-memcached:1.4.15-28 | Fixed | RHBA-2020:0547 |
| Red Hat Ansible Tower 3.4 for RHEL 7 | ansible-tower-35/ansible-tower-memcached:1.4.15-28 | Fixed | RHBA-2020:0547 |
| Red Hat Ansible Tower 3.4 for RHEL 7 | ansible-tower-37/ansible-tower-memcached-rhel7:1.4.15-28 | Fixed | RHBA-2020:0547 |
| Red Hat Enterprise Linux 7 | python-0:2.7.5-86.el7 | Fixed | RHSA-2019:2030 |
| Red Hat Enterprise Linux 7.4 Advanced Update Support | python-0:2.7.5-63.el7_4 | Fixed | RHSA-2020:1346 |
| Red Hat Enterprise Linux 7.4 Telco Extended Update Support | python-0:2.7.5-63.el7_4 | Fixed | RHSA-2020:1346 |
| Red Hat Enterprise Linux 7.4 Update Services for SAP Solutions | python-0:2.7.5-63.el7_4 | Fixed | RHSA-2020:1346 |
| Red Hat Enterprise Linux 7.5 Extended Update Support | python-0:2.7.5-74.el7_5 | Fixed | RHSA-2020:1268 |
| Red Hat Enterprise Linux 7.6 Extended Update Support | python-0:2.7.5-83.el7_6 | Fixed | RHSA-2020:1462 |
| Red Hat Enterprise Linux 8 | python27:2.7-8010020190903182548.51c94b97 | Fixed | RHSA-2019:3335 |
| Red Hat Enterprise Linux 8 | python3-0:3.6.8-15.1.el8 | Fixed | RHSA-2019:3520 |
| Red Hat Enterprise Linux 8 | python3-0:3.6.8-15.1.el8 | Fixed | RHSA-2019:3520 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6 | python27-python-0:2.7.16-6.el6 | Fixed | RHSA-2019:1700 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6 | rh-python36-python-0:3.6.9-2.el6 | Fixed | RHSA-2019:3725 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | python27-python-0:2.7.16-6.el7 | Fixed | RHSA-2019:1700 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | rh-python36-python-0:3.6.9-2.el7 | Fixed | RHSA-2019:3725 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS | python27-python-0:2.7.16-6.el7 | Fixed | RHSA-2019:1700 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS | python27-python-0:2.7.16-6.el7 | Fixed | RHSA-2019:1700 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS | rh-python36-python-0:3.6.9-2.el7 | Fixed | RHSA-2019:3725 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUS | python27-python-0:2.7.16-6.el7 | Fixed | RHSA-2019:1700 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUS | rh-python36-python-0:3.6.9-2.el7 | Fixed | RHSA-2019:3725 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.7 EUS | rh-python36-python-0:3.6.9-2.el7 | Fixed | RHSA-2019:3725 |
| Red Hat Enterprise Linux 5 | python | Will not fix | n/a |
| Red Hat Enterprise Linux 6 | python | Will not fix | n/a |
| Red Hat Enterprise Linux 7 | python3 | Not affected | n/a |
| Red Hat Enterprise Linux 8 | python36:3.6/python36 | Not affected | n/a |
| Red Hat Software Collections | rh-python35-python | Will not fix | n/a |
No package ranges for this CVE.
Remediation
Red Hat 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.
Metrics
No CVSS v4.0 score for this CVE.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
AV:N/AC:L/Au:N/C:P/I:P/A:N
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2021–2026- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (20 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 11.84% (0.11844) | 95.97th | v5 (v2026.06.15) |
| Jun 15, 2026 | 11.84% (0.11844) | 95.54th | v5 (v2026.06.15) |
| Nov 18, 2025 | 1.51% (0.01513) | 79.58th | v4 (v2025.03.14) |
| Mar 17, 2025 | 0.44% (0.00441) | 61.06th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.34% (0.00345) | 72.49th | v3 (v2023.03.01) |
| Mar 16, 2024 | 0.46% (0.00460) | 74.80th | v3 (v2023.03.01) |
| Feb 8, 2024 | 0.32% (0.00324) | 69.94th | v3 (v2023.03.01) |
| Nov 8, 2023 | 0.32% (0.00324) | 67.44th | v3 (v2023.03.01) |
| Sep 19, 2023 | 0.26% (0.00262) | 63.30th | v3 (v2023.03.01) |
| Jul 15, 2023 | 0.29% (0.00292) | 64.93th | v3 (v2023.03.01) |
| May 18, 2023 | 0.36% (0.00359) | 68.04th | v3 (v2023.03.01) |
| Mar 30, 2023 | 0.37% (0.00373) | 68.48th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.19% (0.00187) | 54.31th | v3 (v2023.03.01) |
| Mar 6, 2023 | 4.36% (0.04358) | 88.02th | v2 (v2022.01.01) |
| Apr 1, 2022 | 4.36% (0.04358) | 86.83th | v2 (v2022.01.01) |
| Feb 4, 2022 | 37.15% (0.37149) | 97.07th | v2 (v2022.01.01) |
| Feb 3, 2022 | 21.63% (0.21633) | 94.47th | v1 |
| Jan 6, 2022 | 21.63% (0.21633) | 94.41th | v1 |
| Sep 1, 2021 | 5.80% (0.05796) | 89.03th | v1 |
| Apr 14, 2021 | 5.80% (0.05796) | 0.00th | v1 |
References (26)
- http://lists.opensuse.org/opensuse-security-announce/2019-04/msg00092.html vendor-advisoryx_refsource_SUSEMailing ListThird Party Advisory
- http://lists.opensuse.org/opensuse-security-announce/2019-06/msg00050.html vendor-advisoryx_refsource_SUSEMailing ListThird Party Advisory
- http://packetstormsecurity.com/files/154927/Slackware-Security-Advisory-python-Updates.html x_refsource_MISCThird Party AdvisoryVDB Entry
- http://www.securityfocus.com/bid/107549 vdb-entryx_refsource_BIDThird Party AdvisoryVDB Entry
- https://access.redhat.com/errata/RHSA-2019:1700 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/errata/RHSA-2019:2030 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/errata/RHSA-2019:3335 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/errata/RHSA-2019:3520 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/security/cve/CVE-2019-9948 Vendor Advisory
- https://bugs.python.org/issue35907 x_refsource_MISCExploitIssue TrackingVendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1695570 Issue Tracking
- https://github.com/python/cpython/pull/11842 x_refsource_MISCPatchThird Party Advisory
- https://lists.apache.org/thread.html/r1b103833cb5bc8466e24ff0ecc5e75b45a705334ab6a444e64e840a0%40%3Cissues.bookkeeper.apache.org%3E mailing-listx_refsource_MLIST
- https://lists.debian.org/debian-lts-announce/2019/06/msg00022.html mailing-listx_refsource_MLISTMailing ListThird Party Advisory
- https://lists.debian.org/debian-lts-announce/2019/07/msg00011.html mailing-listx_refsource_MLISTMailing ListThird Party Advisory
- https://lists.debian.org/debian-lts-announce/2020/07/msg00011.html mailing-listx_refsource_MLISTMailing ListThird Party Advisory
- https://lists.debian.org/debian-lts-announce/2020/08/msg00034.html mailing-listx_refsource_MLISTMailing ListThird Party Advisory
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HQEQLXLOCR3SNM3AA5RRYJFQ5AZBYJ4L/ vendor-advisoryx_refsource_FEDORA
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/KRYFIMISZ47NTAU3XWZUOFB7CYL62KES/ vendor-advisoryx_refsource_FEDORA
- https://nvd.nist.gov/vuln/detail/CVE-2019-9948
- https://seclists.org/bugtraq/2019/Oct/29 mailing-listx_refsource_BUGTRAQMailing ListThird Party Advisory
- https://security.gentoo.org/glsa/202003-26 vendor-advisoryx_refsource_GENTOOThird Party Advisory
- https://security.netapp.com/advisory/ntap-20190404-0004/ x_refsource_CONFIRMThird Party Advisory
- https://usn.ubuntu.com/4127-1/ vendor-advisoryx_refsource_UBUNTUThird Party Advisory
- https://usn.ubuntu.com/4127-2/ vendor-advisoryx_refsource_UBUNTUThird Party Advisory
- https://www.cve.org/CVERecord?id=CVE-2019-9948
Change history (0)
No recorded changes yet.