# CVE-2019-17514: library/glob.html in the Python 2 and 3 documentation before 2016 has potentially misleading information about whether sorting occurs, as d…

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 4.67%, higher than 91% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2019-10-12T12:07:23.000Z
- Modified: 2026-06-17T02:24:02.593Z
- Weaknesses: CWE-682
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- python python: 3.6.0; 3.7.0; 3.8.0

## Every score

- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:P/A:N`

## References

- <https://github.com/bminor/bash/blob/ac50fbac377e32b98d2de396f016ea81e8ee9961/pathexp.c#L380> (exploit, third-party-advisory)
- <https://github.com/bminor/bash/blob/ac50fbac377e32b98d2de396f016ea81e8ee9961/pathexp.c#L405> (exploit, third-party-advisory)
- <https://web.archive.org/web/20150906020027/https://docs.python.org/2.7/library/glob.html> (vendor-advisory)
- <https://web.archive.org/web/20160526201356/https://docs.python.org/2.7/library/glob.html> (vendor-advisory)
- <https://web.archive.org/web/20150822013622/https://docs.python.org/3/library/glob.html> (vendor-advisory)
- <https://web.archive.org/web/20160309211341/https://docs.python.org/3/library/glob.html> (vendor-advisory)
- <https://bugs.python.org/issue33275> (issue-tracking, vendor-advisory)
- <https://twitter.com/LucasCMoore/status/1181615421922824192> (issue-tracking, third-party-advisory)
- <https://pubs.acs.org/doi/suppl/10.1021/acs.orglett.9b03216/suppl_file/ol9b03216_si_002.zip> (third-party-advisory)
- <https://pubs.acs.org/doi/full/10.1021/acs.orglett.9b03216> (third-party-advisory)
- <https://www.vice.com/en_us/article/zmjwda/a-code-glitch-may-have-caused-errors-in-more-than-100-published-studies> (press/media-coverage, third-party-advisory)
- <https://twitter.com/chris_bloke/status/1181997278136958976> (third-party-advisory)
- <https://security.netapp.com/advisory/ntap-20191107-0005/>
- <https://usn.ubuntu.com/4428-1/> (vendor-advisory)

## Sources

- CVE List: [CVE-2019-17514](https://www.cve.org/CVERecord?id=CVE-2019-17514), CVE Terms of Use, modified 2024-08-05
- NVD: [CVE-2019-17514](https://nvd.nist.gov/vuln/detail/CVE-2019-17514), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2019-17514 · Whole record: https://cve.day/CVE-2019-17514.json · Rebuilt by cve.day 2026-11-25T22:57:47.459Z
