Vulnerability 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.
CVSS Score
HIGH
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Openbsd | Openbsd | <= 6.6 |
Related Weaknesses (CWE)
References
- http://packetstormsecurity.com/files/155658/Qualys-Security-Advisory-OpenBSD-DynExploitThird Party AdvisoryVDB Entry
- http://packetstormsecurity.com/files/155764/OpenBSD-Dynamic-Loader-chpass-PrivilThird Party AdvisoryVDB Entry
- http://packetstormsecurity.com/files/174986/glibc-ld.so-Local-Privilege-Escalati
- http://seclists.org/fulldisclosure/2019/Dec/31ExploitMailing ListThird Party Advisory
- http://seclists.org/fulldisclosure/2023/Oct/11
- http://www.openwall.com/lists/oss-security/2023/10/03/2
- https://seclists.org/bugtraq/2019/Dec/25ExploitMailing ListThird Party Advisory
- https://www.openbsd.org/errata66.htmlPatchVendor Advisory
- https://www.openwall.com/lists/oss-security/2019/12/11/9Mailing ListThird Party Advisory
- http://packetstormsecurity.com/files/155658/Qualys-Security-Advisory-OpenBSD-DynExploitThird Party AdvisoryVDB Entry
- http://packetstormsecurity.com/files/155764/OpenBSD-Dynamic-Loader-chpass-PrivilThird Party AdvisoryVDB Entry
- http://packetstormsecurity.com/files/174986/glibc-ld.so-Local-Privilege-Escalati
- http://seclists.org/fulldisclosure/2019/Dec/31ExploitMailing ListThird Party Advisory
- http://seclists.org/fulldisclosure/2023/Oct/11
- http://www.openwall.com/lists/oss-security/2023/10/03/2
FAQ
What is CVE-2019-19726?
CVE-2019-19726 is a vulnerability with a CVSS score of 7.8 (HIGH). 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 chp...
How severe is CVE-2019-19726?
CVE-2019-19726 has been rated HIGH with a CVSS base score of 7.8/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2019-19726?
Check the references section above for vendor advisories and patch information. Affected products include: Openbsd Openbsd.