CVE-2019-17514
library/glob.html in the Python 2 and 3 documentation before 2016 has potentially misleading information about whether sorting occurs, as demonstrated by irreproducible cancer-research results. NOTE: the effects of this documentation cross application domains, and thus it is likely that security-relevant code elsewhere is affected. This issue is not a Python implementation bug, and there are no reports that NMR researchers were specifically relying on library/glob.html. In other words, because the older documentation stated "finds all the pathnames matching a specified pattern according to the rules used by the Unix shell," one might have incorrectly inferred that the sorting that occurs in a Unix shell also occurred for glob.glob. There is a workaround in newer versions of Willoughby nmr-data_compilation-p2.py and nmr-data_compilation-p3.py, which call sort() directly.
What to do
Fixed builds are available from Ubuntu: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 22.04 | python2.7 | Fix pending | UBUNTU-CVE-2019-17514 | |
| Ubuntu 20.04 | python2.7 | Fixed | 2.7.18-1~20.04.1 | UBUNTU-CVE-2019-17514 |
| Ubuntu 20.04 | python3.8 | Fixed | 3.8.2-1ubuntu1.2 | UBUNTU-CVE-2019-17514 |
| Ubuntu 18.04 | python2.7 | Fixed | 2.7.17-1~18.04ubuntu1.1 | UBUNTU-CVE-2019-17514 |
| Ubuntu 18.04 | python3.6 | Fixed | 3.6.9-1~18.04ubuntu1.1 | UBUNTU-CVE-2019-17514 |
| Ubuntu 18.04 | python3.7 | Fix pending | 3.7.5-2ubuntu1~18.04.2+esm3 (Ubuntu Pro) | UBUNTU-CVE-2019-17514 |
| Ubuntu 18.04 | python3.8 | Fixed | 3.8.0-3~18.04 | UBUNTU-CVE-2019-17514 |
| Ubuntu 16.04 | python2.7 | Fixed | 2.7.12-1ubuntu0~16.04.12 | UBUNTU-CVE-2019-17514 |
| Ubuntu 16.04 | python3.5 | Fixed | 3.5.2-2ubuntu0~16.04.11 | UBUNTU-CVE-2019-17514 |
| Ubuntu 14.04 | python2.7 | Fix pending | 2.7.6-8ubuntu0.6+esm6 (Ubuntu Pro) | UBUNTU-CVE-2019-17514 |
| Ubuntu 14.04 | python3.4 | Fix pending | 3.4.3-1ubuntu1~14.04.7+esm7 (Ubuntu Pro) | UBUNTU-CVE-2019-17514 |
| Ubuntu 14.04 | python3.5 | Fix pending | 3.5.2-2ubuntu0~16.04.4~14.04.1+esm1 (Ubuntu Pro) | UBUNTU-CVE-2019-17514 |
| Red Hat Enterprise Linux 8 | Cython | Not affected | ||
| Red Hat Enterprise Linux 8 | PyYAML | Not affected | ||
| Red Hat Enterprise Linux 8 | babel | Not affected | ||
| Red Hat Enterprise Linux 8 | mod_wsgi | Not affected | ||
| Red Hat Enterprise Linux 8 | numpy | Not affected | ||
| Red Hat Enterprise Linux 8 | platform-python | Not affected | ||
| Red Hat Enterprise Linux 8 | platform-python-debug | Not affected | ||
| Red Hat Enterprise Linux 8 | platform-python-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | python-PyMySQL | Not affected | ||
| Red Hat Enterprise Linux 8 | python-asn1crypto | Not affected | ||
| Red Hat Enterprise Linux 8 | python-cffi | Not affected | ||
| Red Hat Enterprise Linux 8 | python-chardet | Not affected | ||
| Red Hat Enterprise Linux 8 | python-cryptography | Not affected | ||
| Red Hat Enterprise Linux 8 | python-distro | Not affected | ||
| Red Hat Enterprise Linux 8 | python-docs | Not affected | ||
| Red Hat Enterprise Linux 8 | python-docutils | Not affected | ||
| Red Hat Enterprise Linux 8 | python-idna | Not affected | ||
| Red Hat Enterprise Linux 8 | python-jinja2 | Not affected | ||
| Red Hat Enterprise Linux 8 | python-lxml | Not affected | ||
| Red Hat Enterprise Linux 8 | python-markupsafe | Not affected | ||
| Red Hat Enterprise Linux 8 | python-nose | Not affected | ||
| Red Hat Enterprise Linux 8 | python-nose-docs | Not affected | ||
| Red Hat Enterprise Linux 8 | python-ply | Not affected | ||
| Red Hat Enterprise Linux 8 | python-psutil | Not affected | ||
| Red Hat Enterprise Linux 8 | python-psycopg2 | Not affected | ||
| Red Hat Enterprise Linux 8 | python-pycparser | Not affected | ||
| Red Hat Enterprise Linux 8 | python-pygments | Not affected | ||
| Red Hat Enterprise Linux 8 | python-pymongo | Not affected | ||
| Red Hat Enterprise Linux 8 | python-pymongo-doc | Not affected | ||
| Red Hat Enterprise Linux 8 | python-pysocks | Not affected | ||
| Red Hat Enterprise Linux 8 | python-requests | Not affected | ||
| Red Hat Enterprise Linux 8 | python-six | Not affected | ||
| Red Hat Enterprise Linux 8 | python-sqlalchemy | Not affected | ||
| Red Hat Enterprise Linux 8 | python-sqlalchemy-doc | Not affected | ||
| Red Hat Enterprise Linux 8 | python-urllib3 | Not affected | ||
| Red Hat Enterprise Linux 8 | python-virtualenv | Not affected | ||
| Red Hat Enterprise Linux 8 | python-virtualenv-doc | Not affected | ||
| Red Hat Enterprise Linux 8 | python-wheel | Not affected | ||
| Red Hat Enterprise Linux 8 | python2 | Not affected | ||
| Red Hat Enterprise Linux 8 | python2-debug | Not affected | ||
| Red Hat Enterprise Linux 8 | python2-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | python2-libs | Not affected | ||
| Red Hat Enterprise Linux 8 | python2-test | Not affected | ||
| Red Hat Enterprise Linux 8 | python2-tkinter | Not affected | ||
| Red Hat Enterprise Linux 8 | python2-tools | Not affected | ||
| Red Hat Enterprise Linux 8 | python3 | Not affected | ||
| Red Hat Enterprise Linux 8 | python3-PyMySQL | Not affected | ||
| Red Hat Enterprise Linux 8 | python3-bson | Not affected | ||
| Red Hat Enterprise Linux 8 | python3-distro | Not affected | ||
| Red Hat Enterprise Linux 8 | python3-docs | Not affected | ||
| Red Hat Enterprise Linux 8 | python3-docutils | Not affected | ||
| Red Hat Enterprise Linux 8 | python3-idle | Not affected | ||
| Red Hat Enterprise Linux 8 | python3-libs | Not affected | ||
| Red Hat Enterprise Linux 8 | python3-nose | Not affected | ||
| Red Hat Enterprise Linux 8 | python3-pygments | Not affected | ||
| Red Hat Enterprise Linux 8 | python3-pymongo | Not affected | ||
| Red Hat Enterprise Linux 8 | python3-pymongo-gridfs | Not affected | ||
| Red Hat Enterprise Linux 8 | python3-scipy | Not affected | ||
| Red Hat Enterprise Linux 8 | python3-sqlalchemy | Not affected | ||
| Red Hat Enterprise Linux 8 | python3-test | Not affected | ||
| Red Hat Enterprise Linux 8 | python3-tkinter | Not affected | ||
| Red Hat Enterprise Linux 8 | python3-virtualenv | Not affected | ||
| Red Hat Enterprise Linux 8 | python3-wheel | Not affected | ||
| Red Hat Enterprise Linux 8 | python3-wheel-wheel | Not affected | ||
| Red Hat Enterprise Linux 8 | python36 | Not affected | ||
| Red Hat Enterprise Linux 8 | python36-debug | Not affected | ||
| Red Hat Enterprise Linux 8 | python36-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | python36-rpm-macros | Not affected | ||
| Red Hat Enterprise Linux 8 | python38 | Not affected | ||
| Red Hat Enterprise Linux 8 | python38-Cython | Not affected | ||
| Red Hat Enterprise Linux 8 | python38-PyMySQL | Not affected | ||
| Red Hat Enterprise Linux 8 | python38-asn1crypto | Not affected | ||
| Red Hat Enterprise Linux 8 | python38-babel | Not affected | ||
| Red Hat Enterprise Linux 8 | python38-cffi | Not affected | ||
| Red Hat Enterprise Linux 8 | python38-chardet | Not affected | ||
| Red Hat Enterprise Linux 8 | python38-cryptography | Not affected | ||
| Red Hat Enterprise Linux 8 | python38-debug | Not affected | ||
| Red Hat Enterprise Linux 8 | python38-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | python38-idle | Not affected | ||
| Red Hat Enterprise Linux 8 | python38-idna | Not affected | ||
| Red Hat Enterprise Linux 8 | python38-jinja2 | Not affected | ||
| Red Hat Enterprise Linux 8 | python38-libs | Not affected | ||
| Red Hat Enterprise Linux 8 | python38-lxml | Not affected | ||
| Red Hat Enterprise Linux 8 | python38-markupsafe | Not affected | ||
| Red Hat Enterprise Linux 8 | python38-mod_wsgi | Not affected | ||
| Red Hat Enterprise Linux 8 | python38-numpy | Not affected | ||
| Red Hat Enterprise Linux 8 | python38-numpy-doc | Not affected | ||
| Red Hat Enterprise Linux 8 | python38-numpy-f2py | Not affected | ||
| Red Hat Enterprise Linux 8 | python38-pip | Not affected | ||
| Red Hat Enterprise Linux 8 | python38-pip-wheel | Not affected | ||
| Red Hat Enterprise Linux 8 | python38-ply | Not affected | ||
| Red Hat Enterprise Linux 8 | python38-psutil | Not affected | ||
| Red Hat Enterprise Linux 8 | python38-psycopg2 | Not affected | ||
| Red Hat Enterprise Linux 8 | python38-psycopg2-doc | Not affected | ||
| Red Hat Enterprise Linux 8 | python38-psycopg2-tests | Not affected | ||
| Red Hat Enterprise Linux 8 | python38-pycparser | Not affected | ||
| Red Hat Enterprise Linux 8 | python38-pysocks | Not affected | ||
| Red Hat Enterprise Linux 8 | python38-pytz | Not affected | ||
| Red Hat Enterprise Linux 8 | python38-pyyaml | Not affected | ||
| Red Hat Enterprise Linux 8 | python38-requests | Not affected | ||
| Red Hat Enterprise Linux 8 | python38-rpm-macros | Not affected | ||
| Red Hat Enterprise Linux 8 | python38-scipy | Not affected | ||
| Red Hat Enterprise Linux 8 | python38-setuptools | Not affected | ||
| Red Hat Enterprise Linux 8 | python38-setuptools-wheel | Not affected | ||
| Red Hat Enterprise Linux 8 | python38-six | Not affected | ||
| Red Hat Enterprise Linux 8 | python38-test | Not affected | ||
| Red Hat Enterprise Linux 8 | python38-tkinter | Not affected | ||
| Red Hat Enterprise Linux 8 | python38-urllib3 | Not affected | ||
| Red Hat Enterprise Linux 8 | python38-wheel | Not affected | ||
| Red Hat Enterprise Linux 8 | python38-wheel-wheel | Not affected | ||
| Red Hat Enterprise Linux 8 | python3x-pip | Not affected | ||
| Red Hat Enterprise Linux 8 | python3x-setuptools | Not affected | ||
| Red Hat Enterprise Linux 8 | python3x-six | Not affected | ||
| Red Hat Enterprise Linux 8 | pytz | Not affected | ||
| Red Hat Enterprise Linux 8 | scipy | Not affected | ||
| Red Hat Enterprise Linux 7 | python | Not affected | ||
| Red Hat Enterprise Linux 7 | python-debug | Not affected | ||
| Red Hat Enterprise Linux 7 | python-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | python-libs | Not affected | ||
| Red Hat Enterprise Linux 7 | python-test | Not affected | ||
| Red Hat Enterprise Linux 7 | python-tools | Not affected | ||
| Red Hat Enterprise Linux 7 | python3 | Not affected | ||
| Red Hat Enterprise Linux 7 | python3-debug | Not affected | ||
| Red Hat Enterprise Linux 7 | python3-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | python3-idle | Not affected | ||
| Red Hat Enterprise Linux 7 | python3-libs | Not affected | ||
| Red Hat Enterprise Linux 7 | python3-test | Not affected | ||
| Red Hat Enterprise Linux 7 | python3-tkinter | Not affected | ||
| Red Hat Enterprise Linux 7 | tkinter | Not affected | ||
| Red Hat Enterprise Linux 6 | python | Not affected | ||
| Red Hat Enterprise Linux 6 | python-devel | Not affected | ||
| Red Hat Enterprise Linux 6 | python-libs | Not affected | ||
| Red Hat Enterprise Linux 6 | python-test | Not affected | ||
| Red Hat Enterprise Linux 6 | python-tools | Not affected | ||
| Red Hat Enterprise Linux 6 | tkinter | Not affected | ||
| Red Hat Enterprise Linux 5 | python | Not affected |
What the vendor says
As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
Vendor advisories:
- https://usn.ubuntu.com/4428-1/ (vendor-advisory)
References
- https://web.archive.org/web/20150906020027/https://docs.python.org/2.7/library/glob.html
- https://web.archive.org/web/20160526201356/https://docs.python.org/2.7/library/glob.html
- https://web.archive.org/web/20150822013622/https://docs.python.org/3/library/glob.html
- https://web.archive.org/web/20160309211341/https://docs.python.org/3/library/glob.html
- https://github.com/bminor/bash/blob/ac50fbac377e32b98d2de396f016ea81e8ee9961/pathexp.c#L380
- https://github.com/bminor/bash/blob/ac50fbac377e32b98d2de396f016ea81e8ee9961/pathexp.c#L405
- https://bugs.python.org/issue33275
- https://twitter.com/LucasCMoore/status/1181615421922824192
- https://pubs.acs.org/doi/suppl/10.1021/acs.orglett.9b03216/suppl_file/ol9b03216_si_002.zip
- https://pubs.acs.org/doi/full/10.1021/acs.orglett.9b03216
- https://www.vice.com/en_us/article/zmjwda/a-code-glitch-may-have-caused-errors-in-more-than-100-published-studies
- https://twitter.com/chris_bloke/status/1181997278136958976
- https://security.netapp.com/advisory/ntap-20191107-0005/
- https://usn.ubuntu.com/4428-1/
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.