{"id":"CVE-2017-1000373","url":"https://www.cyber-defence.io/tools/cve/CVE-2017-1000373","generatedAt":"2026-10-28T22:21:36.004Z","title":"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.","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.","published":"2017-06-19T16:29:00.000Z","lastModified":"2026-06-17T00:59:03.000Z","status":"Modified","sourceIdentifier":"cve@mitre.org","cvss":{"version":"3.0","score":6.5,"severity":"MEDIUM","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L"},"cwe":["CWE-400"],"affected":["openbsd/openbsd"],"epss":{"score":0.1338,"percentile":0.964,"date":"2026-10-27","history":[{"date":"2026-09-21","score":0.14864,"percentile":0.96598},{"date":"2026-09-22","score":0.1338,"percentile":0.96241}]},"kev":{"listed":false},"exploits":{"count":1,"verified":true,"firstPublished":"2017-06-28","source":"Exploit-DB (https://gitlab.com/exploit-database/exploitdb)","entries":[{"edbId":42271,"kind":"exploit","title":"OpenBSD - 'at Stack Clash' Local Privilege Escalation","url":"https://www.exploit-db.com/exploits/42271","sourceUrl":"https://gitlab.com/exploit-database/exploitdb/-/blob/main/exploits/openbsd/local/42271.c","file":"exploits/openbsd/local/42271.c","published":"2017-06-28","added":"2017-06-28","updated":"2017-07-19","author":"Qualys Corporation","type":"local","platform":"openbsd","port":null,"verified":true,"codes":["CVE-2017-1000373"],"tags":null,"aliases":"Stack Clash","applicationUrl":null,"screenshotUrl":null,"referenceUrl":"https://www.qualys.com/2017/06/19/stack-clash/openbsd_at.c"}]},"verdict":{"level":"urgent","text":"EPSS puts the probability of exploitation in the next 30 days at 13.4%, higher than 96% of all known CVEs. Patch or mitigate before the next change window."},"changes":[],"references":[{"url":"http://www.securityfocus.com/bid/99177","tags":["Third Party Advisory","VDB Entry"],"source":"cve@mitre.org"},{"url":"http://www.securitytracker.com/id/1039427","source":"cve@mitre.org"},{"url":"https://cvsweb.openbsd.org/cgi-bin/cvsweb/src/lib/libc/stdlib/qsort.c?rev=1.15&content-type=text/x-cvsweb-markup","tags":["Mitigation","Third Party Advisory"],"source":"cve@mitre.org"},{"url":"https://support.apple.com/HT208112","source":"cve@mitre.org"},{"url":"https://support.apple.com/HT208113","source":"cve@mitre.org"},{"url":"https://support.apple.com/HT208115","source":"cve@mitre.org"},{"url":"https://support.apple.com/HT208144","source":"cve@mitre.org"},{"url":"https://www.exploit-db.com/exploits/42271/","source":"cve@mitre.org"},{"url":"https://www.qualys.com/2017/06/19/stack-clash/stack-clash.txt","tags":["Third Party Advisory"],"source":"cve@mitre.org"},{"url":"http://www.securityfocus.com/bid/99177","tags":["Third Party Advisory","VDB Entry"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://www.securitytracker.com/id/1039427","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://cvsweb.openbsd.org/cgi-bin/cvsweb/src/lib/libc/stdlib/qsort.c?rev=1.15&content-type=text/x-cvsweb-markup","tags":["Mitigation","Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://support.apple.com/HT208112","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://support.apple.com/HT208113","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://support.apple.com/HT208115","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://support.apple.com/HT208144","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://www.exploit-db.com/exploits/42271/","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://www.qualys.com/2017/06/19/stack-clash/stack-clash.txt","tags":["Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"}],"sources":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2017-1000373","epss":"https://www.first.org/epss/","kev":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","exploitdb":"https://www.exploit-db.com/"},"licence":"CC BY 4.0 — link back to the CVE Explorer if you publish the results; upstream data remains subject to its own terms."}