Skip to main content
← All vulnerabilities
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

Published
Last modified
published
Not listed in CISA KEV
3 on Exploit-DB, 1 Metasploit module

Summary

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.

Timeline

  1. CVE published
  2. Public exploit on Exploit-DB

    EDB-47780, EDB-47803, EDB-47803

  3. Record last updated

Affected versions

  • n/a n/a

    Version range not reported

References 12

openbsd.org

openwall.com

seclists.org

packetstormsecurity.com

Exploit-DB

GitHub · rapid7/metasploit-framework