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.
High CVSS 7.5
- CVE id
- CVE-2019-17514
- Published
- Last modified
Affected packages
| Package | Affected versions | Fixed in |
|---|---|---|
| Python Runtimes and servers |
3.6.0 3.7.0 3.8.0 |
not fixed yet |
How to fix it
No fix yet. No fixed Python release is listed yet.
python --version
- Check the advisory and its references below for a workaround or a configuration change that turns off the affected feature.
- Limit exposure: don't pass untrusted input to the affected code path, and keep it off public endpoints if you can.
- Install the patched Python release of your minor line (pyenv, the python image tag, or your OS packages) and recreate virtual environments.
A free AIssue account reads the runtime versions your repositories pin (version files, Dockerfiles, build files) and tells you when one is affected.
Details
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-datacompilation-p2.py and nmr-datacompilation-p3.py, which call sort() directly.
References
- CVE-2019-17514 on the NVD
- Advisory: https://nvd.nist.gov/vuln/detail/CVE-2019-17514
- Web: https://bugs.python.org/issue33275
- Web: https://github.com/bminor/bash/blob/ac50fbac377e32b98d2de396f016ea81e8ee9961/pathexp.c#L380
- Web: https://github.com/bminor/bash/blob/ac50fbac377e32b98d2de396f016ea81e8ee9961/pathexp.c#L405
- Web: https://pubs.acs.org/doi/full/10.1021/acs.orglett.9b03216
- Web: https://pubs.acs.org/doi/suppl/10.1021/acs.orglett.9b03216/suppl_file/ol9b03216_si_002.zip
- Web: https://security.netapp.com/advisory/ntap-20191107-0005/
- Web: https://twitter.com/LucasCMoore/status/1181615421922824192
- Web: https://twitter.com/chris_bloke/status/1181997278136958976
- Web: https://usn.ubuntu.com/4428-1/
- Web: https://web.archive.org/web/20150822013622/https://docs.python.org/3/library/glob.html
- Web: https://web.archive.org/web/20150906020027/https://docs.python.org/2.7/library/glob.html
- Web: https://web.archive.org/web/20160309211341/https://docs.python.org/3/library/glob.html
- Web: https://web.archive.org/web/20160526201356/https://docs.python.org/2.7/library/glob.html
- Web: https://www.vice.com/en_us/article/zmjwda/a-code-glitch-may-have-caused-errors-in-more-than-100-published-studies
- Web: https://bugs.python.org/issue33275
- Web: https://github.com/bminor/bash/blob/ac50fbac377e32b98d2de396f016ea81e8ee9961/pathexp.c#L380
- Web: https://github.com/bminor/bash/blob/ac50fbac377e32b98d2de396f016ea81e8ee9961/pathexp.c#L405
- Web: https://pubs.acs.org/doi/full/10.1021/acs.orglett.9b03216
- Web: https://pubs.acs.org/doi/suppl/10.1021/acs.orglett.9b03216/suppl_file/ol9b03216_si_002.zip
Am I affected?
Upload or paste your lockfile. We check every package version in it against OSV.dev, this advisory included, and email you the vulnerable ones with the version that fixes them. Free, and no account needed.
About this data
Source: National Vulnerability Database (NVD) (public domain). Severity comes from the advisory's own rating when it has one, else from its CVSS score.