{"id":"CVE-2019-19726","aliases":["EUVD-2019-9328","GHSA-wj9q-g984-cx8g"],"status":"published","title":"OpenBSD through 6.6 allows local users to escalate to root because a check for LD_LIBRARY_PATH in...","description":"OpenBSD through 6.6 allows local users to escalate to root because a check for LD_LIBRARY_PATH in setuid programs can be defeated by setting a very small RLIMIT_DATA resource limit. When executing chpass or passwd (which are setuid root), _dl_setup_env in ld.so tries to strip LD_LIBRARY_PATH from the environment, but fails when it cannot allocate memory. Thus, the attacker is able to execute their own library code as root.","severity":{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-09","score":0.03522,"percentile":0.89318,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":false},"cwes":["CWE-269"],"published":"2019-12-12T00:00:00Z","modified":"2026-06-17T02:27:08Z","exploits":[{"source":"exploitdb","id":"EDB-47780","title":"OpenBSD 6.x - Dynamic Loader Privilege Escalation","type":"local","platform":"openbsd","date":"2019-12-16","verified":true,"url":"https://www.exploit-db.com/exploits/47780"},{"source":"exploitdb","id":"EDB-47803","title":"OpenBSD - Dynamic Loader chpass Privilege Escalation (Metasploit)","type":"local","platform":"openbsd","date":"2019-12-30","verified":true,"url":"https://www.exploit-db.com/exploits/47803"},{"source":"metasploit","id":"exploit/openbsd/local/dynamic_loader_chpass_privesc","title":"OpenBSD Dynamic Loader chpass Privilege Escalation","type":"exploit","platform":"BSD,Unix","date":"2019-12-11","verified":true,"url":"https://www.rapid7.com/db/modules/exploit/openbsd/local/dynamic_loader_chpass_privesc"}],"products":[{"vendor":"openbsd","product":"openbsd"}],"references":[{"url":"https://www.openbsd.org/errata66.html","tags":["x_transferred","Patch","Vendor Advisory"]},{"url":"https://www.openwall.com/lists/oss-security/2019/12/11/9","tags":["x_transferred","Mailing List","Third Party Advisory"]},{"url":"https://seclists.org/bugtraq/2019/Dec/25","tags":["mailing-list","x_transferred","Exploit","Mailing List","Third Party Advisory"]},{"url":"http://packetstormsecurity.com/files/155658/Qualys-Security-Advisory-OpenBSD-Dynamic-Loader-Privilege-Escalation.html","tags":["x_transferred","Exploit","Third Party Advisory","VDB Entry"]},{"url":"http://seclists.org/fulldisclosure/2019/Dec/31","tags":["mailing-list","x_transferred","Exploit","Mailing List","Third Party Advisory"]},{"url":"http://packetstormsecurity.com/files/155764/OpenBSD-Dynamic-Loader-chpass-Privilege-Escalation.html","tags":["x_transferred","Third Party Advisory","VDB Entry"]},{"url":"http://www.openwall.com/lists/oss-security/2023/10/03/2","tags":["mailing-list","x_transferred"]},{"url":"http://seclists.org/fulldisclosure/2023/Oct/11","tags":["mailing-list","x_transferred"]},{"url":"http://packetstormsecurity.com/files/174986/glibc-ld.so-Local-Privilege-Escalation.html","tags":["x_transferred"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2019-19726"},{"url":"https://github.com/advisories/GHSA-wj9q-g984-cx8g"}],"sources":{"cve":[{"id":"CVE-2019-19726","description":"OpenBSD through 6.6 allows local users to escalate to root because a check for LD_LIBRARY_PATH in setuid programs can be defeated by setting a very small RLIMIT_DATA resource limit. When executing chpass or passwd (which are setuid root), _dl_setup_env in ld.so tries to strip LD_LIBRARY_PATH from the environment, but fails when it cannot allocate memory. Thus, the attacker is able to execute their own library code as root.","status":"published","published":"2019-12-12T00:00:00Z","modified":"2024-08-05T02:25:12.567Z","updated_at":"2026-11-02T14:20:20.74896Z"}],"euvd":[{"id":"EUVD-2019-9328","description":"OpenBSD through 6.6 allows local users to escalate to root because a check for LD_LIBRARY_PATH in setuid programs can be defeated by setting a very small RLIMIT_DATA resource limit. When executing chpass or passwd (which are setuid root), _dl_setup_env in ld.so tries to strip LD_LIBRARY_PATH from the environment, but fails when it cannot allocate memory. Thus, the attacker is able to execute their own library code as root.","status":"published","published":"2019-12-12T00:00:00Z","modified":"2024-08-05T02:25:12Z","updated_at":"2026-11-03T02:40:24.313121Z"}],"ghsa":[{"id":"GHSA-wj9q-g984-cx8g","title":"OpenBSD through 6.6 allows local users to escalate to root because a check for LD_LIBRARY_PATH in...","description":"OpenBSD through 6.6 allows local users to escalate to root because a check for LD_LIBRARY_PATH in setuid programs can be defeated by setting a very small RLIMIT_DATA resource limit. When executing chpass or passwd (which are setuid root), _dl_setup_env in ld.so tries to strip LD_LIBRARY_PATH from the environment, but fails when it cannot allocate memory. Thus, the attacker is able to execute their own library code as root.","status":"published","published":"2022-05-24T17:03:30Z","modified":"2023-10-06T18:30:28Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-269"],"updated_at":"2026-11-02T14:54:47.501822Z"}],"nvd":[{"id":"CVE-2019-19726","description":"OpenBSD through 6.6 allows local users to escalate to root because a check for LD_LIBRARY_PATH in setuid programs can be defeated by setting a very small RLIMIT_DATA resource limit. When executing chpass or passwd (which are setuid root), _dl_setup_env in ld.so tries to strip LD_LIBRARY_PATH from the environment, but fails when it cannot allocate memory. Thus, the attacker is able to execute their own library code as root.","status":"published","published":"2019-12-12T01:15:10.823Z","modified":"2026-06-17T02:27:08.85Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":7.2,"vector":"AV:L/AC:L/Au:N/C:C/I:C/A:C","level":"high","assessor":"primary"}],"cwes":["CWE-269"],"updated_at":"2026-11-02T14:05:40.258829Z"}]}}
