Skip to main content
No exploitation reportedFix available

CVE-2019-9948

No exploitation reported by the sources we read.

  • Published2019-03-23
  • Fixed in3.7.4 · 3.6.9 · 3.5.8 · 2.7.17
  • WeaknessCWE-22

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2019-03-2318:29CVE publishedNVD

Versions per branch

NVD
Python
BranchAffectedFixed in
3.7≥ 3.7.0, < 3.7.43.7.4
3.6≥ 3.6.0, < 3.6.93.6.9
3.5≥ 3.5.0, < 3.5.83.5.8
2.x≥ 2.0, < 2.7.172.7.17
Canonical ubuntu linux
BranchAffectedFixed in
12.4= 12.04no fix published
14.4= 14.04no fix published
16.4= 16.04no fix published
18.4= 18.04no fix published
19.4= 19.04no fix published
Redhat enterprise linux eus
BranchAffectedFixed in
8.1= 8.1no fix published
8.2= 8.2no fix published
8.4= 8.4no fix published
8.6= 8.6no fix published

8 more products in the sources.

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • babelRocky Linux:8all versions · fixed in 0:2.5.1-9.module+el8.4.0+403+9ae17a31
  • babelRed Hat:enterprise_linux:8::appstreamall versions · fixed in 0:2.5.1-9.module+el8.1.0+3111+de3f2d8eand 1 other package
  • CythonRocky Linux:8all versions · fixed in 0:0.28.1-7.module+el8.4.0+403+9ae17a31
  • CythonRocky Linux:8all versions · fixed in 0:0.28.1-7.module+el8.5.0+706+735ec4b3
  • CythonRed Hat:enterprise_linux:8::appstreamall versions · fixed in 0:0.28.1-7.module+el8.1.0+3111+de3f2d8eand 3 other packages
  • platform-pythonRed Hat:enterprise_linux:8::appstreamall versions · fixed in 0:3.6.8-15.1.el8and 7 other packages
  • pytestRocky Linux:8all versions · fixed in 0:3.4.2-13.module+el8.4.0+403+9ae17a31
  • pytestRocky Linux:8all versions · fixed in 0:3.4.2-13.module+el8.5.0+706+735ec4b3

193 more package ranges on OSV.dev

Vendor advisories

  • CVE-2019-9948 Red Hat Product Security840 products fixed · 16 known affected

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

    python.src as a component of Red Hat Enterprise Linux 5 · python as a component of Red Hat Enterprise Linux 6 · python-devel as a component of Red Hat Enterprise Linux 6 · +13 more

  • ICSA-23-348-10 CISA5 known affected

    Siemens SIMATIC S7-1500

    SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0) · SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0) · SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) · +2 more

  • SSA-398330 Siemens ProductCERT5 known affected

    SSA-398330: Vulnerabilities in the additional GNU/Linux subsystem of the SIMATIC S7-1500 CPU 1518(F)-4 PN/DP MFP >= V3.1.0 and < V3.1.5

    SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0) >= V3.1.0 < V3.1.5 · SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0) >= V3.1.0 < V3.1.5 · SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) >= V3.1.0 < V3.1.5 · +2 more

  • RHSA-2020:1462 Red Hat Product Security76 products fixed

    Red Hat Security Advisory: python security update

  • RHSA-2020:1346 Red Hat Product Security45 products fixed

    Red Hat Security Advisory: python security update

  • RHSA-2020:1268 Red Hat Product Security55 products fixed

    Red Hat Security Advisory: python security update

6 more advisories

Full record on NVD

Fix

  1. Update Python to 3.7.4 · 3.6.9 · 3.5.8 · 2.7.17
  2. Vendor fix CISA ICSA-23-348-10 · 5 productsUpdate to V3.1.5 or later version
  3. Vendor fix Siemens ProductCERT SSA-398330 · 1 productUpdate to V3.1.5 or later version
  4. Vendor fix Red Hat Product Security RHSA-2020:1462 · 76 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
  5. Vendor fix Red Hat Product Security RHBA-2020:0547 · 3 productsFor information on upgrading Ansible Tower, reference the Ansible Tower Upgrade and Migration Guide: https://docs.ansible.com/ansible-tower/latest/html/upgrade-migration-guide/index.html
  6. Workaround from the vendor Red Hat Product Security RHSA-2020:1462 · 76 productsIf 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.
  7. Mitigation from the vendor CISA ICSA-23-348-10 · 5 productsOnly build and run applications from trusted sources.

Advisories and patches

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

Technical details

CVSS v3 Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Published
2019-03-23
Last Modified
2026-10-14
NVD status
Modified
GitHub Advisory
GHSA-24p8-x4mp-cq86

Frequently asked questions

What is CVE-2019-9948?

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.

Is CVE-2019-9948 actively exploited?

Active exploitation of CVE-2019-9948 has not been confirmed. Its EPSS score was 11.8% on 2026-11-08, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2019-9948?

CVE-2019-9948 has a CVSS v3 base score of 9.1 (CRITICAL severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N.

Running Python? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Sources for this record