Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2019-17514
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 06:19 UTC · Revision 1
Source evidence
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.
osv:CVE-2019-17514
Complete source record
{
"id": "7514cd029521c73b398270b3d1991f54e45a4cac21b80fabc6fac02a5d954d18",
"url": "https://osv.dev/vulnerability/CVE-2019-17514",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2019-17514",
"summary": "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.",
"evidence": "osv:CVE-2019-17514",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2019-17514",
"aliases": [
"CVE-2019-17514"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/python/cpython",
"type": "GIT",
"events": [
{
"introduced": "5c4568a05a0a62b5947c55f68f9f2ecfb90a4f12"
},
{
"last_affected": "fa919fdf2583bdfead1df00e842f24f30b2a34bf"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:python:python:3.6.0:-:*:*:*:*:*:*",
"range": [
{
"introduced": "3.6.0-NA"
},
{
"last_affected": "3.6.0-NA"
}
],
"source": "CPE_STRING"
},
{
"cpe": "cpe:2.3:a:python:python:3.7.0:-:*:*:*:*:*:*",
"range": [
{
"introduced": "3.7.0-NA"
},
{
"last_affected": "3.7.0-NA"
}
],
"source": "CPE_STRING"
},
{
"cpe": "cpe:2.3:a:python:python:3.8.0:-:*:*:*:*:*:*",
"range": [
{
"introduced": "3.8.0-NA"
},
{
"last_affected": "3.8.0-NA"
}
],
"source": "CPE_STRING"
}
]
}
}
],
"versions": [
"3.6.0-NA",
"3.7.0-NA",
"3.8.0-NA"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2019-17514.json"
}
}
],
"modified": "2026-10-24T10:30:37.723030715Z",
"provider": "osv",
"references": [
"https://usn.ubuntu.com/4428-1/",
"https://pubs.acs.org/doi/full/10.1021/acs.orglett.9b03216",
"https://pubs.acs.org/doi/suppl/10.1021/acs.orglett.9b03216/suppl_file/ol9b03216_si_002.zip",
"https://security.netapp.com/advisory/ntap-20191107-0005/",
"https://twitter.com/chris_bloke/status/1181997278136958976",
"https://web.archive.org/web/20150822013622/https://docs.python.org/3/library/glob.html",
"https://web.archive.org/web/20150906020027/https://docs.python.org/2.7/library/glob.html",
"https://web.archive.org/web/20160309211341/https://docs.python.org/3/library/glob.html",
"https://web.archive.org/web/20160526201356/https://docs.python.org/2.7/library/glob.html",
"https://www.vice.com/en_us/article/zmjwda/a-code-glitch-may-have-caused-errors-in-more-than-100-published-studies",
"https://bugs.python.org/issue33275",
"https://twitter.com/LucasCMoore/status/1181615421922824192",
"https://github.com/bminor/bash/blob/ac50fbac377e32b98d2de396f016ea81e8ee9961/pathexp.c#L380",
"https://github.com/bminor/bash/blob/ac50fbac377e32b98d2de396f016ea81e8ee9961/pathexp.c#L405"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2019-17514",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 434291,
"published_at": "2019-10-12T13:15:10.79+00:00"
}