# CVE-2019-19726: OpenBSD through 6.6 allows local users to escalate to root because a check for LDLIBRARYPATH in setuid programs can be defeated by setting…

- Severity: High 7.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 3.52%, higher than 89% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 5 links below, marked "exploit"
- Published: 2019-12-12T00:00:00.000Z
- Modified: 2026-06-17T02:27:08.850Z
- Weaknesses: CWE-269
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- openbsd openbsd: up to 6.6

## Every score

- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.2 High `AV:L/AC:L/Au:N/C:C/I:C/A:C`

## References

- <https://seclists.org/bugtraq/2019/Dec/25> (exploit, mailing-list, third-party-advisory)
- <http://packetstormsecurity.com/files/155658/Qualys-Security-Advisory-OpenBSD-Dynamic-Loader-Privilege-Escalation.html> (exploit, third-party-advisory, vdb-entry)
- <http://seclists.org/fulldisclosure/2019/Dec/31> (exploit, mailing-list, third-party-advisory)
- <http://packetstormsecurity.com/files/155764/OpenBSD-Dynamic-Loader-chpass-Privilege-Escalation.html> (exploit, third-party-advisory, vdb-entry)
- <http://packetstormsecurity.com/files/174986/glibc-ld.so-Local-Privilege-Escalation.html> (exploit)
- <https://www.openbsd.org/errata66.html> (patch, vendor-advisory)
- <https://www.openwall.com/lists/oss-security/2019/12/11/9> (mailing-list, third-party-advisory)
- <http://www.openwall.com/lists/oss-security/2023/10/03/2> (mailing-list)
- <http://seclists.org/fulldisclosure/2023/Oct/11> (mailing-list)

## Sources

- CVE List: [CVE-2019-19726](https://www.cve.org/CVERecord?id=CVE-2019-19726), CVE Terms of Use, modified 2024-08-05
- NVD: [CVE-2019-19726](https://nvd.nist.gov/vuln/detail/CVE-2019-19726), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2019-19726 · Whole record: https://cve.day/CVE-2019-19726.json · Rebuilt by cve.day 2026-11-25T22:57:48.710Z
