{"id":"CVE-2019-19726","published":"2019-12-12T00:00:00Z","modified":"2024-08-05T02:25:12Z","title":"OpenBSD through 6.6 allows local users to escalate to root because a check for LD_LIBRARY_PATH in setuid programs can…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.03522,"percentile":0.89187,"provenance":"source"},"cwes":[],"references":[{"url":"https://www.openbsd.org/errata66.html","tags":[]},{"url":"https://www.openwall.com/lists/oss-security/2019/12/11/9","tags":[]},{"url":"https://seclists.org/bugtraq/2019/Dec/25","tags":["mailing-list"]},{"url":"http://packetstormsecurity.com/files/155658/Qualys-Security-Advisory-OpenBSD-Dynamic-Loader-Privilege-Escalation.html","tags":[]},{"url":"http://seclists.org/fulldisclosure/2019/Dec/31","tags":["mailing-list"]},{"url":"http://packetstormsecurity.com/files/155764/OpenBSD-Dynamic-Loader-chpass-Privilege-Escalation.html","tags":[]},{"url":"http://www.openwall.com/lists/oss-security/2023/10/03/2","tags":["mailing-list"]},{"url":"http://seclists.org/fulldisclosure/2023/Oct/11","tags":["mailing-list"]},{"url":"http://packetstormsecurity.com/files/174986/glibc-ld.so-Local-Privilege-Escalation.html","tags":[]}],"priority":{"score":22.8,"factors":[{"name":"EPSS percentile","points":17.84},{"name":"Public exploit code","points":5.0}]},"exploitSources":{"exploitdb":{"count":3,"earliest":"2019-12-16"},"metasploit":[{"name":"OpenBSD Dynamic Loader chpass Privilege Escalation","module":"exploit/openbsd/local/dynamic_loader_chpass_privesc","type":"exploit","disclosureDate":"2019-12-11","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/openbsd/local/dynamic_loader_chpass_privesc.rb"}],"first":{"date":"2019-12-11","source":"Metasploit","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/openbsd/local/dynamic_loader_chpass_privesc.rb"},"provenance":"source"},"euvd":{"id":"EUVD-2019-9328","exploited":false,"provenance":"source"},"exploits":[{"id":47780,"url":"https://www.exploit-db.com/exploits/47780","title":"OpenBSD 6.x - Dynamic Loader Privilege Escalation","date":"2019-12-16","verified":true,"provenance":"source"},{"id":47803,"url":"https://www.exploit-db.com/exploits/47803","title":"OpenBSD - Dynamic Loader chpass Privilege Escalation (Metasploit)","date":"2019-12-30","verified":true,"provenance":"source"},{"id":47803,"url":"https://www.exploit-db.com/exploits/47803","title":"OpenBSD - Dynamic Loader chpass Privilege Escalation (Metasploit)","date":"2019-12-30","verified":true,"provenance":"source"}],"exploitRefs":["http://packetstormsecurity.com/files/155658/Qualys-Security-Advisory-OpenBSD-Dynamic-Loader-Privilege-Escalation.html","http://packetstormsecurity.com/files/155764/OpenBSD-Dynamic-Loader-chpass-Privilege-Escalation.html","http://packetstormsecurity.com/files/174986/glibc-ld.so-Local-Privilege-Escalation.html"]}