Vulnerabilities / CVE-2019-9948

critical

CVE-2019-9948

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

Published Modified CWE 22
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Red Hat7.4CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N

Trivy's own label is CRITICAL. Rated critical by NVD, Photon OS. Rated lower by Red Hat (medium), AlmaLinux (medium), Amazon (medium), Oracle (medium), Rocky Linux (medium), Ubuntu (medium).

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 packages and fixed versions

SourcePackageFixed in
Photon OS 1.0python22.7.15-5.ph1
Photon OS 2.0python22.7.15-7.ph2
Photon OS 3.0python22.7.15-5.ph3
alma 8python27:2.7::python-psycopg2-doc, python27:2.7::python2-Cython, python27:2.7::python2-PyMySQL and 24 more2.7.5-7.module_el8.6.0+2781+fed64c13 and 22 more
alpine 3.10python2, python2-tkinter2.7.16-r1 and 1 more
alpine 3.11python2, python2-tkinter2.7.16-r1 and 1 more
alpine 3.12python22.7.16-r1
alpine 3.13python22.7.16-r1
alpine 3.14python22.7.16-r1
alpine 3.15python22.7.16-r1
alpine 3.7python22.7.15-r2
alpine 3.8python22.7.15-r2
Show all 207 entries from 31 sources
SourcePackageFixed in
Photon OS 1.0python22.7.15-5.ph1
Photon OS 2.0python22.7.15-7.ph2
Photon OS 3.0python22.7.15-5.ph3
alma 8python27:2.7::python-psycopg2-doc2.7.5-7.module_el8.6.0+2781+fed64c13
alma 8python27:2.7::python2-Cython0.28.1-7.module_el8.6.0+2781+fed64c13
alma 8python27:2.7::python2-PyMySQL0.8.0-10.module_el8.6.0+2781+fed64c13
alma 8python27:2.7::python2-attrs17.4.0-10.module_el8.6.0+2781+fed64c13
alma 8python27:2.7::python2-chardet3.0.4-10.module_el8.6.0+2781+fed64c13
alma 8python27:2.7::python2-coverage4.5.1-4.module_el8.6.0+2781+fed64c13
alma 8python27:2.7::python2-dns1.15.0-10.module_el8.6.0+2781+fed64c13
alma 8python27:2.7::python2-docs2.7.16-2.module_el8.6.0+2781+fed64c13
alma 8python27:2.7::python2-docs-info2.7.16-2.module_el8.6.0+2781+fed64c13
alma 8python27:2.7::python2-docutils0.14-12.module_el8.6.0+2781+fed64c13
alma 8python27:2.7::python2-funcsigs1.0.2-13.module_el8.6.0+2781+fed64c13
alma 8python27:2.7::python2-idna2.5-7.module_el8.6.0+2781+fed64c13
alma 8python27:2.7::python2-ipaddress1.0.18-6.module_el8.6.0+2781+fed64c13
alma 8python27:2.7::python2-markupsafe0.23-19.module_el8.6.0+2781+fed64c13
alma 8python27:2.7::python2-mock2.0.0-13.module_el8.6.0+2781+fed64c13
alma 8python27:2.7::python2-pluggy0.6.0-8.module_el8.6.0+2781+fed64c13
alma 8python27:2.7::python2-psycopg22.7.5-7.module_el8.6.0+2781+fed64c13
alma 8python27:2.7::python2-psycopg2-debug2.7.5-7.module_el8.6.0+2781+fed64c13
alma 8python27:2.7::python2-psycopg2-tests2.7.5-7.module_el8.6.0+2781+fed64c13
alma 8python27:2.7::python2-py1.5.3-6.module_el8.6.0+2781+fed64c13
alma 8python27:2.7::python2-pysocks1.6.8-6.module_el8.6.0+2781+fed64c13
alma 8python27:2.7::python2-pytest3.4.2-13.module_el8.6.0+2781+fed64c13
alma 8python27:2.7::python2-pytest-mock1.9.0-4.module_el8.6.0+2781+fed64c13
alma 8python27:2.7::python2-pytz2017.2-12.module_el8.6.0+2781+fed64c13
alma 8python27:2.7::python2-pyyaml3.12-16.module_el8.6.0+2781+fed64c13
alma 8python27:2.7::python2-rpm-macros3-38.module_el8.6.0+2781+fed64c13
alma 8python27:2.7::python2-setuptools_scm1.15.7-6.module_el8.6.0+2781+fed64c13
alpine 3.10python22.7.16-r1
alpine 3.10python2-tkinter2.7.17-r0
alpine 3.11python22.7.16-r1
alpine 3.11python2-tkinter2.7.17-r0
alpine 3.12python22.7.16-r1
alpine 3.13python22.7.16-r1
alpine 3.14python22.7.16-r1
alpine 3.15python22.7.16-r1
alpine 3.7python22.7.15-r2
alpine 3.8python22.7.15-r2
alpine 3.9python22.7.16-r1
amazon linux 1python272.7.16-1.129.amzn1
amazon linux 1python27-debuginfo2.7.16-1.129.amzn1
amazon linux 1python27-devel2.7.16-1.129.amzn1
amazon linux 1python27-libs2.7.16-1.129.amzn1
amazon linux 1python27-test2.7.16-1.129.amzn1
amazon linux 1python27-tools2.7.16-1.129.amzn1
amazon linux 1python343.4.10-1.49.amzn1
amazon linux 1python34-debuginfo3.4.10-1.49.amzn1
amazon linux 1python34-devel3.4.10-1.49.amzn1
amazon linux 1python34-libs3.4.10-1.49.amzn1
amazon linux 1python34-test3.4.10-1.49.amzn1
amazon linux 1python34-tools3.4.10-1.49.amzn1
amazon linux 2python2.7.16-3.amzn2.0.1
amazon linux 2python-debug2.7.16-3.amzn2.0.1
amazon linux 2python-debuginfo2.7.16-3.amzn2.0.1
amazon linux 2python-devel2.7.16-3.amzn2.0.1
amazon linux 2python-libs2.7.16-3.amzn2.0.1
amazon linux 2python-test2.7.16-3.amzn2.0.1
amazon linux 2python-tools2.7.16-3.amzn2.0.1
amazon linux 2tkinter2.7.16-3.amzn2.0.1
debian 10python3.73.7.3-2+deb10u1
debian 11python2.72.7.16-2
debian 8python2.72.7.9-2+deb8u3
debian 8python3.43.4.2-1+deb8u5
debian 9python2.72.7.13-2+deb9u4
debian 9python3.53.5.3-1+deb9u2
Oracle Linux 7python2.7.5-86.0.1.el7
Oracle Linux 7python-debug2.7.5-86.0.1.el7
Oracle Linux 7python-devel2.7.5-86.0.1.el7
Oracle Linux 7python-libs2.7.5-86.0.1.el7
Oracle Linux 7python-test2.7.5-86.0.1.el7
Oracle Linux 7python-tools2.7.5-86.0.1.el7
Oracle Linux 7tkinter2.7.5-86.0.1.el7
Oracle Linux 8babel2.5.1-9.module+el8.1.0+5396+a4103ad2
Oracle Linux 8platform-python3.6.8-15.1.0.1.el8
Oracle Linux 8platform-python-debug3.6.8-15.1.0.1.el8
Oracle Linux 8platform-python-devel3.6.8-15.1.0.1.el8
Oracle Linux 8python-nose-docs1.3.7-30.module+el8.1.0+5396+a4103ad2
Oracle Linux 8python-psycopg2-doc2.7.5-7.module+el8.1.0+5396+a4103ad2
Oracle Linux 8python-sqlalchemy-doc1.3.2-1.module+el8.1.0+5396+a4103ad2
Oracle Linux 8python22.7.16-12.0.1.module+el8.1.0+5396+a4103ad2
Oracle Linux 8python2-Cython0.28.1-7.module+el8.1.0+5396+a4103ad2
Oracle Linux 8python2-PyMySQL0.8.0-10.module+el8.1.0+5396+a4103ad2
Oracle Linux 8python2-attrs17.4.0-10.module+el8.1.0+5396+a4103ad2
Oracle Linux 8python2-babel2.5.1-9.module+el8.1.0+5396+a4103ad2
Oracle Linux 8python2-backports1.0-15.0.1.module+el8.1.0+5396+a4103ad2
Oracle Linux 8python2-backports-ssl_match_hostname3.5.0.1-11.module+el8.1.0+5396+a4103ad2
Oracle Linux 8python2-bson3.6.1-11.module+el8.1.0+5396+a4103ad2
Oracle Linux 8python2-chardet3.0.4-10.module+el8.1.0+5396+a4103ad2
Oracle Linux 8python2-coverage4.5.1-4.module+el8.1.0+5396+a4103ad2
Oracle Linux 8python2-debug2.7.16-12.0.1.module+el8.1.0+5396+a4103ad2
Oracle Linux 8python2-devel2.7.16-12.0.1.module+el8.1.0+5396+a4103ad2
Oracle Linux 8python2-dns1.15.0-10.module+el8.1.0+5396+a4103ad2
Oracle Linux 8python2-docs2.7.16-2.module+el8.1.0+5396+a4103ad2
Oracle Linux 8python2-docs-info2.7.16-2.module+el8.1.0+5396+a4103ad2
Oracle Linux 8python2-docutils0.14-12.module+el8.1.0+5396+a4103ad2
Oracle Linux 8python2-funcsigs1.0.2-13.module+el8.1.0+5396+a4103ad2
Oracle Linux 8python2-idna2.5-7.module+el8.1.0+5396+a4103ad2
Oracle Linux 8python2-ipaddress1.0.18-6.module+el8.1.0+5396+a4103ad2
Oracle Linux 8python2-jinja22.10-8.module+el8.1.0+5396+a4103ad2
Oracle Linux 8python2-libs2.7.16-12.0.1.module+el8.1.0+5396+a4103ad2
Oracle Linux 8python2-lxml4.2.3-3.module+el8.1.0+5396+a4103ad2
Oracle Linux 8python2-markupsafe0.23-19.module+el8.1.0+5396+a4103ad2
Oracle Linux 8python2-mock2.0.0-13.module+el8.1.0+5396+a4103ad2
Oracle Linux 8python2-nose1.3.7-30.module+el8.1.0+5396+a4103ad2
Oracle Linux 8python2-numpy1:1.14.2-13.module+el8.1.0+5396+a4103ad2
Oracle Linux 8python2-numpy-doc1:1.14.2-13.module+el8.1.0+5396+a4103ad2
Oracle Linux 8python2-numpy-f2py1:1.14.2-13.module+el8.1.0+5396+a4103ad2
Oracle Linux 8python2-pip9.0.3-14.module+el8.1.0+5396+a4103ad2
Oracle Linux 8python2-pip-wheel9.0.3-14.module+el8.1.0+5396+a4103ad2
Oracle Linux 8python2-pluggy0.6.0-8.module+el8.1.0+5396+a4103ad2
Oracle Linux 8python2-psycopg22.7.5-7.module+el8.1.0+5396+a4103ad2
Oracle Linux 8python2-psycopg2-debug2.7.5-7.module+el8.1.0+5396+a4103ad2
Oracle Linux 8python2-psycopg2-tests2.7.5-7.module+el8.1.0+5396+a4103ad2
Oracle Linux 8python2-py1.5.3-6.module+el8.1.0+5396+a4103ad2
Oracle Linux 8python2-pygments2.2.0-20.module+el8.1.0+5396+a4103ad2
Oracle Linux 8python2-pymongo3.6.1-11.module+el8.1.0+5396+a4103ad2
Oracle Linux 8python2-pymongo-gridfs3.6.1-11.module+el8.1.0+5396+a4103ad2
Oracle Linux 8python2-pysocks1.6.8-6.module+el8.1.0+5396+a4103ad2
Oracle Linux 8python2-pytest3.4.2-13.module+el8.1.0+5396+a4103ad2
Oracle Linux 8python2-pytest-mock1.9.0-4.module+el8.1.0+5396+a4103ad2
Oracle Linux 8python2-pytz2017.2-12.module+el8.1.0+5396+a4103ad2
Oracle Linux 8python2-pyyaml3.12-16.module+el8.1.0+5396+a4103ad2
Oracle Linux 8python2-requests2.20.0-2.module+el8.1.0+5396+a4103ad2
Oracle Linux 8python2-rpm-macros3-38.module+el8.1.0+5396+a4103ad2
Oracle Linux 8python2-scipy1.0.0-20.module+el8.1.0+5396+a4103ad2
Oracle Linux 8python2-setuptools39.0.1-11.module+el8.1.0+5396+a4103ad2
Oracle Linux 8python2-setuptools-wheel39.0.1-11.module+el8.1.0+5396+a4103ad2
Oracle Linux 8python2-setuptools_scm1.15.7-6.module+el8.1.0+5396+a4103ad2
Oracle Linux 8python2-six1.11.0-5.module+el8.1.0+5396+a4103ad2
Oracle Linux 8python2-sqlalchemy1.3.2-1.module+el8.1.0+5396+a4103ad2
Oracle Linux 8python2-test2.7.16-12.0.1.module+el8.1.0+5396+a4103ad2
Oracle Linux 8python2-tkinter2.7.16-12.0.1.module+el8.1.0+5396+a4103ad2
Oracle Linux 8python2-tools2.7.16-12.0.1.module+el8.1.0+5396+a4103ad2
Oracle Linux 8python2-urllib31.24.2-1.0.2.module+el8.1.0+5396+a4103ad2
Oracle Linux 8python2-virtualenv15.1.0-19.module+el8.1.0+5396+a4103ad2
Oracle Linux 8python2-wheel1:0.31.1-2.module+el8.1.0+5396+a4103ad2
Oracle Linux 8python2-wheel-wheel1:0.31.1-2.module+el8.1.0+5396+a4103ad2
Oracle Linux 8python3-idle3.6.8-15.1.0.1.el8
Oracle Linux 8python3-libs3.6.8-15.1.0.1.el8
Oracle Linux 8python3-test3.6.8-15.1.0.1.el8
Oracle Linux 8python3-tkinter3.6.8-15.1.0.1.el8
rapidfort fedora 43python3.153.15.0-1.fc43
rapidfort fedora 43python3.15-debug3.15.0-1.fc43
rapidfort fedora 43python3.15-devel3.15.0-1.fc43
rapidfort fedora 43python3.15-freethreading3.15.0-1.fc43
rapidfort fedora 43python3.15-freethreading-debug3.15.0-1.fc43
rapidfort fedora 43python3.15-freethreading-devel3.15.0-1.fc43
rapidfort fedora 43python3.15-freethreading-idle3.15.0-1.fc43
rapidfort fedora 43python3.15-freethreading-libs3.15.0-1.fc43
rapidfort fedora 43python3.15-freethreading-test3.15.0-1.fc43
rapidfort fedora 43python3.15-freethreading-tkinter3.15.0-1.fc43
rapidfort fedora 43python3.15-idle3.15.0-1.fc43
rapidfort fedora 43python3.15-libs3.15.0-1.fc43
rapidfort fedora 43python3.15-test3.15.0-1.fc43
rapidfort fedora 43python3.15-tkinter3.15.0-1.fc43
Red Hatpythonno fix listed
Red Hatpython-develno fix listed
Red Hatpython-libsno fix listed
Red Hatpython-testno fix listed
Red Hatpython-toolsno fix listed
Red Hattkinterno fix listed
rocky 8python27:2.7::babel2.5.1-9.module+el8.4.0+403+9ae17a31
rocky 8python27:2.7::python-psycopg2-doc2.7.5-7.module+el8.4.0+403+9ae17a31
rocky 8python27:2.7::python2-Cython0.28.1-7.module+el8.5.0+706+735ec4b3
rocky 8python27:2.7::python2-PyMySQL0.8.0-10.module+el8.5.0+706+735ec4b3
rocky 8python27:2.7::python2-attrs17.4.0-10.module+el8.5.0+706+735ec4b3
rocky 8python27:2.7::python2-babel2.5.1-9.module+el8.4.0+403+9ae17a31
rocky 8python27:2.7::python2-chardet3.0.4-10.module+el8.5.0+706+735ec4b3
rocky 8python27:2.7::python2-coverage4.5.1-4.module+el8.5.0+706+735ec4b3
rocky 8python27:2.7::python2-dns1.15.0-10.module+el8.7.0+1062+663ba31c
rocky 8python27:2.7::python2-docs2.7.16-2.module+el8.4.0+403+9ae17a31
rocky 8python27:2.7::python2-docs-info2.7.16-2.module+el8.4.0+403+9ae17a31
rocky 8python27:2.7::python2-docutils0.14-12.module+el8.4.0+403+9ae17a31
rocky 8python27:2.7::python2-funcsigs1.0.2-13.module+el8.4.0+403+9ae17a31
rocky 8python27:2.7::python2-idna2.5-7.module+el8.5.0+706+735ec4b3
rocky 8python27:2.7::python2-ipaddress1.0.18-6.module+el8.4.0+403+9ae17a31
rocky 8python27:2.7::python2-jinja22.10-8.module+el8.4.0+403+9ae17a31
rocky 8python27:2.7::python2-markupsafe0.23-19.module+el8.4.0+403+9ae17a31
rocky 8python27:2.7::python2-mock2.0.0-13.module+el8.4.0+403+9ae17a31
rocky 8python27:2.7::python2-pluggy0.6.0-8.module+el8.5.0+706+735ec4b3
rocky 8python27:2.7::python2-psycopg22.7.5-7.module+el8.4.0+403+9ae17a31
rocky 8python27:2.7::python2-psycopg2-debug2.7.5-7.module+el8.4.0+403+9ae17a31
rocky 8python27:2.7::python2-psycopg2-tests2.7.5-7.module+el8.4.0+403+9ae17a31
rocky 8python27:2.7::python2-py1.5.3-6.module+el8.5.0+706+735ec4b3
rocky 8python27:2.7::python2-pysocks1.6.8-6.module+el8.5.0+706+735ec4b3
rocky 8python27:2.7::python2-pytest3.4.2-13.module+el8.5.0+706+735ec4b3
rocky 8python27:2.7::python2-pytest-mock1.9.0-4.module+el8.4.0+403+9ae17a31
rocky 8python27:2.7::python2-pytz2017.2-12.module+el8.5.0+706+735ec4b3
rocky 8python27:2.7::python2-pyyaml3.12-16.module+el8.5.0+706+735ec4b3
rocky 8python27:2.7::python2-rpm-macros3-38.module+el8.4.0+403+9ae17a31
rocky 8python27:2.7::python2-setuptools_scm1.15.7-6.module+el8.4.0+403+9ae17a31
rocky 8python36:3.6::python-nose-docs1.3.7-30.module+el8.3.0+120+426d8baf
ubuntu 14.04-ESMpython2.72.7.6-8ubuntu0.6+esm2
ubuntu 14.04-ESMpython3.43.4.3-1ubuntu1~14.04.7+esm2
ubuntu 14.04-ESMpython3.53.5.2-2ubuntu0~16.04.4~14.04.1+esm1
ubuntu 16.04python2.72.7.12-1ubuntu0~16.04.8
ubuntu 16.04python3.53.5.2-2ubuntu0~16.04.8
ubuntu 16.04-ESMpython2.72.7.12-1ubuntu0~16.04.8
ubuntu 16.04-ESMpython3.53.5.2-2ubuntu0~16.04.8
ubuntu 18.04python2.72.7.15-4ubuntu4~18.04.1
ubuntu 18.04python3.63.6.8-1~18.04.2
ubuntu 18.04-ESMpython2.72.7.15-4ubuntu4~18.04.1
ubuntu 18.04-ESMpython3.63.6.8-1~18.04.2
ubuntu 18.10python2.72.7.16-2~18.10
ubuntu 19.04python3.73.7.3-2ubuntu0.1

References

All 61 references

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.