# CVE-2017-1000373: The OpenBSD qsort() function is recursive, and not randomized, an attacker can construct a pathological input array of N elements that caus…

- Severity: Medium 6.5 (CVSS:3.0, scored by NVD) `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L`
- 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): 13.4%, higher than 96% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2017-06-19T16:00:00.000Z
- Modified: 2026-06-17T00:59:03.210Z
- Weaknesses: CWE-400
- Assigned by: mitre

## Description

The OpenBSD qsort() function is recursive, and not randomized, an attacker can construct a pathological input array of N elements that causes qsort() to deterministically recurse N/4 times. This allows attackers to consume arbitrary amounts of stack memory and manipulate stack memory to assist in arbitrary code execution attacks. This affects OpenBSD 6.1 and possibly earlier versions.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- openbsd openbsd: up to 6.1

## Every score

- NVD: CVSS:3.0 6.5 Medium `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L`
- NVD: CVSS:2.0 6.4 Medium `AV:N/AC:L/Au:N/C:N/I:P/A:P`

## References

- <https://www.exploit-db.com/exploits/42271/> (exploit)
- <https://support.apple.com/HT208144>
- <https://www.qualys.com/2017/06/19/stack-clash/stack-clash.txt> (third-party-advisory)
- <https://cvsweb.openbsd.org/cgi-bin/cvsweb/src/lib/libc/stdlib/qsort.c?rev=1.15&content-type=text/x-cvsweb-markup> (mitigation, third-party-advisory)
- <http://www.securityfocus.com/bid/99177> (third-party-advisory, vdb-entry)
- <http://www.securitytracker.com/id/1039427> (vdb-entry)
- <https://support.apple.com/HT208113>
- <https://support.apple.com/HT208112>
- <https://support.apple.com/HT208115>

## Sources

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

---

Page: https://cve.day/CVE-2017-1000373 · Whole record: https://cve.day/CVE-2017-1000373.json · Rebuilt by cve.day 2026-11-25T22:57:31.165Z
