Skip to main content
Mallory
HighPublic exploitVulnerability

CVE-2019-19726: OpenBSD ld.so LD_LIBRARY_PATH Local Privilege Escalation

Published Dec 12, 2019 · Updated 1 month ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS7.8High · v3.1
EPSS3.5%89th percentile
CISA KEVNoNot listed
In the wildNonePublic exploit, no exploitation reported
Vendor
Openbsd
IdentifiersCVE-2019-19726CWE-250

CVE-2019-19726 is a local privilege escalation vulnerability in OpenBSD's dynamic loader (ld.so) affecting versions 6.6 and earlier. The flaw arises because setuid-root programs such as chpass and passwd do not properly clear the LD_LIBRARY_PATH environment variable when a very small RLIMIT_DATA resource limit is set. If ld.so fails to allocate memory while attempting to strip LD_LIBRARY_PATH, it silently fails, allowing the variable to persist. This enables a local attacker to load a malicious shared library as root, resulting in full root privilege escalation. The vulnerability is present in default OpenBSD installations and can be exploited without special privileges, requiring only local access and a writable directory.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

A local attacker can escalate privileges from any unprivileged user to root by exploiting setuid-root binaries (e.g., chpass, passwd) on affected OpenBSD systems. The attacker can execute arbitrary code as root by injecting a malicious shared library, leading to full system compromise. The vulnerability affects multiple OpenBSD versions (6.6, 6.5, 6.2, 6.1) and both amd64 and i386 architectures.

Mitigation

If you can’t patch tonight, do this now.

If immediate patching is not possible, restrict local access to trusted users only and monitor for suspicious activity. Avoid running untrusted code or granting shell access to untrusted users. Regularly audit setuid-root binaries and environment variable handling. However, full mitigation requires applying the official OpenBSD patch.

Remediation

Patch, then assume compromise.

Apply the security patch released by OpenBSD developers (patch 013_ldso) for affected versions. The patch ensures that LD_LIBRARY_PATH is properly cleared in setuid-root programs, even when memory allocation fails. Users should update to the latest OpenBSD release or apply the relevant patch to mitigate the vulnerability.

Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
OpenbsdOpenbsdoperating_system
FAQ

Frequently asked questions

Is CVE-2019-19726 exploited in the wild?
As of Oct 16, 2026, Mallory has no reports of CVE-2019-19726 being exploited in the wild. It is not listed in CISA KEV.
Is there a public exploit for CVE-2019-19726?
Yes. Mallory tracks 1 public exploit or proof of concept for CVE-2019-19726, the earliest disclosed Dec 11, 2019.
Is there a patch for CVE-2019-19726?
Apply the security patch released by OpenBSD developers (patch 013_ldso) for affected versions. The patch ensures that LD_LIBRARY_PATH is properly cleared in setuid-root programs, even when memory allocation fails.
What products are affected by CVE-2019-19726?
Openbsd.
How severe is CVE-2019-19726?
CVE-2019-19726 has a CVSS v3.1 score of 7.8 (High) and an EPSS score of 3.5% (89th percentile) as of Oct 16, 2026.
Activity feed

Recent activity

No public activity tracked yet. Mallory keeps watching.

View more in app →

No public activity observed for this vulnerability.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activityCommunity discussion across Reddit, Mastodon, and other social sources.