{"id":"CVE-2017-1000373","aliases":["EUVD-2017-1532","GHSA-wcg9-65qx-c5vj"],"status":"published","title":"The OpenBSD qsort() function is recursive, and not randomized, an attacker can construct a...","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.","severity":{"version":"3.0","score":6.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-09","score":0.1338,"percentile":0.96447,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":false},"cwes":["CWE-400"],"published":"2017-06-19T16:00:00Z","modified":"2026-06-17T00:59:03Z","exploits":[{"source":"exploitdb","id":"EDB-42271","title":"OpenBSD - 'at Stack Clash' Local Privilege Escalation","type":"local","platform":"openbsd","date":"2017-06-28","verified":true,"url":"https://www.exploit-db.com/exploits/42271"}],"products":[{"vendor":"openbsd","product":"openbsd"}],"references":[{"url":"https://www.exploit-db.com/exploits/42271/","tags":["exploit","x_refsource_EXPLOIT-DB","x_transferred"]},{"url":"https://support.apple.com/HT208144","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://www.qualys.com/2017/06/19/stack-clash/stack-clash.txt","tags":["x_refsource_MISC","x_transferred","Third Party Advisory"]},{"url":"https://cvsweb.openbsd.org/cgi-bin/cvsweb/src/lib/libc/stdlib/qsort.c?rev=1.15\u0026content-type=text/x-cvsweb-markup","tags":["x_refsource_MISC","x_transferred","Mitigation","Third Party Advisory"]},{"url":"http://www.securityfocus.com/bid/99177","tags":["vdb-entry","x_refsource_BID","x_transferred","Third Party Advisory","VDB Entry"]},{"url":"http://www.securitytracker.com/id/1039427","tags":["vdb-entry","x_refsource_SECTRACK","x_transferred"]},{"url":"https://support.apple.com/HT208113","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://support.apple.com/HT208112","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://support.apple.com/HT208115","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2017-1000373"},{"url":"https://www.exploit-db.com/exploits/42271"},{"url":"https://github.com/advisories/GHSA-wcg9-65qx-c5vj"}],"sources":{"cve":[{"id":"CVE-2017-1000373","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.","status":"published","published":"2017-06-19T16:00:00Z","modified":"2024-08-05T22:00:40.943Z","updated_at":"2026-11-02T14:33:21.142987Z"}],"euvd":[{"id":"EUVD-2017-1532","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.","status":"published","published":"2017-06-19T16:00:00Z","modified":"2024-08-05T22:00:40Z","updated_at":"2026-11-03T02:23:03.159581Z"}],"ghsa":[{"id":"GHSA-wcg9-65qx-c5vj","title":"The OpenBSD qsort() function is recursive, and not randomized, an attacker can construct a...","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.","status":"published","published":"2022-05-17T00:31:37Z","modified":"2025-04-20T03:40:22Z","cvss":[{"version":"3.0","score":6.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L","level":"medium"}],"cwes":["CWE-400"],"updated_at":"2026-11-02T15:01:48.455381Z"}],"nvd":[{"id":"CVE-2017-1000373","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.","status":"published","published":"2017-06-19T16:29:00.497Z","modified":"2026-06-17T00:59:03.21Z","cvss":[{"version":"3.0","score":6.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L","level":"medium","assessor":"primary"},{"version":"2.0","score":6.4,"vector":"AV:N/AC:L/Au:N/C:N/I:P/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-400"],"updated_at":"2026-11-02T14:03:50.782497Z"}]}}
