Privilege escalation in OpenBSD
CVE-2019-19726
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.
Vulnerability class: Privilege Escalation
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.8 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.035, 89.4th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
Weakness classification (CWE)
Public exploits and proof-of-concept code
Metasploit modules
Also mentioned in 7 other repositories (alphaSeclab/sec-daily-2019, anoaghost/Localroot_Compile, ARPSyndicate/cvemon, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- www.openbsd.org/errata66.html (Patch, Vendor Advisory)
- www.openwall.com/lists/oss-security/2019/12/11/9 (Mailing List, Third Party Advisory)
- 20191212 Local Privilege Escalation in OpenBSD's dynamic loader (CVE-2019-19726) (mailing-list, Exploit, Mailing List, Third Party Advisory)
- packetstormsecurity.com/files/155658/Qualys-Security-Advisory-OpenBSD-Dynamic-L… (Exploit, VDB Entry, Third Party Advisory)
- 20191213 Local Privilege Escalation in OpenBSD's dynamic loader (CVE-2019-19726) (mailing-list, Exploit, Mailing List, Third Party Advisory)
- packetstormsecurity.com/files/155764/OpenBSD-Dynamic-Loader-chpass-Privilege-Es… (VDB Entry, Third Party Advisory)
- [oss-security] 20231003 CVE-2023-4911: Local Privilege Escalation in the glibc's ld.so (mailing-list)
- 20231005 CVE-2023-4911: Local Privilege Escalation in the glibc's ld.so (mailing-list)
- packetstormsecurity.com/files/174986/glibc-ld.so-Local-Privilege-Escalation.html
This CVE has public exploit evidence. See the latest CVEs with public exploits.