CVE-2019-17514

HIGH

Python - Incorrect Calculation in glob.glob Documentation

Title source: llm
STIX 2.1

Description

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.

References (14)

Core 14
Core References
Issue Tracking, Vendor Advisory x_refsource_misc
https://bugs.python.org/issue33275
Issue Tracking, Third Party Advisory x_refsource_misc
https://twitter.com/LucasCMoore/status/1181615421922824192
Third Party Advisory x_refsource_misc
https://pubs.acs.org/doi/full/10.1021/acs.orglett.9b03216
Third Party Advisory x_refsource_misc
https://twitter.com/chris_bloke/status/1181997278136958976
Vendor Advisory x_refsource_confirm
https://security.netapp.com/advisory/ntap-20191107-0005/
Vendor Advisory vendor-advisory x_refsource_ubuntu
https://usn.ubuntu.com/4428-1/

Scores

CVSS v3 7.5
EPSS 0.0467
EPSS Percentile 90.6%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Details

CWE
CWE-682
Status published
Products (3)
python/python 3.6.0
python/python 3.7.0
python/python 3.8.0
Published Oct 12, 2019
Tracked Since Feb 18, 2026