Vulnerabilities · 2019 · Python
CVE-2019-17514
Python vulnerability
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.
Affected products
Python. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Python runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- bugs.python.org/issue33275 · Vendor Advisory
- web.archive.org/web/20150822013622/https://docs.python.org/3/library/glob.html · Vendor Advisory
- web.archive.org/web/20150906020027/https://docs.python.org/2.7/library/glob.html · Vendor Advisory
- web.archive.org/web/20160309211341/https://docs.python.org/3/library/glob.html · Vendor Advisory
- web.archive.org/web/20160526201356/https://docs.python.org/2.7/library/glob.html · Vendor Advisory
- github.com/bminor/bash/blob/ac50fbac377e32b98d2de396f016ea81e8ee9961/pathexp.c#L380 · Exploit
- github.com/bminor/bash/blob/ac50fbac377e32b98d2de396f016ea81e8ee9961/pathexp.c#L405 · Exploit
- pubs.acs.org/doi/full/10.1021/acs.orglett.9b03216 · Third Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2019-17514
- cve.org/CVERecord?id=CVE-2019-17514
More vulnerabilities in Python products
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.